Docs

eth_getTransactionByHash - Sonic RPC Method

Retrieve transaction details by hash on Sonic. Essential for DeFi developers, high-frequency trading builders, and teams requiring sub-second finality tracking transactions on the world's fastest EVM chain with 720ms finality, $1.2B+ TVL, and 1,534% growth since launch.

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

Why Sonic? Build on the world's fastest EVM chain with 720ms finality, $1.2B+ TVL, and 1,534% growth since launch with 720ms transaction finality, 10K TPS, 90% fee sharing via FeeM, Fantom heritage with Andre Cronje leadership.

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 ultra-fast DeFi, high-frequency trading dApps, and performance-critical applications
  • Block explorers - Display transaction information

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid transaction hash format