Drex
Read the balance
nace balance prints what your account can spend now and what running work holds, exact to the nano-dollar (1 USD = 1,000,000,000 nUSD): available $<usd> (<nusd> nUSD), held $<usd> (<nusd> nUSD). A second line says pay as you go when the account pays for usage by invoice, and another says payment required when a payment is overdue. --json prints the response body, request_id included. It is free at any balance.
nace balanceavailable $4.871234567 (4871234567 nUSD), held $0.250000000 (250000000 nUSD)Available is unexpired credit less what running work holds, any overdraft and usage not yet settled, and never below 0. Held is reserved for work still running: each piece of work is charged at most what it reserved, and the rest returns to available when it ends. On a pay-as-you-go account requests still run at a zero balance. While a payment is overdue, billed requests answer 402 until it is paid.
With --json:
nace balance --jsonThe JSON response has object ("balance"), available_usd, available_nusd, held_usd, held_nusd, pay_as_you_go, payment_required, as_of (when the balance was read) and request_id. An OAuth token without the account:read scope fails with 403 insufficient_scope and exits 1; see Errors. See Get the balance for the API reference.