This repository contains a script that listens for a PairCreated
event on a Uniswap V2 factory contract and logs the address of the new token pair to a CSV file.
Note: Only pairs with WETH will be logged.
- Clone the repository to your local machine.
- Install the required dependencies by running
npm install
.
- Copy
.env.example
to.env
- Add your Alchemy API key to
ALCHEMY_PROVIDER_KEY
in .env - Run the script by running
node index.js
. - Go to data.csv to see newly created WETH pairs in Uniswap V2.