web3j icon indicating copy to clipboard operation
web3j copied to clipboard

Request for eth_feeHistory API

Open sahashuvo opened this issue 3 years ago • 1 comments

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!

sahashuvo avatar Aug 23 '21 12:08 sahashuvo

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.

chris-stallings-pol avatar Nov 02 '21 21:11 chris-stallings-pol

@sahashuvo @chris-stallings-pol closing this, support for eth_feeHistory was added a while back.

mohamedelshami avatar Oct 23 '22 10:10 mohamedelshami