Docs

eth_getTransactionByHash - Linea RPC Method

Retrieve transaction details by hash on Linea. Essential for enterprise developers, DeFi builders, and teams seeking Consensys ecosystem integration tracking transactions on Consensys-backed zkEVM L2 with $1B+ TVL and 807% growth in 2025.

Returns the information about a transaction by transaction hash on Linea.

Why Linea? Build on Consensys-backed zkEVM L2 with $1B+ TVL and 807% growth in 2025 with 15-30x lower fees than Ethereum mainnet, 6,200 TPS throughput, SWIFT integration with 12+ institutions, and $725M Consensys backing.

Use Cases

The eth_getTransactionByHash method is essential for:

  • Transaction tracking - Get details of pending or confirmed transactions
  • Payment verification - Verify transaction parameters
  • Debugging - Analyze transaction data for enterprise DeFi (Aave, Renzo), institutional cross-border payments via SWIFT pilots, and zkEVM-native applications
  • Block explorers - Display transaction information

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid transaction hash format