eth_getTransactionByHash
eth_getTransactionByHash
Returns the transaction object for the given transaction hash. Returns null if the transaction is unknown. For pending transactions (in the mempool but not yet mined), blockHash, blockNumber, and transactionIndex are null.
⚡ Compute Units: 15 CU
Request
32-byte hash of a transaction
Response
32-byte hash of the transaction
20-byte address of the sender
20-byte address of the receiver, or null for contract-creation transactions.
32-byte hash of the block where this transaction was included. Null for pending transactions (mempool, not yet mined).
Transaction type as hex-encoded byte. Standard EIP values: 0x0 legacy, 0x1 EIP-2930 access list, 0x2 EIP-1559, 0x3 EIP-4844 blob, 0x4 EIP-7702 authorization. Some rollup stacks define additional types (e.g. 0x7E OP-Stack deposit transactions); these values are stack-specific.
EIP-2930 access list (present on type 0x1 and 0x2+)
EIP-1559 max total fee per gas (present on type 0x2+)
EIP-1559 max miner tip per gas (present on type 0x2+)
EIP-4844 max fee per blob gas (present on type 0x3)
EIP-4844 versioned hashes of blob commitments (present on type 0x3)
Signature y-parity (present on type 0x1+ instead of v)
Signature recovery byte (legacy and EIP-155 transactions)