I am using ethereumjs-accounts providerfor transaction signer in HookedWeb3Provider. And I am trying to call contract function which send tokens. It's my params for sign transaction.
let tx_params = {
nonce: '00',
gasPrice: '100',
gasLimit: '100',
from: account,
to: contractParams.address,
value: '00',
data: '' //what should I place here to call contract function with arguments?
};
then I am calling sign method:
signTransaction(tx_params, (err, hash)=>{})
and receiving hash
0xf86280820100832fefd894efcc9f9a5cb3d6062c18eeffdf90a29bb771fccc80801ba07c0226eb53fc4c8031a5346389fb17125b37ca96bec2ce5dd651808c8356ea9aa0aef5cb9e2a0426a6af2193a0fd9d3ec09f334614594faa54be17d9ddd64b72b1
A didn't understand how to send transaction with web3js and put there a signed transaction (or hash?)
this.web3.eth.sendRawTransaction();
data
. Otherwise for thedata
value you have to use the ABI, compute the Method ID and encode the arguments.contractInstance.sendFunds.getData('0x7a16108bc3c2751a5a54ca077d4d01aa43ee5c34', '0xdd7b798cbfe06af77fdc4b64e48f71672595adcf', 1, 'hello');
web3.eth.sendRawTransaction
?