ethers.js library, how can I determine the gas limit when sending a transaction to a contract or deploying a new contract?
From the official documentation, see the deployment section from
contracts module. The section provides an example of deploying a contract on
ropsten. From the contract deployment hash, you can get the idea of different
0.00181826 Ether ($0.000000)
Gas Used by Transaction:
0.000000005 Ether (5 Gwei)
hope it will help.