Skip to content

innopreneur/transfer-tokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Token Transfer Script

Transfers ERC-20 tokens serially to given addresses in a given csv file.

Requirements

Setup

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 to abi/ folder.
  • Repalce csv file with addresses in given sample addresses.csv with your desired address and amount details in same format.

Running

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

About

Serially transfer ERC-20 tokens to multiple receipents

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published