How to send an ERC20 token with web3js

Take EOS token transfering as the example. Below code need web3 and ethereumjs-tx. If you’ve not install them, install them with npm install web3 ethereumjs-tx var Tx = require(‘ethereumjs-tx’); var Web3 = require(‘web3’) var web3 = new Web3(new Web3.providers.HttpProvider(‘http://127.0.0.1:8545/’)) // set token source, destination and amount var myAddress = “0xaa597b7e8aaffe9f2a187bedb472ef3455957560” var toAddress = “0xa013927bffe9e879134061b9330a01884a65497c” var … Read more