Skip to main content

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

ConstructorModifiersDescription
(constructor)(erc721, contractWrapper)Constructs a new instance of the Erc721Enumerable class

Properties

PropertyModifiersTypeDescription
featureName"ERC721Enumerable"

Methods

MethodModifiersDescription
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.