I send a transaction i.e

            to: toAddress,
            from: fromAddress,
            value: web3.toWei(amount, 'ether'),
            data : inputData,

But when I am trying to get transaction data from local RPC(Ganache) i.e

            if (error) {

            }else {

Return all fields perfectly except "input".i.e

  • Are you sure inputDaTa is not empty? Is it formatted as hexadecimal? – Ismael Apr 21 '18 at 22:20
  • Hi @ Ismael, thanks for time. Yes i passed a string to "data" field of "sendTransaction()" method of web3.js. – Davinder Singh Apr 23 '18 at 11:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.