I want to call a function of the contract, something like this -
module.exports.transfer = function(to,value,){
return token.methods.transfer.getData(to, value);
}
But I am facing the error
token.methods.transfer.getData is not a function
How do i resolve it , is getData() deprecated or their is any other way to get the data of function with desired arguments ?
web3 version - 1.0 beta
Thanks