Skip to main content

gateway_balances RPC Method

Loading...

Updated on
Jun 11, 2026

gateway_balances RPC Method

Parameters

object
object
REQUIRED
Loading...
account
string
REQUIRED
Loading...
ledger_index
string
Loading...
strict
boolean
Loading...

Returns

result
object
Loading...
account
string
Loading...
obligations
array
Loading...
balances
array
Loading...
assets
array
Loading...
ledger_index
integer
Loading...
ledger_hash
string
Loading...
ledger_current_index
string
Loading...
validated
boolean
Loading...
status
string
Loading...
warnings
array
Loading...
id
integer
Loading...
message
string
Loading...
Request
1
curl -X POST "https://docs-demo.xrp-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "gateway_balances",
6
"params": [
7
{
8
"account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
9
"ledger_index": "validated",
10
"strict": true
11
}
12
],
13
"id": 1
14
}'
1
curl -X POST "https://docs-demo.xrp-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "gateway_balances",
6
"params": [
7
{
8
"account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
9
"ledger_index": "validated",
10
"strict": true
11
}
12
],
13
"id": 1
14
}'
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