Skip to main content

gateway_balances RPC Method

Retrieves the total balances issued by a specified account, with the option to exclude amounts held by operational addresses

Updated on
Jun 11, 2026

Parameters

object
object
REQUIRED

The gateway_balances request object.

account
string
REQUIRED

The account for which balances are to be retrieved

ledger_index
string

The index of the ledger to retrieve the balances from

strict
boolean

A boolean flag indicating whether strict validation should be applied

Returns

result
object

An object which contains the following fields:

account
string

The account for which balances were retrieved

obligations
object

(Optional) (Omitted if empty) The total amounts issued to addresses not excluded are returned as a map of currencies to the total value issued

<dynamic_key>
string

Currency code mapped to total issued amount

balances
array

(Optional) (Omitted if empty) The amounts issued to the hot wallet addresses specified in the request are returned as a separate field

assets
object

(Optional) (Omitted if empty) Total amounts held that are issued by others

<dynamic_key>
array

Account address mapped to issued asset balances

currency
string

The currency code

value
string

The balance amount

ledger_index
integer

The index of the ledger from which balances were retrieved

ledger_hash
string

The hash of the ledger containing the balances

ledger_current_index
string

(Optional) Omitted if ledger_current_index is provided) The ledger index of the current in-progress ledger version used to retrieve this information

validated
boolean

(Optional) Indicates if the information is from a validated ledger

status
string

The status of the request

warnings
array

(Optional) An object of warning which contain the following fields. Returned at the JSON-RPC response root on some servers and omitted from the result object

id
integer

The ID of the warning

message
string

The warning message

Request
Response
1
{
2
"result": {
3
"obligations": {
4
"USD": "14.0301"
5
},
6
"assets": {
7
"rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q": [
8
{
9
"currency": "USD",
10
"value": "0.0001"
11
}
12
]
13
},
14
"locked": {
15
"XRP": "127777"
16
},
17
"account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
18
"ledger_index": 102609804,
19
"ledger_hash": "7735091DF9F32511F41AD963A8BDE4AF24B27D3AA3946903A31E3CFF2B948217",
20
"status": "success"
21
},
22
"warnings": [
23
{
24
"id": 2001,
25
"message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"
26
}
27
]
28
}
1
{
2
"result": {
3
"obligations": {
4
"USD": "14.0301"
5
},
6
"assets": {
7
"rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q": [
8
{
9
"currency": "USD",
10
"value": "0.0001"
11
}
12
]
13
},
14
"locked": {
15
"XRP": "127777"
16
},
17
"account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
18
"ledger_index": 102609804,
19
"ledger_hash": "7735091DF9F32511F41AD963A8BDE4AF24B27D3AA3946903A31E3CFF2B948217",
20
"status": "success"
21
},
22
"warnings": [
23
{
24
"id": 2001,
25
"message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"
26
}
27
]
28
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free