Skip to main content

List All NFTs for Contract

info

ChainQuery API is currently in beta. Report any bugs to support@nirvanalabs.ai

Type

GET

Description

Retrieves all tokens in a contract & metadata

Parameters

  • address: NFT Contract address
  • page: Number of page
  • size: Size of response

Code

var axios = require('axios');

var config = {
method: 'get',
url: 'https://api.nirvanalabs.xyz/nfts/tokens/list?address=0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0&page=0&size=100',
headers: { }
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});


Sample Response

[
{
"id": 815208,
"address": "0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0",
"token_id": "5908",
"token_uri": "https://ipfs.pixura.io/ipfs/QmUbMe1xfsba6pAqxEb6c9T2cHFyQUvTeQzAKe9qkwZh8P",
"owner": "0x2c123fc5c27888571cd525e8ae9b0c5ff848386d",
"name": "DaemonTower",
"tsearch_with_weights": "",
"description": "Just another building.... animated GIF 1203x1552px",
"image": "https://ipfs.pixura.io/ipfs/QmcKa9UNYD69m6yW4jDXLVCaJvFuWHCJfKDRhSdhQUv5Ex",
"image_cdn": "https://ipfs.pixura.io/ipfs/QmcKa9UNYD69m6yW4jDXLVCaJvFuWHCJfKDRhSdhQUv5Ex",
"external_url": "",
"is_sync": true,
"sync_times": 1,
"is_burn": false,
"is_rarity": false,
"rarity_score": 0,
"rarity_rank": 99999,
"rarity_label": "Common",
"transfer_expiration_date": "2022-11-11T07:44:48.303Z",
"metadata": {
"name": "DaemonTower",
"createdBy": "buzzlightning",
"yearCreated": "2019",
"description": "Just another building.... animated GIF 1203x1552px",
"image": "https://ipfs.pixura.io/ipfs/QmcKa9UNYD69m6yW4jDXLVCaJvFuWHCJfKDRhSdhQUv5Ex",
"tags": [
"gif",
"blockchainart",
"animated"
],
"attributes": []
},
"attributes": [],
"created_at": "2022-11-11T07:46:08.279Z",
"updated_at": "2022-11-16T19:10:07.107Z",
"deleted_at": null
}
]