Docs

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 CodeMessageDescription
-32602Invalid paramsInvalid transaction hash

Note: Returns null if transaction is not yet mined.