Erc1155.burnFrom() method
Burn a specified amount of a NFTs
Example
// The address of the wallet to burn NFTS from
const account = "0x...";
// The token ID to burn NFTs of
const tokenId = 0;
// The amount of this NFT you want to burn
const amount = 2;
const result = await contract.erc1155.burnFrom(account, tokenId, amount);
Signature:
burnFrom(account: string, tokenId: BigNumberish, amount: BigNumberish): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
account | string | the address to burn NFTs from |
tokenId | BigNumberish | the tokenId to burn |
amount | BigNumberish | amount to burn |
Returns:
Promise<TransactionResult>
Remarks
Burn the specified NFTs from a specified wallet