Get NFT Transfers
Request: Get a single NFT transfer data:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https:/api.aqua.test.krayondigital.com/main/api/v1/nft-transfers/{{transfer_id}}',
headers: {
accept: 'application/json',
'content-type': 'application/json',
'Bearer': 'API-TOKEN'
},
}
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});
import requests
url = "https:/api.aqua.test.krayondigital.com/main/api/v1/nft-transfers/{{transfer_id}}"
headers = {
"accept": "application/json",
"content-type": "application/json"
"Bearer": "API-TOKEN"
}
response = requests.get(url, headers=headers)
print(response.text)
Response:
{
"data": {
"id": "5c25804176df4bb08d6ed61cbe0ffb27",
"chain_id": 5,
"from_address": "0xab5b4728f430a3cb5a34729d1f2372b91f233b05",
"to_address": "0xd09f41abf24e16228ad3f93f2a4fd92499158603",
"amount": "1",
"amount_wei": 0,
"status": "TRANSACTION_SUCCESS",
"direction": "OUT",
"transaction": "f8a2c34ebe5d47a399fe294293ff721b",
"tags": [
"nft",
"krayon"
],
"note": "NFT transfer",
"wallet": "0075015935af4334acc8a24071917504",
"transaction_fee": 0.007151746981318464,
"transaction_fee_usd": 0,
"block_time_stamp": "2023-02-21T14:42:48Z",
"hash": "0x3580e895b7c46581a3bcf990eb99af116d04ac81838f3f7a9fc3656297e11111",
"symbol": "MFNFT",
"name": "",
"logo_uri": ""
}
}
Request: Get all NFT transfers of a wallet
import axios from 'axios';
const options = {
method: 'GET',
url: 'https:/api.aqua.test.krayondigital.com/main/api/v1/nft-transfers?wallet_id={{wallet_id}}',
headers: {
accept: 'application/json',
'content-type': 'application/json',
'Bearer': 'API-TOKEN'
},
}
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});
import requests
url = "https:/api.aqua.test.krayondigital.com/main/api/v1/nft-transfers?wallet_id={{wallet_id}}"
headers = {
"accept": "application/json",
"content-type": "application/json"
"Bearer": "API-TOKEN"
}
response = requests.get(url, headers=headers)
print(response.text)
Response:
{
"count": 2,
"next": null,
"previous": null,
"data": [
{
"id": "5c25804176df4bb08d6ed61cbe0ffb27",
"chain_id": 5,
"from_address": "0xab5b4728f430a3cb5a34729d1f2372b91f233b05",
"to_address": "0xd09f41abf24e16228ad3f93f2a4fd92499158603",
"amount": "1",
"amount_wei": 0,
"status": "TRANSACTION_SUCCESS",
"direction": "OUT",
"transaction": "f8a2c34ebe5d47a399fe294293ff721b",
"tags": [
"nft",
"krayon"
],
"note": "NFT transfer",
"wallet": "0075015935af4334acc8a24071917504",
"transaction_fee": 0.007151746981318464,
"transaction_fee_usd": 0,
"block_time_stamp": "2023-02-21T14:42:48Z",
"hash": "0x3580e895b7c46581a3bcf990eb99af116d04ac81838f3f7a9fc3656297e11111",
"symbol": "MFNFT",
"name": "",
"logo_uri": ""
},
{
"id": "27f319518eac422e8c0d20a5693c64ce",
"chain_id": 5,
"from_address": "0xab5b4728f430a3cb5a34729d1f2372b91f233b05",
"to_address": "0xd09f41abf24e16228ad3f93f2a4fd92499158603",
"amount": "1",
"amount_wei": 0,
"status": "TRANSACTION_SUCCESS",
"direction": "OUT",
"transaction": "7e3158291a424d189ce2d906de6e4e3f",
"tags": [],
"note": "",
"wallet": "0075015935af4334acc8a24071917504",
"transaction_fee": 0.0002131671340848,
"transaction_fee_usd": 0,
"block_time_stamp": "2023-02-19T10:55:24Z",
"hash": "0x95fca8e6c8a0eb59e95351f7afc73eef969de653fe4bb274b1e8df18c646c585",
"symbol": "MFNFT",
"name": "",
"logo_uri": ""
}
]
Updated 9 months ago