List Chains
curl --request GET \
--url https://mapi.zbx.com/v1/chain/list \
--header 'X-API-KEY: <api-key>'import requests
url = "https://mapi.zbx.com/v1/chain/list"
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://mapi.zbx.com/v1/chain/list', 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://mapi.zbx.com/v1/chain/list",
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://mapi.zbx.com/v1/chain/list"
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://mapi.zbx.com/v1/chain/list")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mapi.zbx.com/v1/chain/list")
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[
{
"id": 201514,
"code": "ton-mainnet",
"name": "TON Mainnet",
"category": "TON",
"namespace": "ton",
"is_testnet": false,
"native_currency_symbol": "TON",
"covalent_code": "",
"coingecko_code": "",
"logo_url": "",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": -200,
"code": "tron",
"name": "Tron",
"category": "Tron",
"namespace": "tron",
"is_testnet": false,
"native_currency_symbol": "TRX",
"covalent_code": "",
"coingecko_code": "",
"logo_url": "https://static.tronscan.org/production/logo/trx.png",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 1399811149,
"code": "solana-mainnet",
"name": "Solana Mainnet",
"category": "Solana",
"namespace": "solana",
"is_testnet": false,
"native_currency_symbol": "SOL",
"covalent_code": "",
"coingecko_code": "",
"logo_url": "https://www.datocms-assets.com/86369/1670614895-solana-icon-white.svg",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 20090103,
"code": "btc-mainnet",
"name": "Btc Mainnet",
"category": "Bitcoin",
"namespace": "bip122",
"is_testnet": false,
"native_currency_symbol": "BTC",
"covalent_code": "",
"coingecko_code": "",
"logo_url": "https://www.datocms-assets.com/86369/1674516372-property-1-bitcoin-icon-white.svg",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 56,
"code": "bsc-mainnet",
"name": "Binance",
"category": "BNB",
"namespace": "eip155",
"is_testnet": false,
"native_currency_symbol": "BNB",
"covalent_code": "binance-smart-chain",
"coingecko_code": "binance-smart-chain",
"logo_url": "https://www.datocms-assets.com/86369/1670003808-binance-smart-chain-icon-white.svg",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 1,
"code": "eth-mainnet",
"name": "Ethereum",
"category": "Ethereum",
"namespace": "eip155",
"is_testnet": false,
"native_currency_symbol": "ETH",
"covalent_code": "ethereum",
"coingecko_code": "ethereum",
"logo_url": "https://www.datocms-assets.com/86369/1669653891-eth.svg",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 137,
"code": "matic-mainnet",
"name": "Polygon",
"category": "Polygon",
"namespace": "eip155",
"is_testnet": false,
"native_currency_symbol": "MATIC",
"covalent_code": "polygon-pos",
"coingecko_code": "polygon-pos",
"logo_url": "https://www.datocms-assets.com/86369/1677870347-property-1-polygon-zkevm-icon-white.svg",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 8453,
"code": "base-mainnet",
"name": "Base",
"category": "Coinbase",
"namespace": "eip155",
"is_testnet": false,
"native_currency_symbol": "ETH",
"covalent_code": "base",
"coingecko_code": "base",
"logo_url": "https://www.datocms-assets.com/86369/1677538323-property-1-base-icon-white.svg",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 42161,
"code": "arbitrum-mainnet",
"name": "Arbitrum",
"category": "Arbitrum",
"namespace": "eip155",
"is_testnet": false,
"native_currency_symbol": "ETH",
"covalent_code": "arbitrum-one",
"coingecko_code": "arbitrum-one",
"logo_url": "https://www.datocms-assets.com/86369/1686072650-arbitrum-icon-white.svg",
"explorer_url": "",
"address_explorer_url": ""
}
]{
"error": {
"code": 400,
"errors": [
{
"domain": "orders",
"reason": "InsufficientQuantity"
}
],
"message": "Insufficient quantity"
}
}Networks
List Chains
Enabled blockchain networks. The body is a JSON array, not the data envelope. The example is a production snapshot; the live list is whatever is enabled for the API host.
GET
/
chain
/
list
List Chains
curl --request GET \
--url https://mapi.zbx.com/v1/chain/list \
--header 'X-API-KEY: <api-key>'import requests
url = "https://mapi.zbx.com/v1/chain/list"
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://mapi.zbx.com/v1/chain/list', 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://mapi.zbx.com/v1/chain/list",
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://mapi.zbx.com/v1/chain/list"
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://mapi.zbx.com/v1/chain/list")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mapi.zbx.com/v1/chain/list")
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[
{
"id": 201514,
"code": "ton-mainnet",
"name": "TON Mainnet",
"category": "TON",
"namespace": "ton",
"is_testnet": false,
"native_currency_symbol": "TON",
"covalent_code": "",
"coingecko_code": "",
"logo_url": "",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": -200,
"code": "tron",
"name": "Tron",
"category": "Tron",
"namespace": "tron",
"is_testnet": false,
"native_currency_symbol": "TRX",
"covalent_code": "",
"coingecko_code": "",
"logo_url": "https://static.tronscan.org/production/logo/trx.png",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 1399811149,
"code": "solana-mainnet",
"name": "Solana Mainnet",
"category": "Solana",
"namespace": "solana",
"is_testnet": false,
"native_currency_symbol": "SOL",
"covalent_code": "",
"coingecko_code": "",
"logo_url": "https://www.datocms-assets.com/86369/1670614895-solana-icon-white.svg",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 20090103,
"code": "btc-mainnet",
"name": "Btc Mainnet",
"category": "Bitcoin",
"namespace": "bip122",
"is_testnet": false,
"native_currency_symbol": "BTC",
"covalent_code": "",
"coingecko_code": "",
"logo_url": "https://www.datocms-assets.com/86369/1674516372-property-1-bitcoin-icon-white.svg",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 56,
"code": "bsc-mainnet",
"name": "Binance",
"category": "BNB",
"namespace": "eip155",
"is_testnet": false,
"native_currency_symbol": "BNB",
"covalent_code": "binance-smart-chain",
"coingecko_code": "binance-smart-chain",
"logo_url": "https://www.datocms-assets.com/86369/1670003808-binance-smart-chain-icon-white.svg",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 1,
"code": "eth-mainnet",
"name": "Ethereum",
"category": "Ethereum",
"namespace": "eip155",
"is_testnet": false,
"native_currency_symbol": "ETH",
"covalent_code": "ethereum",
"coingecko_code": "ethereum",
"logo_url": "https://www.datocms-assets.com/86369/1669653891-eth.svg",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 137,
"code": "matic-mainnet",
"name": "Polygon",
"category": "Polygon",
"namespace": "eip155",
"is_testnet": false,
"native_currency_symbol": "MATIC",
"covalent_code": "polygon-pos",
"coingecko_code": "polygon-pos",
"logo_url": "https://www.datocms-assets.com/86369/1677870347-property-1-polygon-zkevm-icon-white.svg",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 8453,
"code": "base-mainnet",
"name": "Base",
"category": "Coinbase",
"namespace": "eip155",
"is_testnet": false,
"native_currency_symbol": "ETH",
"covalent_code": "base",
"coingecko_code": "base",
"logo_url": "https://www.datocms-assets.com/86369/1677538323-property-1-base-icon-white.svg",
"explorer_url": "",
"address_explorer_url": ""
},
{
"id": 42161,
"code": "arbitrum-mainnet",
"name": "Arbitrum",
"category": "Arbitrum",
"namespace": "eip155",
"is_testnet": false,
"native_currency_symbol": "ETH",
"covalent_code": "arbitrum-one",
"coingecko_code": "arbitrum-one",
"logo_url": "https://www.datocms-assets.com/86369/1686072650-arbitrum-icon-white.svg",
"explorer_url": "",
"address_explorer_url": ""
}
]{
"error": {
"code": 400,
"errors": [
{
"domain": "orders",
"reason": "InsufficientQuantity"
}
],
"message": "Insufficient quantity"
}
}Authorizations
Response
OK
Address page URL on the block explorer. Empty when unset.
Grouping label, for example Ethereum or Bitcoin.
Stable chain code, for example eth-mainnet.
CoinGecko chain identifier. Empty when unset.
Covalent chain identifier. Empty when unset.
Block explorer base URL. Empty when unset.
Chain ID. Pass this value as chain_id on other endpoints.
True when this chain is a testnet.
URL of the chain logo. Empty when unset.
Display name.
CAIP-2 namespace the chain belongs to.
Available options:
unknown, bip122, eip155, solana, tron, ton, sui Native gas token symbol.