Parameters
- objectobjectREQUIRED
The account_currencies request object.
- accountstringREQUIRED
The XRP Ledger account for which the associated currencies are queried
- account_indexinteger
The account index
- ledger_indexstring
The ledger index to retrieve the currency information from
- strictboolean
A boolean field indicating whether strict validation should be applied
Returns
- resultobject
The method returns a JSON object with the following properties:
- ledger_hashstring
The hash of the ledger containing the currency information
- ledger_indexinteger
The index of the ledger containing the currency information
- receive_currenciesarray
A list of currencies that the account can receive
- send_currenciesarray
A list of currencies that the account can send
- validatedboolean
Indicates if the information is from a validated ledger
- statusstring
The status of the request
- warningsarray
(Optional) A list of warnings. Returned at the JSON-RPC response root on some servers and omitted from the
resultobject- idinteger
The ID of the warning
- messagestring
The warning message
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}