eth_gasPrice - Viction RPC Method
Get current gas price on Viction. Essential for transaction cost estimation for gasless token operations, consumer-friendly dApps, and cost-free user onboarding.
Returns the current gas price on Viction in wei.
Why Viction? Build on the zero-gas L1 blockchain making Web3 accessible with 150 masternodes and VRC25 gasless tokens with zero-gas transactions via TomoZ, VRC25 gasless token standard, 150 masternodes, and partnerships with LayerZero and MoonPay.
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 gasless token operations, consumer-friendly dApps, and cost-free user onboarding
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 Viction. Essential for optimizing transaction costs for gasless token operations, consumer-friendly dApps, and cost-free user onboarding.
eth_maxPriorityFeePerGas
Get the suggested priority fee (tip) per gas for EIP-1559 transactions on Viction. Essential for gas estimation, fee optimization, and time-sensitive transaction pricing.