burn
Tries to buy one or more tokens for a given smart contract id.
You must own a token to be able to burn it.
The nftContactId can be supplied as an argument or through the CONTRACT_ADDRESS
environment variable.
As with all new SDK api methods, this call should be wrapped in execute and passed a signing method
burn(args: BurnArgs): NearContractCall
burn
takes a single argument of type BurnArgs
React example
Example usage of burn method in a hypothetical React component:
BurnComponent.ts
Last updated