Wallet Token Notifier is a Node.js script that monitors specified Ethereum addresses for incoming token transactions and sends notifications to Discord using Discord.js. It utilizes Etherscan API to track transactions and save the block number of the last transaction received, enabling it to detect new transactions in subsequent calls.
-
Clone the repository:
git clone https://github.com/falconandrea/wallet-token-notifier.git
-
Install dependencies:
npm install
-
Create a
.env
file based on the provided.env.example
:ETHERSCAN_APIKEY="YourEtherscanApiKey" ETH_WALLETS="0x0001,0x00002" DISCORD_CLIENT_TOKEN="YourDiscordBotToken" DISCORD_CHANNEL_ID="YourDiscordChannelID"
- Start the script:
npm start
- Discord Notifications: Sends instant notifications to Discord when new token transactions are detected.
- Etherscan Integration: Utilizes Etherscan API to retrieve transaction information.
- Block Number Tracking: Saves the block number of the last transaction received to detect new transactions in subsequent calls.
- Support for Other Networks: Add support for additional networks such as Base, Polygon, Blast and others.
Contributions are welcome! Please fork the repository and submit a pull request.