English | 中文
This is a Node.js script that monitors an ERC20 token balance of a given Ethereum address, and automatically transfers the deposited tokens to a destination address as soon as they arrive.
- Clone this repository and navigate to the project directory.
- Install dependencies by running
npm install
. - Fill in the required values in the script (e.g.,
alchemyApiKey
,monitoredAddress
,destinationAddress
,erc20Address
,privateKey
) as instructed in the comments. - Start the script by running
node index.js
.
- Node.js version 12.0 or higher
- An Alchemy API key with access to the Arbitrum Mainnet
- ethers v5.7.2
- alchemy-sdk v2.6.1
You can use this script to automatically transfer tokens from one Ethereum address to another whenever a deposit is made to the first address. This can be useful for automatically sending tokens to an exchange or another wallet without having to manually initiate the transfer.
Please note that this script is provided as-is and is intended for educational purposes only. Use at your own risk.
This project is licensed under the MIT License - see the LICENSE file for details.