eth_gasPrice - World Chain RPC Method
Get current gas price on World Chain. Essential for transaction cost estimation for human-verified DeFi, identity-gated applications, bot-resistant services.
Returns the current gas price on World Chain in wei.
Why World Chain? Build on the human-first Ethereum L2 powered by World ID with World ID integration for free gas and priority blockspace.
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 human-verified DeFi, identity-gated applications, bot-resistant services
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 World Chain. Essential for optimizing transaction costs for human-verified DeFi, identity-gated applications, bot-resistant services.
eth_maxPriorityFeePerGas
Get the suggested priority fee (tip) per gas for EIP-1559 transactions on World Chain. Essential for gas estimation, fee optimization, and time-sensitive transaction pricing.