Coins

Coins

Endpoint: Coins

💡
The Endpoints ERC-20 Tokens and Coins are publicly available in DEV-ONLY mode limits of 2 requests per 5 seconds. Without any additional efforts you can start integrating these two endpoints, gaining access to all ERC-20 balances across 8 EVM networks.

/coins/{address}

Returns the native coin balance for address across all networks. Limited data such as token lists, token categories, prices and icons provided by CoinGecko.

Example

https://datalayer.decommas.net/datalayer/api/v1/coins/{address}?api-key={YOUR-API-KEY}

GET-params:

  • api-key
  • networks (default networks=all). You can pass the names of the networks you need, for example, for optimism and arbitrum, the request will look like this:
    • https://datalayer.decommas.net/datalayer/api/v1/coins/{address}?networks=optimism,arbitrum&api-key={YOUR-API-KEY}

Response example (ALL FIELDS ARE MANDATORY)

{
  "count": 2,
  "status": 200,
  "result": [
    {
      "chain_name": "mainnet",
      "chain_id": 1,
      "name": "ethereum",
      "symbol": "ETH",
      "logo_url": "https://assets.coingecko.com/coins/images/279/large/ethereum.png?1595348880",
      "decimals": 18,
      "amount": "2631431841986023403",
      "actual_price": "1800"
    },
    {
      "chain_name": "optimism",
      "chain_id": 10,
      "name": "ethereum",
      "symbol": "ETH",
      "logo_url": "https://assets.coingecko.com/coins/images/279/large/ethereum.png?1595348880",
      "decimals": 18,
      "amount": "26074769918530822",
      "actual_price": "1800"
    }
  ]
}