Balance
The balance your keys spend from.
GETPOST
/api/v1/balanceEvery key spends the balance of the account that made it. Top up on your account page.
Request
curl "https://www.nfa.pub/api/v1/balance" \ -H "X-Api-Key: rsk_..."Response
12.50Request
curl "https://www.nfa.pub/api/v1/balance?result=json" \ -H "X-Api-Key: rsk_..."Response
{ "ok": true, "balance_eur": 12.5, "balance_cents": 1250}Every movement behind that number is in the ledger.
Errors
| Code | HTTP | Meaning |
|---|---|---|
E1001 | 401 | The key is missing, malformed, revoked or unknown. |
E1002 | 429 | Too many requests. Wait for the minute to roll over and retry. See Rate limits. |
E1702 | 403 | The request came from an IP that is not on your allowlist. |
Rate limit: 120 requests a minute per IP address.