ERC20 Token Transfers Advanced Filter
curl --request GET \
--url 'https://api.etherscan.io/v2/api?apikey='import requests
url = "https://api.etherscan.io/v2/api?apikey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.etherscan.io/v2/api?apikey=', 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.etherscan.io/v2/api?apikey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.etherscan.io/v2/api?apikey="
req, _ := http.NewRequest("GET", url, nil)
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.etherscan.io/v2/api?apikey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.etherscan.io/v2/api?apikey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "4730207",
"timeStamp": "1513240363",
"hash": "0xe8c208398bd5ae8e4c237658580db56a2a94dfa0ca382c99b776fa6e7d31d5b4",
"nonce": "406",
"blockHash": "0x022c5e6a3d2487a8ccf8946a2ffb74938bf8e5c8a3f6d91b41c56378a96b5c37",
"from": "0x642ae78fafbb8032da552d619ad43f1d81e4dd7c",
"contractAddress": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
"to": "0x4e83362442b8d1bec281594cea3050c8eb01311c",
"value": "5901522149285533025181",
"tokenName": "Maker",
"tokenSymbol": "MKR",
"tokenDecimal": "18",
"statusRep": "1",
"transactionIndex": "81",
"gas": "940000",
"gasPrice": "32010000000",
"gasUsed": "77759",
"cumulativeGasUsed": "2523379",
"input": "deprecated",
"methodId": "0xbe040fb0",
"functionName": "redeem()",
"confirmations": "18737452"
}
]
}
Account
ERC20 Token Transfers Advanced Filter
Retrieves ERC20 token transfers with advanced from and to address filtering.
GET
/
v2
/
api
ERC20 Token Transfers Advanced Filter
curl --request GET \
--url 'https://api.etherscan.io/v2/api?apikey='import requests
url = "https://api.etherscan.io/v2/api?apikey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.etherscan.io/v2/api?apikey=', 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.etherscan.io/v2/api?apikey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.etherscan.io/v2/api?apikey="
req, _ := http.NewRequest("GET", url, nil)
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.etherscan.io/v2/api?apikey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.etherscan.io/v2/api?apikey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "4730207",
"timeStamp": "1513240363",
"hash": "0xe8c208398bd5ae8e4c237658580db56a2a94dfa0ca382c99b776fa6e7d31d5b4",
"nonce": "406",
"blockHash": "0x022c5e6a3d2487a8ccf8946a2ffb74938bf8e5c8a3f6d91b41c56378a96b5c37",
"from": "0x642ae78fafbb8032da552d619ad43f1d81e4dd7c",
"contractAddress": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
"to": "0x4e83362442b8d1bec281594cea3050c8eb01311c",
"value": "5901522149285533025181",
"tokenName": "Maker",
"tokenSymbol": "MKR",
"tokenDecimal": "18",
"statusRep": "1",
"transactionIndex": "81",
"gas": "940000",
"gasPrice": "32010000000",
"gasUsed": "77759",
"cumulativeGasUsed": "2523379",
"input": "deprecated",
"methodId": "0xbe040fb0",
"functionName": "redeem()",
"confirmations": "18737452"
}
]
}
Token reputation
Each transfer includesstatusRep, a string representing the token’s reputation, not the transaction’s success or failure.
| Value | Reputation | Meaning |
|---|---|---|
"0" | Unknown | The token’s reputation is unknown. |
"1" | Neutral | The token is categorized as neutral. This does not guarantee safety. |
"2" | Unsafe | The token is categorized as unsafe. |
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "4730207",
"timeStamp": "1513240363",
"hash": "0xe8c208398bd5ae8e4c237658580db56a2a94dfa0ca382c99b776fa6e7d31d5b4",
"nonce": "406",
"blockHash": "0x022c5e6a3d2487a8ccf8946a2ffb74938bf8e5c8a3f6d91b41c56378a96b5c37",
"from": "0x642ae78fafbb8032da552d619ad43f1d81e4dd7c",
"contractAddress": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
"to": "0x4e83362442b8d1bec281594cea3050c8eb01311c",
"value": "5901522149285533025181",
"tokenName": "Maker",
"tokenSymbol": "MKR",
"tokenDecimal": "18",
"statusRep": "1",
"transactionIndex": "81",
"gas": "940000",
"gasPrice": "32010000000",
"gasUsed": "77759",
"cumulativeGasUsed": "2523379",
"input": "deprecated",
"methodId": "0xbe040fb0",
"functionName": "redeem()",
"confirmations": "18737452"
}
]
}
Authorizations
Enter your Etherscan API key, or set one up if you don't have one.
Query Parameters
Chain ID to query, such as 1 for Ethereum or 42161 for Arbitrum from our supported chains.
Response
200 - application/json
Successful response
OK on success, otherwise an error description such as NOTOK. See common error messages.