Chains
Get information about all currently supported chains.
If you want to learn more about how to use this endpoint, please have a look at our guide.
API
Endpoint Details
GET /v1/chains
Get information about all blockchain networks supported by Xplore. This endpoint returns comprehensive metadata about each chain including native tokens, RPC URLs, block explorers, and more.
Request
Headers
X-API-KeystringThe apiKey allows you to authenticate on the API (optional)
Query Parameters
chainTypesstringRestrict the resulting chains to the given chainTypes (comma-separated, e.g., "EVM,SOLANA")
Response
Status Code: 200 OK
Content Type: application/json
Response
idnumberrequiredUnique chain identifier
keystringrequiredShort string representation of the chain
namestringrequiredName of the chain
chainTypestringrequiredChain type (e.g., "EVM", "SOLANA")
coinstringrequiredNative coin symbol
mainnetbooleanrequiredWhether this is a mainnet chain
logoURIstringURL to chain logo image
addressstringrequiredToken contract address (0x0000… for native tokens)
symbolstringrequiredToken symbol
decimalsnumberrequiredToken decimals
chainIdstringrequiredChain ID
namestringrequiredToken name
priceUSDstringToken price in USD
logoURIstringURL to token logo image
chainIdstringrequiredChain ID in hexadecimal format
blockExplorerUrlsstring[]Array of block explorer URLs
chainNamestringrequiredChain name for MetaMask
rpcUrlsstring[]Array of RPC URLs
multicallAddressstringMulticall contract address
Example Request
curl --request GET \
--url https://xplore.api.v2.routerprotocol.com/v1/chains \
--header 'X-API-Key: your-api-key-here'
Example Response
Status Code: 200 OK
{
"chains": [
{
"id": 1,
"key": "eth",
"name": "Ethereum",
"chainType": "EVM",
"coin": "ETH",
"mainnet": true,
"logoURI": "https://static.debank.com/image/chain/logo_url/eth/42ba589cd077e7bdd97db6480b0ff61d.png",
"nativeToken": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": "1",
"name": "Ether",
"priceUSD": "2500.00",
"logoURI": "https://..."
},
"metamask": {
"chainId": "0x1",
"blockExplorerUrls": ["https://etherscan.io"],
"chainName": "Ethereum Mainnet",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"rpcUrls": ["https://mainnet.infura.io/v3/..."]
},
"multicallAddress": "0xcA11bde05977b3631167028862bE2a173976CA11"
},
{
"id": 137,
"key": "pol",
"name": "Polygon",
"chainType": "EVM",
"coin": "MATIC",
"mainnet": true,
"nativeToken": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "MATIC",
"decimals": 18,
"chainId": "137",
"name": "Matic"
}
}
]
}
Code Examples
JavaScript/TypeScript
async function getChains() {
const response = await fetch('https://xplore.api.v2.routerprotocol.com/v1/chains', {
headers: {
'X-API-Key': 'your-api-key-here'
}
});
return await response.json();
}
// Usage
const chainsData = await getChains();
console.log(`Supported chains: ${chainsData.chains.length}`);
Python
import requests
def get_chains():
response = requests.get(
'https://xplore.api.v2.routerprotocol.com/v1/chains',
headers={'X-API-Key': 'your-api-key-here'}
)
return response.json()
# Usage
chains_data = get_chains()
print(f"Supported chains: {len(chains_data['chains'])}")