kaia_gasPrice
The eth_gasPrice method returns the current gas price in wei on the Kaia network. This represents the amount of KAIA that must be paid per unit of gas for a transaction to be processed.
This method provides a simple estimate for gas pricing based on recent blocks and network conditions. While useful for quick estimates, applications using EIP-1559 transactions should consider using eth_feeHistory for more sophisticated fee estimation. Developers use this to set gas prices for legacy transactions, display current network costs to users, and implement basic fee estimation logic. The returned value reflects current network congestion and can vary significantly during periods of high activity.
Parameters
This method does not require any parameters.
Return Object
field | type | description |
|---|---|---|
result | string | The current gas price in wei encoded as a hexadecimal string. This is typically calculated based on recent blocks' gas prices and represents a reasonable value for transaction inclusion. |
Request Example
Request
Response Example
Response