eth_sendRawTransaction - Moonbase RPC Method
Submit signed transactions to Moonbase Alpha. Essential for broadcasting transactions for EVM dApp testing, XCM integration validation, and pre-mainnet deployment verification.
Submits a pre-signed transaction for broadcast to Moonbase Alpha.
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_sendRawTransaction method is essential for:
- Broadcasting transactions - Submit signed transactions to the network
- Wallet operations - Send native tokens and interact with contracts
- DeFi operations - Execute swaps, provide liquidity for EVM dApp testing, XCM integration validation, and pre-mainnet deployment verification
- Batch operations - Submit multiple transactions efficiently
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32000 | Nonce too low | Transaction nonce already used |
| -32000 | Insufficient funds | Account has insufficient balance |
| -32000 | Gas too low | Gas limit insufficient |
| -32000 | Replacement underpriced | Gas price too low for replacement |
Related Methods
eth_estimateGas- Estimate gas requiredeth_gasPrice- Get current gas priceeth_getTransactionReceipt- Get transaction result
eth_accounts
Returns a list of addresses owned by the client on Moonbase Alpha. Typically returns an empty array on public RPC endpoints.
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.