Erc721 class
Standard ERC721 NFT functions
Example
const contract = await sdk.getContract("{{contract_address}}");
await contract.erc721.transfer(walletAddress, tokenId);
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(contractWrapper, storage, chainId) | Constructs a new instance of the Erc721 class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
chainId | readonly | number | |
claimConditions | readonly | import("./drop-claim-conditions").DropClaimConditions<import("../../types/eips").BaseClaimConditionERC721> | Configure claim conditions |
contractWrapper | protected | ContractWrapper<T> | |
featureName | "ERC721" | ||
revealer | readonly | import("./delayed-reveal").DelayedReveal<import("../../types/eips").BaseDelayedRevealERC721> | Delayed reveal |
signature | readonly | Erc721WithQuantitySignatureMintable | Signature Minting |
storage | protected | ThirdwebStorage | |
tieredDrop | readonly | Erc721TieredDrop | Tiered Drop |
Methods
Method | Modifiers | Description |
---|---|---|
balance() | Get NFT Balance for the currently connected wallet | |
balanceOf(address) | Get NFT Balance | |
burn(tokenId) | Burn a single NFT | |
claim(quantity, options) | Claim unique NFTs to the connected wallet | |
claimTo(destinationAddress, quantity, options) | Claim unique NFTs to a specific Wallet | |
get(tokenId) | Get a single NFT Metadata | |
getAddress() | ||
getAll(queryParams) | Get All Minted NFTs | |
getAllOwners() | Get All owners of minted NFTs on this contract | |
getClaimTransaction(destinationAddress, quantity, options) | Construct a claim transaction without executing it. This is useful for estimating the gas cost of a claim transaction, overriding transaction options and having fine grained control over the transaction execution. | |
getMintTransaction(receiver, metadata) | Construct a mint transaction without executing it. This is useful for estimating the gas cost of a mint transaction, overriding transaction options and having fine grained control over the transaction execution. | |
getOwned(walletAddress) | Get Owned NFTs | |
getOwnedTokenIds(walletAddress) | Get all token ids of NFTs owned by a specific wallet. | |
isApproved(address, operator) | Get whether this wallet has approved transfers from the given operator | |
lazyMint(metadatas, options) | Create a batch of unique NFTs to be claimed in the future | |
mint(metadata) | Mint a unique NFT | |
mintBatch(metadatas) | Mint Many unique NFTs | |
mintBatchTo(receiver, metadatas) | Mint Many unique NFTs | |
mintTo(receiver, metadata) | Mint a unique NFT | |
ownerOf(tokenId) | Get the current owner of a given NFT within this Contract | |
totalCirculatingSupply() | Get the total count NFTs minted in this contract | |
totalClaimedSupply() | ||
totalCount() | Get the number of NFTs minted | |
totalUnclaimedSupply() | Get the unclaimed supply | |
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.