tx_history - XRPL

Example code for the tx_history JSON RPC method. Complete guide to using tx_history JSON-RPC in the GetBlock Web3 documentation.

This method retrieves some of the most recent transactions made. This method is deprecated and may be removed in future versions.

circle-exclamation

Parameters

Parameter
Type
Required
Description

start

number

No

Starting index

Request Example

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

Response Example

Returns

Field
Type
Description

index

number

Starting index

txs

array

Transaction array

Last updated

Was this helpful?