POST /account/balance
POST

/v1/account/balance

Batch balance lookup (max 100)

AuthNone — works without a key

Payload

POSThttps://api.xrpl.to/v1/account/balance
Body
Body fieldsas documented
{ accounts[] }
curl -X POST 'https://api.xrpl.to/v1/account/balance' \
  -H 'Content-Type: application/json' \
  -d '{ "accounts": [ "rJqiMb94hyz41SBTNr2AyPNW8AzELa8nE", "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ" ] }'

Response

200Example response1 ms · just now · 0.5 KB · 23 lines
https://api.xrpl.to/v1/account/balance
{
  "success": true,
  "took": 1,
  "count": 2,
  "data": [
    {
      "account": "rJqiMb94hyz41SBTNr2AyPNW8AzELa8nE",
      "balance": 206134579.448479,
      "total": 206134581.048479,
      "reserve": 1.6,
      "flags": 0,
      "regularKey": null
    },
    {
      "account": "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ",
      "balance": 2.7688249999999996,
      "total": 5.168825,
      "reserve": 2.4000000000000004,
      "flags": 0,
      "regularKey": null
    }
  ]
}
Shapeas documented
{
  success,
  took,
  count,
  data[]: {
    account,
    balance (spendable after reserves),
    total,
    reserve,
    flags,
    regularKey (or null)
  }
}; an account not on the ledger (never funded, or deleted) has no row

What it does

Batch balance lookup (max 100)

An account is its r-address, e.g. rN7n3473SaZBCG4dFL83w7a1RXtXtbk2D9.
OpenAPI