Docs
Supported ChainsLineaJSON-RPC APITransaction Methods

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

Request
transactionHashDATA

32-byte transaction hash

Response Body

Response
hashDATA

Transaction hash

fromDATA

Sender address

toDATA

Recipient address

valueQUANTITY

Value in wei

gasQUANTITY

Gas provided

gasPriceQUANTITY

Gas price in wei

inputDATA

Transaction input data

nonceQUANTITY

Sender's nonce

blockHashDATA

Block hash (null if pending)

blockNumberQUANTITY

Block number (null if pending)

Code Examples

Bash
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 CodeMessageDescription
-32602Invalid paramsInvalid transaction hash format