web3j
web3j copied to clipboard
Request for eth_feeHistory API
Request for eth_feeHistory API
EIP-1559 transactions require three values to be considered when picking a network fee:
- Base fee. A fee that floats based on the network congestion and the most recent value can be fetched via a new JSON RPC call eth_feeHistory.
- Priority fee (tip). A fee to entice a block producer to include the transaction.
- Max fee. The highest network fee the user is willing to pay.
Reference: https://blog.infura.io/london-fork/#whatiseip1559
Is there any support for fetching the "Base fee" via the "eth_feeHistory" JSON RPC call? If not, I would like to request you to implement this feature in the upcoming version. Thanks!
Looks like there currently isn't a way to do this @sahashuvo, I combed over most of the codebase today. I am looking for the same thing; debating extending Web3j, waiting, or contributing.
@sahashuvo @chris-stallings-pol closing this, support for eth_feeHistory was added a while back.