Ethers.js: How to send EIP-1559 transactions
Ethers is pretty cool and is able to send a eip-1559 transaction automatically without a need to do any extra configuration. It will use a maxPriorityFeePerGas of 1.5 Gwei by default, starting with v5.6.0. Also, if you use a signer class that would know also how to manage the nonce for you (of course that if you want to always get the mined transactions count). Here’s a simple script that would send such a transaction: