Skip to main content

Erc721Enumerable.all() method

Get Owned NFTs

Example

// Address of the wallet to get the NFTs of
const address = "{{wallet_address}}";
const nfts = await contract.nft.query.owned.all(address);

Signature:

all(walletAddress?: string): Promise<NFTMetadataOwner[]>;

Parameters

ParameterTypeDescription
walletAddressstring(Optional) the wallet address to query, defaults to the connected wallet

Returns:

Promise<NFTMetadataOwner[]>

The NFT metadata for all NFTs in the contract.

Remarks

Get all the data associated with the NFTs owned by a specific wallet.