Skip to main content
Returns information about a transaction given its hash. Returns null for unknown transactions.

Parameters

transactionHash
string
required
The 32-byte transaction hash.

Returns

result
object | null
A transaction object, or null if the transaction was not found.
Transaction types on Base: Base supports Ethereum-standard types (0x0 legacy, 0x1 EIP-2930, 0x2 EIP-1559) as well as Base deposit transactions (0x7e). Deposit transactions are injected by the sequencer at the start of each block. Fields like maxFeePerGas, accessList, and chainId are not present on 0x7e transactions; instead they carry sourceHash, mint, depositReceiptVersion, and yParity.

Example

{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionByHash",
  "params": ["0x03c8f106f18ad94190e763e21b584c5825b2f4c61f1274c0e8abe65b4476cd51"],
  "id": 1
}