get tokens list
curl --request GET \
--url https://eth.blockscout.com/api/v2/tokensimport requests
url = "https://eth.blockscout.com/api/v2/tokens"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://eth.blockscout.com/api/v2/tokens', 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://eth.blockscout.com/api/v2/tokens",
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://eth.blockscout.com/api/v2/tokens"
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://eth.blockscout.com/api/v2/tokens")
.asString();require 'uri'
require 'net/http'
url = URI("https://eth.blockscout.com/api/v2/tokens")
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{
"items": [
{
"circulating_market_cap": "83606435600.3635",
"icon_url": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",
"name": "Tether USD",
"decimals": "6",
"symbol": "USDT",
"type": "ERC-20",
"exchange_rate": "0.99",
"total_supply": "10000000",
"address_hash": "0x394c399dbA25B99Ab7708EdB505d755B3aa29997",
"holders_count": "837494234523"
}
],
"next_page_params": {
"contract_address_hash": "0x68749665ff8d2d112fa859aa293f07a622782f38",
"holders_count": 1011,
"is_name_null": false,
"items_count": 50,
"market_cap": "482534473.2170469",
"name": "Tether Gold"
}
}API Reference
get tokens list
Deprecation Notice: Per instance endpoints will be deprecated soon in favor of PRO API endpoints. Please see the PRO API reference page for information.
GET
/
tokens
get tokens list
curl --request GET \
--url https://eth.blockscout.com/api/v2/tokensimport requests
url = "https://eth.blockscout.com/api/v2/tokens"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://eth.blockscout.com/api/v2/tokens', 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://eth.blockscout.com/api/v2/tokens",
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://eth.blockscout.com/api/v2/tokens"
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://eth.blockscout.com/api/v2/tokens")
.asString();require 'uri'
require 'net/http'
url = URI("https://eth.blockscout.com/api/v2/tokens")
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{
"items": [
{
"circulating_market_cap": "83606435600.3635",
"icon_url": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",
"name": "Tether USD",
"decimals": "6",
"symbol": "USDT",
"type": "ERC-20",
"exchange_rate": "0.99",
"total_supply": "10000000",
"address_hash": "0x394c399dbA25B99Ab7708EdB505d755B3aa29997",
"holders_count": "837494234523"
}
],
"next_page_params": {
"contract_address_hash": "0x68749665ff8d2d112fa859aa293f07a622782f38",
"holders_count": 1011,
"is_name_null": false,
"items_count": 50,
"market_cap": "482534473.2170469",
"name": "Tether Gold"
}
}Was this page helpful?
⌘I