40 Compute Units.
Reference: Here
Parameters
account(string, required) Look up channels where this account is the channel’s owner/source.destination_account(string, optional) A second account; if provided, filter results to payment channels whose destination is this account.ledger_hash(string, optional) The unique hash of the ledger version to use.ledger_index(number or string, optional) The ledger index of the ledger to use, or a shortcut string such asvalidated,closedorcurrent.limit(number, optional) Limit the number of channels to retrieve. Cannot be less than 10 or more than 400. The default is 200.marker(marker, optional) Value from a previous paginated response. Resume retrieving data where that response left off.
Returns
account(string) The address of the source/owner of the payment channels.channels(array) Payment channels owned by this account. Each channel object hasaccount,channel_id,destination_account,amount,balance,settle_delay, and may includepublic_key,public_key_hex,expiration,cancel_after,source_taganddestination_tag.ledger_hash(string) The identifying hash of the ledger version used to generate this response.ledger_index(number) The ledger index of the ledger version used to generate this response.validated(boolean) Iftrue, the information comes from a validated ledger version.limit(number, may be omitted) The page size the server applied to this response, echoed from the request. It is not the number of channels returned: the example below reportslimit: 10with an emptychannelsarray.marker(marker) Server-defined value for pagination. Omitted when there are no additional pages.
{"id":1,"command":"account_channels","account":"rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De","ledger_index":"validated","limit":10} to wss://mainnet.xrpl.validationcloud.io/v1/<YOUR_API_KEY_HERE>.