Skip to main content

UtilsNamespace.getNfts() method

Retrieves the NFTs (Non-Fungible Tokens) owned by an address.

Signature:

getNfts(addressToCheck: string): Promise<NftsData[]>;

Parameters

ParameterTypeDescription
addressToCheckstringThe address for which to retrieve the NFTs.

Returns:

Promise<NftsData[]>

An array of NftsData, each containing the title, tokenType, contract address, amount, image, tokenId, and rawMetadata of an NFT.