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
web3.eth.blockNumber-web3.eth.getTransaction(<txhash>).blockNumber
.
But it returns NaN
.
How can I do?
undefined
. Andeth.syncing
returnsfalse
in geth console