Skip to main content

ERC1155Burnable

Functionality available for contracts that implement the ERC1155Enumerable and ERC1155Burnable extensions.

Allows you to burn NFTs (transfer them to a null address) to take them out of circulation.

burn

Burn the specified NFTs from the connected wallet.

# The token ID to burn NFTs of
token_id = 0
# The amount of the NFT you want to burn
amount = 2

tx_result = contract.erc1155.burn(token_id, amount)
Configuration

token_id

The token ID of the NFT(s) you want to burn.

Must be an int.

tx_result = contract.erc1155.burn(
"{{token_id}}",
"{{amount}}",
)

amount

The amount of the NFT you want to burn of the specified token ID.

Must be an int.

tx_result = contract.erc1155.burn(
"{{token_id}}",
"{{amount}}",
)