Skip to main content

Latest Transfer Transaction by Address

info

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

Type

GET

Description

Get all transfers of NFTs for a given contract address

Parameters

  • size: Size of the response
  • address: (required) NFT Contract address

Code

var axios = require('axios');

var config = {
method: 'get',
url: 'https://api.nirvanalabs.xyz/nfts/contracts/txns?size=50&address=0xc7d21dd9ec1f3f42c313535c103fad7e5a078bc4',
headers: { }
};

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

Sample Response

[
{
"id": 2815100,
"transaction_hash": "0x72d239f8779af36a541a3e7598d2e8e4d302a6ceeee2ca9ae339470fd64d2003",
"block_number": 15045684,
"timestamp": 1656517021,
"transaction_index": 131,
"transaction_value": "0",
"transaction_type": "MINT",
"transaction_gas_transfer_count": 1,
"transaction_gas": 152346,
"transaction_gas_used": 101564,
"transaction_gas_price": "54120073029",
"from": "0x0000000000000000000000000000000000000000",
"to": "0x9cd8086b43829f3713896a365aca9add1b59dc1d",
"value": "1",
"address": "0xc7d21dd9ec1f3f42c313535c103fad7e5a078bc4",
"name": "TokyoBraveHeroes",
"symbol": "TBH",
"type": "ERC721",
"created_at": "2022-06-29T10:07:01.000Z",
"updated_at": "2022-11-17T03:32:25.276Z",
"deleted_at": null
}
]