Docs

eth_getTransactionByHash - Unichain RPC Method

Retrieve transaction details by hash on Unichain. Essential for DeFi developers, liquidity protocol builders, and teams building on the Optimism Superchain tracking transactions on Uniswap's DeFi-optimized Superchain L2 with 250ms sub-blocks and 95% lower costs than Ethereum.

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

Why Unichain? Build on Uniswap's DeFi-optimized Superchain L2 with 250ms sub-blocks and 95% lower costs than Ethereum with 250ms sub-blocks (fastest L2), TEE-secured block building, native Superchain interoperability, and 65% revenue to validators.

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 decentralized exchanges, liquidity protocols, and MEV-protected DeFi applications
  • Block explorers - Display transaction information

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid transaction hash format