I use geth. When I submit a tx to a smart contract, the tx hash appears on the same screen with info about my node, like what block it’s on, etc. however, is there a way to receive the tx hash as output from calling the contract directly and easily?
1 Answer
It sounds like you're asking if there is a way to receive the transaction hash from inside a smart contract. If that's what you're asking, then the answer is currently no. There was recently an EIP related to adding this to the EVM as an opcode https://github.com/ethereum/EIPs/issues/901
-
Thanks. I think that answers my question. So the only way to keep track of the tx hash is to look at the pending transactions before and after you submit? Commented Feb 24, 2018 at 21:23
MyContract.MyMethod.sendTransaction(MyParams)