@gala-chain/chaincode ∙ API
API > ensureQuantityCanBeMinted
Function: ensureQuantityCanBeMinted()
ensureQuantityCanBeMinted(
tokenClass
,quantity
,totalKnownMintAllowanceCount
?,totalKnownBurnsCount
?):boolean
Parameters
▪ tokenClass: TokenClass
▪ quantity: BigNumber
▪ totalKnownMintAllowanceCount?: BigNumber
▪ totalKnownBurnsCount?: BigNumber
Returns
boolean
Description
Calculate whether or not the requested quantity exceeds the maximum
capacity or supply for the given TokenClass
.