Within a Solidity function, is the transaction hash available as a global variable from within the contract? I would have thought it would be something like tx.hash
in the same way you can do tx.origin
etc.
My thinking is that the transaction hash will not be available until the contract has been mined. Is this correct?
Best Answer
Here you have all the global variables in Solidity:
As you say, as the transaction is not mined you can't find here the
tx.hash
.