Create .env
with ALCHEMY_API_KEY (you can get that at alchemy) and DISCORD_WEBHOOK_URL (discord webhook uri to post the nft mint notification to).
Your .env
should look like this:
ALCHEMY_API_KEY=""
DISCORD_WEBHOOK_URL=""
Update contractAddress
in config.js
with contract address of nft whose mints you want to track.
Update mintTopic
in config.js
with mint topic of nft contract, you can find it in transaction logs on etherscan (it is Topic 0).
Install modules with npm:
npm install
or yarn:
yarn install
Run the project:
node index.js