eth_gasPrice
Fantom node API
eth_gasPrice | Fantom
Fantom API method that returns the current gas base fee of the network. Chainstack supports eth_gasPrice on Fantom JSON-RPC nodes.
POST
eth_gasPrice
Fantom API method that returns the current gas base fee of the network. The gas price is the quantity of the native token the transaction’s sender must pay per unit of gas consumed. The value returned is in Wei.Documentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
none
Response
quantity— the integer value of the current gas base fee, returned in Wei
eth_gasPrice code examples
Use case
You can useeth_gasPrice to calculate the total gas value to send with a transaction based on the base and priority fee system. Ethereum’s London hard fork implemented This concept with EIP-1559.
EIP-1559 aimed to solve the problem of network congestion by implementing a dynamic fee market mechanism, which adjusts the fee required to process a transaction based on network demand. With the current system, the total gas price comprises a base fee determined by the network’s load and a priority fee added by the user.
NoteThe
eth_gasPrice method returns the base fee.Last modified on May 18, 2026