Skip to main content

burn

Description

This function burns an ERC721 token with the specified token ID.

Parameters

NameTypeDescription
tokenIdnumberThe ID of the token to burn.
overrides?OverridesOptional overrides for the contract call.

Example

import { ContractType } from "@openformat/sdk";

const contract = sdk.getContract({
contractAddress: "0x123...",
type: ContractType.NFT,
});

const tokenId = 5;
const tx = await contract.burn({ tokenId: nextId });