curl --request GET \
--url https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"totalRecords": 69918,
"records": [
{
"transactionHash": "0x281d6478dee6d20da7e9293991cc68085532a915760f23d77ffa9923edb523de",
"blockHash": "0x5b24ad74b3b6b7adb83e0ba4996726db5b91392a925bb54462c1d9833e921a4f",
"blockNumber": "7252428",
"tokenAddress": "0x26fb86579e371c7aedc461b2ddef0a8628c93d3b",
"amount": "20000000000000000000",
"timestamp": 1550825454000,
"timestampNanoseconds": 0,
"logIndex": 163,
"blockchainId": "1c9c969065fcd1cf",
"to": [
"0x06012c8cf97bead5deae237070f9587f8e7a266d"
],
"from": "0x41efb7f2fa8e27a5c089082e8a61f15f748f7e0b",
"decimals": "18",
"name": "BORA",
"symbol": "BORA",
"isERC20": true,
"isERC721": false,
"isERC777": false,
"isERC884": false,
"isERC998": false
}
]
}
}"{}"Token Transfers - By Wallet Address
Retrieves all token transfers involving the specified address.
If you intend to traverse all the token-transfers, it is recommended to specify the flag direction=ascending, which will guarantee that the pagination is stable and will not change with the arrival of new token-transfers.
curl --request GET \
--url https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/blockchains/addresses/{hash}/token-transfers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"totalRecords": 69918,
"records": [
{
"transactionHash": "0x281d6478dee6d20da7e9293991cc68085532a915760f23d77ffa9923edb523de",
"blockHash": "0x5b24ad74b3b6b7adb83e0ba4996726db5b91392a925bb54462c1d9833e921a4f",
"blockNumber": "7252428",
"tokenAddress": "0x26fb86579e371c7aedc461b2ddef0a8628c93d3b",
"amount": "20000000000000000000",
"timestamp": 1550825454000,
"timestampNanoseconds": 0,
"logIndex": 163,
"blockchainId": "1c9c969065fcd1cf",
"to": [
"0x06012c8cf97bead5deae237070f9587f8e7a266d"
],
"from": "0x41efb7f2fa8e27a5c089082e8a61f15f748f7e0b",
"decimals": "18",
"name": "BORA",
"symbol": "BORA",
"isERC20": true,
"isERC721": false,
"isERC777": false,
"isERC884": false,
"isERC998": false
}
]
}
}"{}"Authorizations
Headers
The id of the blockchain
ethereum-mainnet Path Parameters
The address to retrieve the token transfers for
Query Parameters
Filter by token transfers with this block number.
Filter by token transfers which happened after this date.
Filter by token transfers which happened before this date.
The order in which to return the results (ascending or descending). By default, records are returned in descending order, so the most recent records are returned first.
The page number to return.
Number of records per page.
[Optional] Time format of the timestamps in the return payload.
[Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable
Was this page helpful?