Skip to main content

ERC721Burnable

ERC721Burnable allows the NFTs in the contract to be burned (transferred to a non-recoverable address).

Base Contracts Implementing This Feature

Unlocked Features

By implementing the ERC721Mintable contract, you unlock the following features in the SDK and dashboard:

SDK UsageDescription
Burn NFTBurn an NFT.

Implementing It Yourself

This section is meant for advanced users who want to write the functionality from scratch.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@thirdweb-dev/contracts/eip/ERC721A.sol";
import "@thirdweb-dev/contracts/extension/interface/IBurnableERC721.sol";

contract Contract is ERC721A, IBurnableERC721 {
constructor(
string memory _name,
string memory _symbol
)
ERC721A(
_name,
_symbol
)
{}

function burn(uint256 tokenId) external {
// Your custom implementation here
}
}