I understand that after EIP-1559 implementation, the fee structure changes to now have max priority fee and max fee instead of single gas price.
The question is though what could be the best strategy to estimate these? In legacy transactions, we could have used web3.eth.getGasPrice()
and use the value as gas price for transactions.
Secondly, as per notes on EIP-1559; we can use the escalator mechanism to increase priority fee as the block count increases for my transaction. This looks awesome as this can avoid all the hassle of re-attempting the transactions when the gas price has increased. How can we actually apply escalator mechanism to web3 transactions?