/accounts/{accountId}/balance-info - Polkadot

This endpoint returns the balance details for an account: free, reserved, and frozen amounts, the nonce, and any balance locks, at the latest or a specified block.

On GetBlock's unified endpoint, Asset Hub is the default network. To call this endpoint against the Relaychain, add an /rc prefix to the path (for example, /rc/accounts/{accountId}/balance-info).

Endpoint

httpGET /accounts/{accountId}/balance-info

Path Parameters

ParameterTypeDescription
accountIdstringSS58 account address

Query Parameters

ParameterTypeRequiredDescription
atstringNoBlock height or hash to query at. Defaults to the latest block

Request

bashcurl --location 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/accounts/15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5/balance-info'

example.js

javascriptconst response = await fetch('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/accounts/15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5/balance-info');
const data = await response.json();
console.log(data);

example.py

pythonimport requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/accounts/15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5/balance-info')
print(response.json())

Response

json{
  "at": {
    "hash": "0x255bc00927df8d33d561792635cbc6bde480a0a505eef5ff28630ece3fc15b32",
    "height": "6754362"
  },
  "nonce": "1234",
  "tokenSymbol": "DOT",
  "free": "50000000000",
  "reserved": "1000000000",
  "frozen": "0",
  "locks": []
}

Response Fields

FieldTypeDescription
noncestringAccount nonce
tokenSymbolstringNative token symbol (DOT)
freestringFree balance in Planck
reservedstringReserved balance in Planck
frozenstringFrozen balance in Planck
locksarrayActive balance locks

Use Cases

  • Balance Display: Show an account's spendable and reserved balance
  • Wallets: Read balance and nonce in a single call
  • Accounting: Reconcile free, reserved, and frozen amounts
  • Transfer Checks: Confirm sufficient free balance before a transfer