eth_getTransactionByHash - Astar RPC Method
Retrieve transaction details by hash on Astar. Essential for multi-chain dApp developers, DeFi builders, and teams leveraging Polkadot + Ethereum ecosystems tracking transactions on Polkadot's leading dApp hub supporting EVM, WASM, and upcoming PolkaVM environments.
Returns the information about a transaction by transaction hash on Astar.
Why Astar? Build on Polkadot's leading dApp hub supporting EVM, WASM, and upcoming PolkaVM environments with EVM + WASM + PolkaVM support, Build2Earn developer rewards, dApp Staking, and Soneium cross-layer integration.
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-VM smart contracts, and XCM-enabled interoperability with Ethereum and Cosmos
- 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 Astar. Essential for broadcasting transactions for cross-chain DeFi, multi-VM smart contracts, and XCM-enabled interoperability with Ethereum and Cosmos.
eth_getTransactionReceipt
Get transaction receipt with status and logs on Astar. Essential for verifying transaction execution for cross-chain DeFi, multi-VM smart contracts, and XCM-enabled interoperability with Ethereum and Cosmos.