eth_gasPrice - Moonriver RPC Method
Get current gas price on Moonriver. Essential for transaction cost estimation for production-grade dApp testing, early feature deployment, and Kusama-based EVM applications.
Returns the current gas price on Moonriver in wei.
Why Moonriver? Build on the Moonbeam canary network on Kusama for real-world testing of EVM dApps with Moonbeam code ships here first, full EVM compatibility on Kusama, 80% fee burn mechanism, and XCM cross-chain messaging.
Use Cases
The eth_gasPrice method is essential for:
- Transaction pricing - Set appropriate gas prices
- Cost estimation - Calculate transaction costs before sending
- Gas monitoring - Track network congestion
- DeFi operations - Optimize costs for production-grade dApp testing, early feature deployment, and Kusama-based EVM applications
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32603 | Internal error | Node error |
Related Methods
eth_maxPriorityFeePerGas- Get priority fee (EIP-1559)eth_feeHistory- Get historical fee dataeth_estimateGas- Estimate gas needed
eth_estimateGas
Estimate gas required for transactions on Moonriver. Essential for optimizing transaction costs for production-grade dApp testing, early feature deployment, and Kusama-based EVM applications.
eth_maxPriorityFeePerGas
Get the suggested priority fee (tip) per gas for EIP-1559 transactions on Moonriver. Essential for gas estimation, fee optimization, and time-sensitive transaction pricing.