I'm looking to estimate transaction fees in an application. In order to do so I need to estimate the current gas price before I execute the transaction.
I see web3.js has a getGasPrice
method:
https://web3js.readthedocs.io/en/v1.3.4/web3-eth.html#getgasprice
Is there a similar method in ethers.js? Or what is the recommended approach here?