Skip to main content

transfer_getFromtoBlock

info

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

Type

GET

Description

Gets transfers of the tokens from_block -> to_block OR from_date -> to_date

Parameters

  • from_block: From block
  • to_block: To block
  • from_date: From date
  • to_date: To date
  • size: Size of response
  • page: Number of page

Code

var axios = require('axios');

var config = {
method: 'get',
url: 'https://api.nirvanalabs.xyz/transfer_getFromtoBlock?from_block=12715198&to_block=14592430',
headers: { }
};

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



Sample Response

[
{
"id": 31037,
"transaction_hash": "0xc1e30b827a02551aca5224790382541d1aa2ed414ac7d8f95cb6f7d79397d356",
"block_number": 12800806,
"timestamp": 1625935727,
"transaction_index": 19,
"transaction_value": "0",
"transaction_type": "TRANSFER",
"transaction_gas_transfer_count": 1,
"transaction_gas": 186898,
"transaction_gas_used": 94599,
"transaction_gas_price": "19000000000",
"from": "0xf48c1940281425c9ec83d9856b67e5d4b9a809d5",
"to": "0x480da336a371703ba7b509fdc270d6fe7b793387",
"token_id": "3130",
"address": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
"name": "BoredApeYachtClub",
"symbol": "BAYC",
"type": "ERC721",
"created_at": "2021-07-10T11:18:47.000Z",
"updated_at": "2022-11-08T03:23:13.947Z"
}
]