/v1/account/balance
Batch balance lookup (max 100)
Payload
https://api.xrpl.to/v1/account/balance{ accounts[] }
curl -X POST 'https://api.xrpl.to/v1/account/balance' \
-H 'Content-Type: application/json' \
-d '{ "accounts": [ "rJqiMb94hyz41SBTNr2AyPNW8AzELa8nE", "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ" ] }'Response
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 } ] }
{ 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)