Erc721Enumerable class
List owned ERC721 NFTs
Example
const contract = await sdk.getContract("{{contract_address}}");
const walletAddress = "0x...";
const ownedNFTs = await contract.nft.query.owned.all(walletAddress);
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(erc721, contractWrapper) | Constructs a new instance of the Erc721Enumerable class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
featureName | "ERC721Enumerable" |
Methods
Method | Modifiers | Description |
---|---|---|
all(walletAddress) | Get Owned NFTs | |
tokenIds(walletAddress) | Get all token ids of NFTs owned by a specific wallet. |
Signature:
export declare class Erc721Enumerable implements DetectableFeature
Implements: DetectableFeature
Remarks
Easily list all the NFTs from a ERC721 contract, owned by a certain wallet.