Parameters
- objectobjectREQUIRED
The account_channels request object.
- accountstringREQUIRED
The XRP Ledger account for which payment channels information is requested
- destination_accountstring
The destination account for filtering the payment channels associated with it
- ledger_indexstring
The ledger index to retrieve the payment channel information from
Returns
- resultobject
An object with the following fields:
- accountstring
The XRP Ledger account for which the payment channels information is provided
- channelsarray
A list of payment channels associated with the account
- accountstring
The XRP Ledger account
- amountinteger
The amount of XRP allocated
- balanceinteger
The current balance
- channel_idstring
The channel ID
- destination_accountstring
The destination account
- public_keystring
The public key
- public_key_hexstring
The hexadecimal representation of the public key
- settle_delayinteger
The settlement delay
- limitinteger
The maximum number of payment channels returned
- ledger_hashstring
The hash of the ledger containing the payment channel information
- ledger_indexinteger
The index of the ledger containing the payment channel information
- 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"account": "r4AZpDKVoBxVcYUJCWMcqZzyWsHTteC4ZE",4"ledger_hash": "FE51E76B5948B60B847B5A1ECFF57C1EAF0FACDE7E408D5A1BEB1648F0D80E96",5"ledger_index": 102609803,6"validated": true,7"limit": 200,8"channels": [],9"status": "success"10},11"warnings": [12{13"id": 2001,14"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"15}16]17}
1{2"result": {3"account": "r4AZpDKVoBxVcYUJCWMcqZzyWsHTteC4ZE",4"ledger_hash": "FE51E76B5948B60B847B5A1ECFF57C1EAF0FACDE7E408D5A1BEB1648F0D80E96",5"ledger_index": 102609803,6"validated": true,7"limit": 200,8"channels": [],9"status": "success"10},11"warnings": [12{13"id": 2001,14"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"15}16]17}