xrp

XRP (XRP)

Method: POST account_tx

dropdown

POST account_tx

The account_tx method retrieves a list of transactions that involved the specified account.

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.

ledger_index_min - Integer

(Optional) Use to specify the earliest ledger to include transactions from.

A value of -1 instructs the server to use the earliest validated ledger version available.

ledger_index_max - Integer

(Optional) Use to specify the most recent ledger to include transactions from.

A value of -1 instructs the server to use the most recent validated ledger version available.

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.

binary - Boolean

(Optional) Defaults to false.

If set to true, returns transactions as hex strings instead of JSON.

forward - Boolean

(Optional) Defaults to false.

If set to true, returns values indexed with the oldest ledger first.

Otherwise, the results are indexed with the newest ledger first.

(Each page of results may not be internally ordered, but the pages are overall ordered.)

limit - Integer

(Optional, default varies) Limit the number of trust lines to retrieve.

The server is not required to honor this value.

Must be within the inclusive range 10 to 400.

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_tx",
"params": [{"account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH"}],
"id": "getblock.io"}'


Response

{
    "result": {
        "account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH",
        "ledger_index_max": 63631835,
        "ledger_index_min": 63631524,
        "limit": 0,
        "status": "success",
        "transactions": [],
        "validated": true
    }
}
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