ankr · Schema

Ankr Account Balance

Response payload returned by ankr_getAccountBalance — native + ERC-20 balances across one or more chains.

Properties

Name Type Description
totalBalanceUsd string
assets array
View JSON Schema on GitHub

JSON Schema

ankr-account-balance-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ankr/refs/heads/main/json-schema/ankr-account-balance-schema.json",
  "title": "Ankr Account Balance",
  "description": "Response payload returned by ankr_getAccountBalance — native + ERC-20 balances across one or more chains.",
  "type": "object",
  "properties": {
    "totalBalanceUsd": { "type": "string" },
    "assets": {
      "type": "array",
      "items": { "$ref": "#/$defs/Asset" }
    }
  },
  "$defs": {
    "Asset": {
      "type": "object",
      "required": ["blockchain", "tokenSymbol", "balance"],
      "properties": {
        "blockchain": { "type": "string" },
        "tokenName": { "type": "string" },
        "tokenSymbol": { "type": "string" },
        "tokenDecimals": { "type": "integer" },
        "tokenType": {
          "type": "string",
          "enum": ["NATIVE", "ERC20"]
        },
        "contractAddress": { "type": "string" },
        "holderAddress": { "type": "string" },
        "balance": { "type": "string" },
        "balanceRawInteger": { "type": "string" },
        "balanceUsd": { "type": "string" },
        "tokenPrice": { "type": "string" },
        "thumbnail": { "type": "string", "format": "uri" }
      }
    }
  }
}