Docs

eth_getTransactionByHash - Moonbeam RPC Method

Retrieve transaction details by hash on Moonbeam. Essential for cross-chain dApp developers, Polkadot builders, and teams requiring multi-chain interoperability tracking transactions on the cross-chain connected EVM platform on Polkadot with $65M+ TVL and 100+ projects.

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

Why Moonbeam? Build on the cross-chain connected EVM platform on Polkadot with $65M+ TVL and 100+ projects with full EVM compatibility on Polkadot, native XCM cross-chain messaging, 10K+ TPS, 24% staking APR, and $0.015 transaction costs.

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 cross-chain DeFi, multi-chain dApps, and Ethereum-to-Polkadot bridging via XCM, Axelar, LayerZero, and Wormhole
  • Block explorers - Display transaction information

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid transaction hash format