getNftIdsByOwner
This function returns an array of strings for a list of all the NFTs owned by a given address.
Parameters
owner <string> - Wallet address of the owner for which the array of NFT IDs has to be returned.
Example Code
In the below code example, change the ownerAddress
to the address for which you want to see the list of NFTs.
Example Code Output
In the above example, one of the NFT owned by the address 7b4ll1zwenRB8jzyESjFNcRls331buyNl231Pe0V9VI
is gZIRmwBIL5nnkAxaFQbGICcUdrOOmBLzqd1LFhd3vSA
which can be accessed via the leaderboard.
Returns
Promise<string[]> - Array containing the NFTs with the address as owner address.
Last updated