setMintingCap
Sets a minting cap on this smart contract. This will restrict minting on the smart contract to the specified number of tokens. This is a commitment not to create more tokens in the future, introducing rarity. Once a minting cap has been set, it cannot be changed, and it cannot be removed.
The contractAddress
can be supplied as an argument or through the TOKEN_CONTRACT
environment variable.
As with all new SDK api methods, this call should be wrapped in execute and passed a signing method
This is only available on Mintbase v2 smart contracts.
setMintingCap(args: SetMintingCapArgs): NearContractCall
setMintingCap
takes a single argument of type SetMintingCapArgs
React example
Example usage of deployContract method in a hypothetical React component:
DepositStorageComponent.ts
Last updated