⚡ We welcome businesses to test our enterprise-grade service

Method: POST transaction_entry

dropdown

方法 RPC transaction_entry 例如 XRP

POST transaction_entry

transaction_entry 方法从特定分类帐版本中检索有关单个交易的信息。

(相比之下,tx 方法搜索指定交易的所有分类帐。我们建议改用该方法。)

Parameters

ledger_hash - 细绳

(可选)供分类帐版本使用的 20 字节十六进制字符串。

ledger_index - 字符串或无符号整数

(可选)要使用的分类帐的分类帐索引,或用于自动选择分类帐的快捷字符串。

tx_hash - 细绳

您正在查找的交易的唯一哈希

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
    }
}