xrp

XRP (XRP)

Method: POST transaction_entry

dropdown

POST transaction_entry

The transaction_entry method retrieves information on a single transaction from a specific ledger version.

(The tx method, by contrast, searches all ledgers for the specified transaction. We recommend using that method instead.)

Parameters

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.

tx_hash - String

Unique hash of the transaction you are looking up

Request

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": "transaction_entry",
"params": [{"tx_hash": "C53ECF838647FA5A4C780377025FEC7999AB4182590510CA461444B207AB74A9"}],
"id": "getblock.io"}'


Response

{
    "result": {
        "error": "notYetImplemented",
        "ledger_current_index": 63632463,
        "request": {
            "command": "transaction_entry",
            "tx_hash": "C53ECF838647FA5A4C780377025FEC7999AB4182590510CA461444B207AB74A9"
        },
        "status": "error",
        "validated": false
    }
}
GetBlock.io

Get access to 40+ blockchain nodes right now! GetBlock provides a fast and reliable API connection to full nodes from many leading blockchains.

Subscribe

Email is invalid

2019 - 2021 GetBlock