account_currencies RPC Method
Parameters
object
object
REQUIRED
Loading...
account
string
REQUIRED
Loading...
account_index
integer
Loading...
ledger_index
string
Loading...
strict
boolean
Loading...
Returns
result
object
Loading...
ledger_hash
string
Loading...
ledger_index
integer
Loading...
receive_currencies
array
Loading...
send_currencies
array
Loading...
validated
boolean
Loading...
status
string
Loading...
warnings
array
Loading...
id
integer
Loading...
message
string
Loading...
Request
1curl -X POST "https://docs-demo.xrp-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "account_currencies",6"params": [7{8"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",9"account_index": 0,10"ledger_index": "validated",11"strict": true12}13],14"id": 115}'
1curl -X POST "https://docs-demo.xrp-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "account_currencies",6"params": [7{8"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",9"account_index": 0,10"ledger_index": "validated",11"strict": true12}13],14"id": 115}'
Response
1{2"result": {3"ledger_hash": "FE51E76B5948B60B847B5A1ECFF57C1EAF0FACDE7E408D5A1BEB1648F0D80E96",4"ledger_index": 102609803,5"validated": true,6"receive_currencies": [7"015841551A748AD2C1F76FF6ECB0CCCD00000000",8"BTC",9"CNY",10"DYM",11"EUR",12"JOE",13"MXN",14"USD"15],16"send_currencies": [17"5553445400000000000000000000000000000000",18"ASP",19"BTC",20"CHF",21"CNY",22"DYM",23"EUR",24"JOE",25"JPY",26"MXN",27"USD"28],29"status": "success"30},31"warnings": [32{33"id": 2004,34"message": "Some fields from your request are deprecated. Please check the documentation at https://xrpl.org/docs/references/http-websocket-apis/ and update your request. Field 'account_index' is deprecated. Field 'strict' is deprecated."35},36{37"id": 2001,38"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"39}40]41}
1{2"result": {3"ledger_hash": "FE51E76B5948B60B847B5A1ECFF57C1EAF0FACDE7E408D5A1BEB1648F0D80E96",4"ledger_index": 102609803,5"validated": true,6"receive_currencies": [7"015841551A748AD2C1F76FF6ECB0CCCD00000000",8"BTC",9"CNY",10"DYM",11"EUR",12"JOE",13"MXN",14"USD"15],16"send_currencies": [17"5553445400000000000000000000000000000000",18"ASP",19"BTC",20"CHF",21"CNY",22"DYM",23"EUR",24"JOE",25"JPY",26"MXN",27"USD"28],29"status": "success"30},31"warnings": [32{33"id": 2004,34"message": "Some fields from your request are deprecated. Please check the documentation at https://xrpl.org/docs/references/http-websocket-apis/ and update your request. Field 'account_index' is deprecated. Field 'strict' is deprecated."35},36{37"id": 2001,38"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"39}40]41}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free