Skip to main content

StandardErc721 class

Standard ERC721 NFT functions

Example

const contract = await sdk.getContract("{{contract_address}}");
await contract.nft.transfer(walletAddress, tokenId);

Constructors

ConstructorModifiersDescription
(constructor)(contractWrapper, storage)Constructs a new instance of the StandardErc721 class

Properties

PropertyModifiersTypeDescription
contractWrapperprotectedContractWrapper<T>
erc721Erc721<T>
storageprotectedThirdwebStorage

Methods

MethodModifiersDescription
balance()Get NFT Balance for the currently connected wallet
balanceOf(address)Get NFT Balance
get(tokenId)Get a single NFT Metadata
getAddress()
getAll(queryParams)Get All Minted NFTs
getOwned(walletAddress)Get Owned NFTs
getOwnedTokenIds(walletAddress)Get Owned Token Ids
isApproved(address, operator)Get whether this wallet has approved transfers from the given operator
ownerOf(tokenId)Get the current owner of a given NFT within this Contract
totalSupply()Get the total count NFTs minted in this contract
transfer(to, tokenId)Transfer a single NFT

Signature:

export declare class StandardErc721<T extends SignatureDrop | DropERC721 | TokenERC721 | BaseERC721 = BaseERC721> implements UpdateableNetwork

Implements: UpdateableNetwork

Remarks

Basic functionality for a ERC721 contract that handles IPFS storage for you.