Skip to content
ChainPesaDocsTest mode
Dashboard

API reference · Balance

Retrieve your balance

The wallet balance for each stablecoin you hold. Amounts are strings in major units with 6 decimals. A currency you have never held is not listed.

GET/api/v1/balance

Requires the wallet:read scope. Returns 200 on success.

Common errors

StatusCodeWhen
401unauthorizedBad or revoked key, or a disallowed address
403forbiddenThe key lacks the scope
429rate_limitedSlow down; see Retry-After

All error codes

Request
curl https://dev.chainpesa.com/api/v1/balance \
  -H "Authorization: Bearer $CHAINPESA_KEY"
Response 200
{
  "object": "balance",
  "mode": "test",
  "available": [
    {
      "currency": "USDT",
      "amount": "1250.000000"
    }
  ]
}
Send a test request

Runs against your test data. Your key is not saved and is cleared when you leave the page.