xrp

XRP (XRP)

Method: POST tx

dropdown

POST tx

The tx method retrieves information on a single transaction, by its identifying hash.

Parameters

transaction - String

The 256-bit hash of the transaction, as hex.

binary - Boolean

(Optional) If true, return transaction data and metadata as binary serialized to hexadecimal strings.

If false, return transaction data and metadata as JSON. The default is false.

min_ledger - Number

(Optional) Use this with max_ledger to specify a range of up to 1000 ledger indexes, starting with this ledger (inclusive).

If the server cannot find the transaction, it confirms whether it was able to search all the ledgers in this range.

max_ledger - Number

(Optional) Use this with min_ledger to specify a range of up to 1000 ledger indexes, ending with this ledger (inclusive).

If the server cannot find the transaction, it confirms whether it was able to search all the ledgers in the requested range.

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


Response

{
    "result": {
        "error": "txnNotFound",
        "error_code": 29,
        "error_message": "Transaction not found.",
        "request": {
            "command": "tx",
            "transaction": "C53ECF838647FA5A4C780377025FEC7999AB4182590510CA461444B207AB74A9"
        },
        "status": "error"
    }
}
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