Balance

Get an account balance

post

Returns the balance of an ICRC-1 ledger account.

Body
Responses
200
Successful account balance response
application/json
post
POST /v1/<YOUR_API_KEY_HERE>/account/balance HTTP/1.1
Host: icrc-mainnet.icp.validationcloud.io
Content-Type: application/json
Accept: */*
Content-Length: 412

{
  "network_identifier": {
    "blockchain": "Internet Computer",
    "network": "mxzaz-hqaaa-aaaar-qaada-cai",
    "sub_network_identifier": {
      "network": "text",
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    }
  },
  "account_identifier": {
    "address": "text",
    "sub_account": {
      "address": "text",
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    },
    "metadata": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  },
  "block_identifier": {
    "index": null,
    "hash": "text"
  }
}
{
  "block_identifier": {
    "index": 1,
    "hash": "text"
  },
  "balances": [
    {
      "value": "text",
      "currency": {
        "symbol": "text",
        "decimals": 1,
        "metadata": {
          "ANY_ADDITIONAL_PROPERTY": "anything"
        }
      },
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    }
  ],
  "metadata": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}

Was this helpful?