Overview Image

Screen Shot 2022-11-15 at 6.00.07 PM.png

Get Owned NFTs by Account

This returns all of the nfts held in a specified wallet, with their respective collection , listings , and bids data.

<aside> 💡 Note: You can choose which of these nested entities to include in the query according to your needs. That is one of the powerful features of GraphQL— you can only fetch what you need.

</aside>

Also note that the order_by and limit on the nested listings object is there to only return the lowest listing to display on the NFT card. You can alter those parameters to fetch listings from all marketplaces, or you can choose to fetch the listings in a completely separate query (e.g. you want to display the listings of an NFT after someone clicks on it).

The offset and limit values can be altered accordingly to the number of nfts desired.

‘pluz.near’ is used in the example variables but can be set to any wallet/account id on any of the supported chains. For example:

NEAR account id examples: pluz.near , 98793cd91a3f870fb126f662858...

STX account id example: STJRM2AMVF90ER6G3RW1QTF85E3HZH37006D5ER1

Sorting and Filtering: