4

I have a contract deployed on the testnet, I can do the following within geth: reference.transfer.sendTransaction(bob, 467, {from:me})

However I can't do this within my node console (with web3 etc. all loaded), as I receive the following error:

reference.transfer.sendTransaction(bob, 246, {from: me, gas:200000}) 
Error: Transaction not confirmed
at Object.module.exports.InvalidResponse (/Users/jbowkett/node_modules/web3/lib/web3/errors.js:35:16)
at RequestManager.send (/Users/jbowkett/node_modules/web3/lib/web3/requestmanager.js:61:22)
at Eth.send [as sendTransaction] (/Users/jbowkett/node_modules/web3/lib/web3/method.js:145:58)
at SolidityFunction.sendTransaction (/Users/jbowkett/node_modules/web3/lib/web3/function.js:133:26)
at repl:1:20
at REPLServer.defaultEval (repl.js:252:27)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:417:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)

Also, my events on transfer fire in geth, but I can't see if they will fire within my node app, because of the above error.

I need the node app to receive events because I want to make external calls to other node apis.

  • Which version of geth were you using? – Fabian Vogelsteller Mar 21 '16 at 17:57
  • 1
    Is this issue to do with the unlocking of your account necessary to spend some gas for the transaction? – Bokky WeAreAllAssange PooBah Apr 2 '16 at 1:43
  • Hi @James B. Did you ever get this resolved? Can you provide answers to the user's questions above so that we can get this answered for you. Thanks. – tayvano Jun 7 '16 at 20:49

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.