xrp

XRP (XRP)

Method: POST account_channels

dropdown

POST account_channels

The account_channels method returns information about an account's Payment Channels.

This includes only channels where the specified account is the channel's source, not the destination.

(A channel's "source" and "owner" are the same.)

All information retrieved is relative to a particular version of the ledger.

Parameters

account - String

The unique identifier of an account, typically the account's Address.

The request returns channels where this account is the channel's owner/source.

destination_account - String

(Optional) The unique identifier of an account, typically the account's Address.

If provided, filter results to payment channels whose destination is this account.

ledger_hash - String

(Optional) A 20-byte hex string for the ledger version to use.

ledger_index - String or Unsigned Integer

(Optional) The ledger index of the ledger to use, or a shortcut string to choose a ledger automatically.

limit - Integer

(Optional) Limit the number of transactions 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.

Request

curl --location --request POST 'https://xrp.getblock.io' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "account_channels",
"params": [{"account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH"}],
"id": "getblock.io"}'


Response

{
    "result": {
        "account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH",
        "channels": [],
        "ledger_current_index": 63631836,
        "status": "success",
        "validated": false
    }
}
GetBlock.io

Get access to 40+ blockchain nodes right now! GetBlock provides a fast and reliable connection for the most popular cryptocurrencies` nodes.

Subscribe

Email is invalid

2019 - 2021 GetBlock