List chains
Returns a list of all blockchain networks supported by the Value Transfer API.
GET/chains
Returns all chains supported by the Value Transfer API, including chain type and native currency information.
Response
{"chains": [{"name": "Ethereum","shortName": "ETH","chainKey": "ethereum","chainType": "EVM","chainId": 1},{"name": "Arbitrum","shortName": "ARB","chainKey": "arbitrum","chainType": "EVM","chainId": 42161},{"name": "Solana","shortName": "SOL","chainKey": "solana","chainType": "SOLANA","chainId": 0}],"pagination": {}}
Reference
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
pagination[nextToken] | string | No | Pagination cursor from previous response |
Response
Returns a chains array containing chain objects and a pagination object for cursor-based pagination.
Attributes
| Attribute | Type | Description |
|---|---|---|
name | string | Full chain name (for example, Ethereum Mainnet) |
shortName | string | Short display name (for example, Ethereum) |
chainKey | string | Unique chain identifier (for example, ethereum, base) |
nativeCurrency | object | Native currency details |
nativeCurrency.chainKey | string | Chain where currency exists |
nativeCurrency.address | string | Token address for native currency |
nativeCurrency.decimals | number | Decimal places |
nativeCurrency.symbol | string | Currency symbol (for example, ETH) |
nativeCurrency.name | string | Currency name |
chainType | enum | Blockchain type: EVM, SOLANA, APTOS, TON, SUI, HYPERCORE, COSMOS, TRON, IOTAMOVE |
chainId | number or string | Native chain ID |
Code examples
- cURL
- TypeScript
- Python
curl -X GET "https://transfer.layerzero-api.com/v1/chains"
const response = await fetch('https://transfer.layerzero-api.com/v1/chains');
const {chains} = await response.json();
console.log(chains);
import requests
response = requests.get("https://transfer.layerzero-api.com/v1/chains")
chains = response.json()["chains"]
print(chains)
Response
{
"chains": [
{
"name": "Ethereum Mainnet",
"shortName": "Ethereum",
"chainKey": "ethereum",
"nativeCurrency": {
"chainKey": "ethereum",
"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"decimals": 18,
"symbol": "ETH",
"name": "Ether"
},
"chainType": "EVM",
"chainId": 1
},
{
"name": "Base",
"shortName": "Base",
"chainKey": "base",
"nativeCurrency": {
"chainKey": "base",
"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"decimals": 18,
"symbol": "ETH",
"name": "Ether"
},
"chainType": "EVM",
"chainId": 8453
},
{
"name": "Solana",
"shortName": "Solana",
"chainKey": "solana",
"nativeCurrency": {
"chainKey": "solana",
"address": "So11111111111111111111111111111111111111112",
"decimals": 9,
"symbol": "SOL",
"name": "Solana"
},
"chainType": "SOLANA",
"chainId": "solana-mainnet"
}
],
"pagination": {}
}
Native token addresses
| Chain type | Native token | Address format | Example |
|---|---|---|---|
| EVM | ETH, MATIC, etc. | Standard address | 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE |
| SOLANA | SOL | Base58 public key | So11111111111111111111111111111111111111112 |
| APTOS | APT | Move format | 0x1::aptos_coin::AptosCoin |
| TON | TON | TON address | EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c |