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
Request Parameters
32-byte transaction hash
Response Body
Transaction hash
Sender address
Recipient address
Value in wei
Gas provided
Gas price in wei
Transaction input data
Sender's nonce
Block hash (null if pending)
Block number (null if pending)
Code Examples
curl -X POST https://api-linea-mainnet-archive.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": ["0xc9e9cb9405a8e526ee8eb21e2aae56fe6df29590f8e4d44148f15c8f6a263128"],
"id": 1
}'Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32602 | Invalid params | Invalid transaction hash format |
Related Methods
eth_getTransactionReceipt- Get transaction receipteth_sendRawTransaction- Send transaction
eth_sendRawTransaction
Submit signed transactions to Linea. Essential for broadcasting transactions for enterprise DeFi (Aave, Renzo), institutional cross-border payments via SWIFT pilots, and zkEVM-native applications.
eth_getTransactionReceipt
Get transaction receipt with status and logs on Linea. Essential for verifying transaction execution for enterprise DeFi (Aave, Renzo), institutional cross-border payments via SWIFT pilots, and zkEVM-native applications.