Home

gateway_balances

POST
https://xrp.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Calculates the total balances issued by a given account, optionally excluding amounts held by operational addresses (hot wallets). This method is primarily used by gateway operators to calculate their net obligations to users.

Body

application/json

Calculates the total balances issued by a given account, optionally excluding amounts held by operational addresses (hot wallets). This method is primarily used by gateway operators to calculate their net obligations to users.

JSON-RPC request payload.

methodstringgateway_balancesrequired

The JSON-RPC method name

paramsArray<object>required

Ordered JSON-RPC method parameters.

Show child attributes
accountstringrequired

The unique identifier of the gateway's issuing address, typically an XRP Ledger address in base58 format. This is the account that issues the currencies (the gateway operator).

hotwalletArray<string>

(Optional) An array of operational addresses (hot wallets) to exclude from the balances. Amounts held by these addresses are not counted as obligations to users.

ledger_hashstring

(Optional) A 20-byte hex string identifying a specific ledger version to use for the request.

ledger_indexstringvalidatedclosedcurrent

The ledger index of the ledger to use for the request.

  • "validated": The most recent validated ledger (recommended for accurate balances)
  • "closed": The most recent closed ledger
  • "current": The current working ledger
strictboolean

If true, only accept a public key or XRP Ledger address for the account parameter.

Response

200OK

HTTP 200 response for gateway_balances. The body contains either a successful result or a method-level JSON-RPC error.

400Bad Request

Bad Request. The request body is malformed or contains invalid JSON-RPC parameters.

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal Server Error. The gateway or node failed while processing the request.