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 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 Unichain. Essential for broadcasting transactions for decentralized exchanges, liquidity protocols, and MEV-protected DeFi applications.
eth_getTransactionReceipt
Get transaction receipt with status and logs on Unichain. Essential for verifying transaction execution for decentralized exchanges, liquidity protocols, and MEV-protected DeFi applications.