Latest Transactions
info
ChainQuery API is currently in beta. Report any bugs to support@nirvanalabs.ai
Type
GET
Description
Gets the transfer of the tokens matching the given address
Parameters
none
Code
- nft.js
- nft.rb
- nft.py
- Curl (HTTP)
var axios = require('axios');
var data = '';
var config = {
method: 'get',
url: 'https://api.nirvanalabs.xyz/txns/latest',
headers: { },
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
require "uri"
require "net/http"
url = URI("https://api.nirvanalabs.xyz/txns/latest")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("https://api.nirvanalabs.xyz")
payload = ''
headers = {}
conn.request("GET", "/txns/latest", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
curl --location --request GET 'https://api.nirvanalabs.xyz/txns/latest' \
--data-raw ''
Sample Response
[
{
"id": 18409627,
"address": "0xdec9f8e4891af26038136769952560c1ba61c472",
"token_id": "2585375885184975034141067",
"name": "Blitzkrieg",
"type": "ERC721",
"created_at": "2022-08-22T21:51:28.000Z",
"timestamp": 1661205088,
"updated_at": "2022-08-22T21:52:09.787Z",
"from": "0x35b97964400fafc3eee9af4917751533455425c1",
"to": "0x60b01706fad3320265fb0939d05cfc60b95e9ae9",
"transaction_hash": "0x9a8cf5129ce7290e4e602032118328083dc4fe071ae166a1e8e5b6390298aa7f",
"log_index": 154,
"transaction_index": 26,
"transaction_value": "200000000000000000",
"transaction_transfer_count": 1,
"transaction_gas_used": 200305,
"transaction_gas_price": "10323145061",
"image": null,
"image_cdn": null,
"rarity_label": null
}
]