Erc721 class
Standard ERC721 NFT functions
Example
const contract = await sdk.getContract("{{contract_address}}");
await contract.nft.transfer(walletAddress, tokenId);
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(contractWrapper, storage, options) | Constructs a new instance of the Erc721 class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
burn | Erc721Burnable | undefined | ||
contractWrapper | ContractWrapper<T> | ||
drop | Erc721Droppable | undefined | ||
featureName | "ERC721" | ||
mint | Erc721Mintable | undefined | ||
options | SDKOptions | ||
query | Erc721Supply | undefined | ||
signature | Erc721WithQuantitySignatureMintable | undefined | ||
storage | IStorage |
Methods
Method | Modifiers | Description |
---|---|---|
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.