npm install @types/node ts-node tslib typescript --save-devnpm install @flashbots/ethers-provider-bundle
npm install ethers@^5.5.2env $(cat .env) npx ts-node src/index.tsDeployed contract (GOERLI): 0x04b10028affBB22Ae6d98efFFfAb2FEF18e65958
If the simulation returns the following error
simulation error: err: max fee per gas less than block base feeYou need to increase the maxFeePerGas in you tx. You submitted it with less than the baseFee, so nodes will reject it to mitigate DoS attacks.
If you use provider.getFeeData, you will get recommended fee suggestions.