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

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

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

Updated February 24, 2018 18:28 PM

Updated February 23, 2018 22:28 PM

Updated March 01, 2018 12:28 PM

Updated July 07, 2018 16:28 PM