We deploy our contracts with truffle migrate
.
We need the blockNumber of the contract deployment transaction in the webapp.
We could use web3.eth.getTransaction(txhash).blockNumber()
but can't get txhash in the app because JSON files generated by truffle doesn't contain it.
How can I retrieve contract deployment blockNumber on front end app?
web3.eth.getTransaction(txhahs).blockNumber()