everyone! I have faced with one problem. I can find the transaction hash once transaction is created. Because I am watching the blocks with newBlockHeader event. At the moment, I want to check and update the confirmation number of this transaction. I tried with this


But it returns NaN. How can I do?

  • 2
    What do each of those commands return when run individually? – Richard Horrocks Feb 12 '18 at 16:13
  • web3.eth.blockNumber: undefined web3.eth.getTransaction(<txhash>).blockNumber : undefined Both of 2 values are all undefined. And eth.syncing returns false in geth console – H.Ming Feb 12 '18 at 16:26

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.