Contract.methods.transfer is a not a function error using web3

by dshukertjr   Last Updated January 11, 2019 08:28 AM - source

Running something simple as this:

Contract = new web3.eth.Contract(this.contractABI, this.contractAddress)
Contract.methods.transfer(toAccount.address, transfferAmount).encodeABI()

Gives me following error:

ERROR TypeError: _this.tokenContract.methods.transfer is not a function

What could I be doing wrong? I have showed the Contract variable on the console, and it in fact does not have "transfer" in its methods property.



Related Questions


How to list all recipts in a block using web3js?

Updated February 24, 2018 18:28 PM


web3.eth.getBalance returns me the strange values ?

Updated March 01, 2018 12:28 PM