Get you 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.Body
application/json