eth_getTransactionReceipt - Moonbase RPC Method
Get transaction receipt with status and logs on Moonbase Alpha. Essential for verifying transaction execution for EVM dApp testing, XCM integration validation, and pre-mainnet deployment verification.
Returns the receipt of a transaction by transaction hash on Moonbase Alpha. Receipt is only available for mined transactions.
Why Moonbase? Build on the Moonbeam testnet for risk-free EVM dApp development and deployment testing with free testnet tokens, full EVM compatibility, XCM testing capabilities, and identical feature set to Moonbeam mainnet.
Use Cases
The eth_getTransactionReceipt method is essential for:
- Transaction confirmation - Verify transaction was mined successfully
- Gas analysis - Check actual gas used vs estimated
- Event parsing - Read emitted events from logs
- Status verification - Confirm success/failure for EVM dApp testing, XCM integration validation, and pre-mainnet deployment verification
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32602 | Invalid params | Invalid transaction hash |
Note: Returns null if transaction is not yet mined.
Related Methods
eth_getTransactionByHash- Get transaction detailseth_getLogs- Query logs by filter
eth_getTransactionByHash
Retrieve transaction details by hash on Moonbase Alpha. Essential for Moonbeam developers, dApp testers, and teams validating cross-chain integrations tracking transactions on the Moonbeam testnet for risk-free EVM dApp development and deployment testing.
eth_estimateGas
Estimate gas required for transactions on Moonbase Alpha. Essential for optimizing transaction costs for EVM dApp testing, XCM integration validation, and pre-mainnet deployment verification.