StandardErc721 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, chainId) | Constructs a new instance of the StandardErc721 class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| chainId | readonly | number | |
| contractWrapper | protected | ContractWrapper<T> | |
| erc721 | Erc721<T> | ||
| storage | protected | ThirdwebStorage |
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() | ||
| 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.