Skip to main content

Erc721 class

Standard ERC721 NFT functions

Example

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

Constructors

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

Properties

PropertyModifiersTypeDescription
burnErc721Burnable | undefined
contractWrapperContractWrapper<T>
dropErc721Droppable | undefined
featureName"ERC721"
mintErc721Mintable | undefined
optionsSDKOptions
queryErc721Supply | undefined
signatureErc721WithQuantitySignatureMintable | undefined
storageIStorage

Methods

MethodModifiersDescription
balance()Get NFT Balance for the currently connected wallet
balanceOf(address)Get NFT Balance
get(tokenId)Get a single NFT Metadata
getAddress()
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
transfer(to, tokenId)Transfer a single NFT

Signature:

export declare class Erc721<T extends Multiwrap | SignatureDrop | DropERC721 | TokenERC721 | BaseERC721 = BaseERC721> implements UpdateableNetwork, DetectableFeature

Implements: UpdateableNetwork, DetectableFeature

Remarks

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