Skip to main content

Transaction by Hash

info

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

Type

GET

Description

Gets Latest NFT Txns BY HASH

Parameters

  • hash: (required) Transaction hash

Code

var axios = require('axios');

var config = {
method: 'get',
url: 'https://api.nirvanalabs.xyz/txn?hash=0x11bd513adc23acc5f878f3c7df5df6ba916f9543e1943fbc66933381022e56b4',
headers: { }
};

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

Sample Response

[
{
"block_number": 15417920,
"symbol": "DREAM",
"image_cdn": "",
"image": "",
"rarity_label": "Common",
"address": "0x5069fbffb1f65e6c3d9efe7c70c4c0d13524e960",
"token_id": "4744",
"name": "Daydreamers",
"type": "ERC721",
"timestamp": 1661551934,
"created_at": "2022-08-26T16:42:14.000Z",
"from": "0x0000000000000000000000000000000000000000",
"to": "0x280d81cfbc693f2411eef7589c9e152cdda63ab1",
"transaction_hash": "0x11bd513adc23acc5f878f3c7df5df6ba916f9543e1943fbc66933381022e56b4",
"transaction_index": 57,
"transaction_value": "0",
"transaction_gas_price": "11000000000"
}
]