1️⃣Meta

Supported chains, tokens and swappers

To get the list of available blockchains, tokens, and protocols (dex or bridge) supported by Rango, you could use the meta method like this:

const meta = await rango.meta()
Metadata API

Here is a sample of what you have inside the meta response:

meta sample
{
  "tokens": [{
    "blockchain": "ETH",
    "symbol": "USDT",
    "name": "Tether USD",
    "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
    "isPopular": true,
    "chainId": "1",
    "decimals": 6,
    "image": "https://rango.vip/i/r3Oex6",
    "blockchainImage": "https://raw.githubusercontent.com/rango-exchange/assets/main/blockchains/ETH/icon.svg",
    "usdPrice": 1,
    "supportedSwappers": [
        "ThorChain",
        "Arbitrum Bridge",
        // ...
      ]
  }],
  "blockchains": [{
    "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
    }
  }],
  "swappers": [{
    "id": "Stargate Aggregator",
    "title": "Stargate",
    "logo": "https://raw.githubusercontent.com/rango-exchange/assets/main/swappers/Stargate/icon.svg",
    "swapperGroup": "Stargate",
    "types": [
      "AGGREGATOR"
    ],
    "enabled": true
  }]
}

Last updated