Minting and burning
Minting
To mint tokens, you can use the nft_batch_mint
method:
To learn more about
TokenMetadata
, refer to the corresponding standard, with the exption ofissued_at
andupdated_at
, which are not supported by Mintbase smart contracts.Due to gas limitations, you cannot mint more than 125 tokens at once.
The
PayoutsMap
maps from NEAR account IDs to percentages, where each percentage is expressed as an integer between 0 and 10000 (inclusive), where 10000 is equivalent to 100%As with the
PaymoutsMap
, thepercentage
inRoyaltyArgs
is expressed as a number between 0 and 10000Any allowed minter can call this, and the method checks if the caller attached sufficient NEAR tokens to cover the storage requirements of the mint. The method will fail if the storage is not covered.
Burning
To burn tokens, you can use the nft_batch_burn
method:
This will remove the token from the on-chain storage! This means you can no longer use methods such as nft_token
with this token ID, but storage requirements are being decreased by burning. To verify your identity, you are required to attach one yoctoNEAR to the method call.
Last updated