This is a demo repo for the Medium article Estimate Transaction Gas with Ethers.js and EIP-1559.
Relevant code is in /src/app.js. This repo is MIT licensed, use at your own risk.
- Download the repo to a local folder
- Run
npm installwithin the repo to install node.js dependencies (ethers.js and Fetch)
Run from NPM:
npm run start
Or execute the script directly:
node src/app.js