Transfers ERC-20 tokens serially to given addresses in a given csv file.
git clone https://github.com/innoprenuer/transfer-tokens.git
cd transfer-tokens
npm install
- Fill
.env
from.env.example
with the token contract address, wallets and amount, infura node details and exported private key.
NODE_ENV=development
INFURA_URL=https://rinkeby.infura.io/your-url
INFURA_WS_URL=wss://rinkeby.infura.io/ws
ETH_BLOCK_TIME=30
TOKEN_CONTRACT_ADDRESS=
PRIVATE_KEY=
WALLET_FROM=
- Copy your ERC-20 token contract's abi wih name
abi.json
toabi/
folder. - Repalce csv file with addresses in given sample
addresses.csv
with your desired address and amount details in same format.
Simply start the service and make a transfer from one wallet to another on Rinkeby testnet(for other networks update relevant details in .env
file).
npm start