Contents

qn_fetchNFTs RPC method

Parameters:

  1. Address - The address to check for NFTs.
  2. Array - List of NFT contract addresses (must support balanceOf, tokenURI, and tokenOfOwnerByIndex) you'd like to get ownership data from.

Returns:

  1. Object - Custom Response Object, or null if no NFTs are found:

    owner - The address we checked for NFTs.

    assets - An array of objects representing NFTs with the following shape:

    name - the name of this specific NFT.

    id - the token id of this NFT in it's collection.

    collection - the name of this NFT's collection.

    image_url - the URL where the image for this NFT can be seen.

    contract - the contract address that this NFT lives in.

    traits - an array of traits that this NFT has.

    chain - what chain this aggregation happened on.

    network - what network this aggregation happened on.

    provenance - an array of transfers from previous owners for this NFT. It's important to note that this only has owners from recent blocks, for full ownership history, you'll need to enable the archive add on. This is only available for select customers at this time.

Code Examples:

curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"qn_fetchNFTs","params":["0x91b51c173a4bdaa1a60e234fc3f705a16d228740", ["0x2106c00ac7da0a3430ae667879139e832307aeaa", "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D"]],"id":67}'
Ready to try QuickNode? Start your 7-day free trial