Blockchains Metadata
Get list of blockchains supported by Rango
If you want to only receive the metadata for supported blockchains, you can use use chains
method like this:
const meta = await rango.chains()
curl --request GET \
--url 'https://api.rango.exchange/basic/meta/blockchains?apiKey=c6381a79-2817-4602-83bf-6a641a409e32'
This is a sample of response for blockchains metadata endpoint:
[
{
"name": "ETH",
"defaultDecimals": 18,
"addressPatterns": [
"^(0x)[0-9A-Fa-f]{40}$"
],
"feeAssets": [
{
"blockchain": "ETH",
"symbol": "ETH",
"address": null
}
],
"type": "EVM",
"chainId": "0x1",
"logo": "https://raw.githubusercontent.com/rango-exchange/assets/main/blockchains/ETH/icon.svg",
"displayName": "Ethereum",
"shortName": "ETH",
"sort": 0,
"color": "#ecf0f1",
"enabled": true,
"info": {
"infoType": "EvmMetaInfo",
"chainName": "Ethereum Mainnet",
"nativeCurrency": {
"name": "ETH",
"symbol": "ETH",
"decimals": 18
},
"rpcUrls": [
"https://rpc.ankr.com/eth"
],
"blockExplorerUrls": [
"https://etherscan.io"
],
"addressUrl": "https://etherscan.io/address/{wallet}",
"transactionUrl": "https://etherscan.io/tx/{txHash}",
"enableGasV2": true
}
},
{
"name": "BTC",
"defaultDecimals": 8,
"addressPatterns": [
"^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$|^(bc1)[0-9A-Za-z]{39,59}$"
],
"feeAssets": [
{
"blockchain": "BTC",
"symbol": "BTC",
"address": null
}
],
"type": "TRANSFER",
"chainId": null,
"logo": "https://raw.githubusercontent.com/rango-exchange/assets/main/blockchains/BTC/icon.svg",
"displayName": "Bitcoin",
"shortName": "BTC",
"sort": 13,
"color": "#F7931A",
"enabled": true,
"info": null
},
{
"name": "TRON",
"defaultDecimals": 18,
"addressPatterns": [
"^T[1-9A-HJ-NP-Za-km-z]{33}$"
],
"feeAssets": [
{
"blockchain": "TRON",
"symbol": "TRX",
"address": null
}
],
"type": "TRON",
"chainId": "0x2b6653dc",
"logo": "https://raw.githubusercontent.com/rango-exchange/assets/main/blockchains/TRON/icon.svg",
"displayName": "Tron",
"shortName": "Tron",
"sort": 12,
"color": "#FF060A",
"enabled": true,
"info": {
"infoType": "EvmMetaInfo",
"chainName": "TRON Mainnet",
"nativeCurrency": {
"name": "TRX",
"symbol": "TRX",
"decimals": 6
},
"rpcUrls": [
"https://api.trongrid.io/jsonrpc"
],
"blockExplorerUrls": [
"https://tronscan.org/#"
],
"addressUrl": "https://tronscan.org/#/address/{wallet}",
"transactionUrl": "https://tronscan.org/#/transaction/{txHash}",
"enableGasV2": false
}
},
{
"name": "COSMOS",
"defaultDecimals": 6,
"addressPatterns": [
"^(cosmos1)[0-9a-z]{38}$"
],
"feeAssets": [
{
"blockchain": "COSMOS",
"symbol": "ATOM",
"address": null
}
],
"type": "COSMOS",
"chainId": "cosmoshub-4",
"logo": "https://raw.githubusercontent.com/rango-exchange/assets/main/blockchains/COSMOS/icon.svg",
"displayName": "Cosmos",
"shortName": "Cosmos",
"sort": 16,
"color": "#2E3148",
"enabled": true,
"info": {
"infoType": "CosmosMetaInfo",
"experimental": false,
"rpc": "https://cosmos-rpc.polkachu.com",
"rest": "https://lcd-cosmoshub.blockapsis.com",
"cosmostationLcdUrl": "https://lcd-cosmoshub.blockapsis.com",
"cosmostationApiUrl": "https://cosmos-rpc.polkachu.com",
"cosmostationDenomTracePath": "/ibc/apps/transfer/v1/denom_traces/",
"mintScanName": "cosmos",
"chainName": "Cosmos",
"stakeCurrency": {
"coinDenom": "ATOM",
"coinMinimalDenom": "uatom",
"coinDecimals": 6,
"coinGeckoId": "cosmos",
"coinImageUrl": "/tokens/blockchain/cosmos.svg"
},
"bip44": {
"coinType": 118
},
"bech32Config": {
"bech32PrefixAccAddr": "cosmos",
"bech32PrefixAccPub": "cosmospub",
"bech32PrefixValAddr": "cosmosvaloper",
"bech32PrefixValPub": "cosmosvaloperpub",
"bech32PrefixConsAddr": "cosmosvalcons",
"bech32PrefixConsPub": "cosmosvalconspub"
},
"currencies": [
{
"coinDenom": "ATOM",
"coinMinimalDenom": "uatom",
"coinDecimals": 6,
"coinGeckoId": "cosmos",
"coinImageUrl": "/tokens/blockchain/cosmos.svg"
}
],
"feeCurrencies": [
{
"coinDenom": "ATOM",
"coinMinimalDenom": "uatom",
"coinDecimals": 6,
"coinGeckoId": "cosmos",
"coinImageUrl": "/tokens/blockchain/cosmos.svg"
}
],
"features": [
"stargate",
"ibc-transfer"
],
"explorerUrlToTx": "https://www.mintscan.io/cosmos/txs/{txHash}",
"gasPriceStep": {
"low": 0.01,
"average": 0.025,
"high": 0.04
}
}
},
{
"name": "SOLANA",
"defaultDecimals": 9,
"addressPatterns": [
"^[1-9A-HJ-NP-Za-km-z]{32,44}$"
],
"feeAssets": [
{
"blockchain": "SOLANA",
"symbol": "SOL",
"address": null
}
],
"type": "SOLANA",
"chainId": "mainnet-beta",
"logo": "https://raw.githubusercontent.com/rango-exchange/assets/main/blockchains/SOLANA/icon.svg",
"displayName": "Solana",
"shortName": "Solana",
"sort": 21,
"color": "#708DD2",
"enabled": true,
"info": null
},
...
]
Last updated