eth_getTransactionByHash

Returns the information about a transaction requested by transaction hash.

Parameters

  • DATA, 32 Bytes - hash of a transaction
curl https://ethereum-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"eth_getTransactionByHash",
    "params":[
        "0xb3ab18c604e8b3b79493d0bcc1d86fb3b22f447267ec68a0033ae7efe564a619"
    ]
}'

Returns

  • Object - A transaction object, or null when no transaction was found:
    • blockHash: DATA, 32 Bytes - hash of the block where this transaction was in. null when its pending.
    • blockNumber: QUANTITY - block number where this transaction was in. null when its pending.
    • from: DATA, 20 Bytes - address of the sender.
    • gas: QUANTITY - gas provided by the sender.
      gasPrice: QUANTITY - gas price provided by the sender in Wei.
    • hash: DATA, 32 Bytes - hash of the transaction.
    • input: DATA - the data send along with the transaction.
    • nonce: QUANTITY - the number of transactions made by the sender prior to this one.
    • to: DATA, 20 Bytes - address of the receiver. null when its a contract creation transaction.
    • transactionIndex: QUANTITY - integer of the transactions index position in the block. null when its pending.
    • value: QUANTITY - value transferred in Wei.
    • v: QUANTITY - ECDSA recovery id
    • r: QUANTITY - ECDSA signature r
    • s: QUANTITY - ECDSA signature s
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0x1f0850d8d0e1a30492cbddc33b9c20bc1121fe73a65047b4001aea1a8f3e32a2",
        "blockNumber": "0x10f2175",
        "from": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5",
        "gas": "0x7d00",
        "gasPrice": "0x6fb12524f",
        "maxFeePerGas": "0x6fb12524f",
        "maxPriorityFeePerGas": "0x0",
        "hash": "0xb3ab18c604e8b3b79493d0bcc1d86fb3b22f447267ec68a0033ae7efe564a619",
        "input": "0x",
        "nonce": "0x493e3",
        "to": "0x13f2241aa64bb6da2b74553fa9e12b713b74f334",
        "transactionIndex": "0x91",
        "value": "0x21273c59af112c2",
        "type": "0x2",
        "accessList": [],
        "chainId": "0x1",
        "v": "0x0",
        "r": "0xd0fa0a5df1b1b62ae2cc6f90c10fc19bd28b062aa0d87ff6744714790b222813",
        "s": "0x5c3d3c5f8016c8f615946bd97ac7221656a1357e3efd14e3c2b5943e536190e7"
    }
}


Try Yourself

Language
Click Try It! to start a request and see the response here!