Skip to main content

account_currencies RPC Method

Allows querying and retrieving the list of currencies associated with an XRP Ledger account

Updated on
Oct 4, 2023

account_currencies RPC Method

Parameters

account
string
REQUIRED
The XRP Ledger account for which the associated currencies are queried
account_index
integer
The account index
ledger_index
string
The ledger index to retrieve the currency information from
strict
boolean
A boolean field indicating whether strict validation should be applied

Returns

result
object
The method returns a JSON object with the following properties:
ledger_hash
string
The hash of the ledger containing the currency information
ledger_index
integer
The index of the ledger containing the currency information
receive_currencies
array
A list of currencies that the account can receive
send_currencies
array
A list of currencies that the account can send
validated
boolean
Indicates if the information is from a validated ledger
status
string
The status of the request
warnings
array
A list of warnings
id
integer
The ID of the warning
message
string
The warning message
Request
1
curl https://docs-demo.xrp-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "account_currencies",
6
"params": [{
7
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
8
"account_index": 0,
9
"ledger_index": "validated",
10
"strict": true
11
}],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free