Docs

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 CodeMessageDescription
-32603Internal errorNode error