List NFTs.
This method will use 15 Compute Units.
15
Last updated 7 months ago
Returns a list of non-fungible tokens
Network entity ID in the format of shard.realm.num
shard.realm.num
"0.1.2"
^\d{1,10}\.\d{1,10}\.\d{1,10}$
OK
const response = await fetch('https://mainnet.hedera.validationcloud.io/v1/YOUR_API_KEY/api/v1/tokens/{tokenId}/nfts', { method: 'GET', headers: {}, }); const data = await response.json();
{ "nfts": [ { "account_id": "0.1.2", "created_timestamp": "1234567890.000000001", "delegating_spender": "0.0.400", "deleted": false, "metadata": "VGhpcyBpcyBhIHRlc3QgTkZU", "modified_timestamp": "1610682445.003266001", "serial_number": 124, "spender_id": "0.0.500", "token_id": "0.0.222" } ], "links": { "next": "/api/v1/transactions?timestamp=lt:1657598275.517984411" } }