In JavaScript (web3.js), how do I get the transaction-hash corresponding to a function executed in my smart contract?
Asked
Active
Viewed 849 times
4
-
See http://ethereum.stackexchange.com/questions/3285/how-to-get-return-values-when-function-with-argument-is-called . – BokkyPooBah Sep 25 '16 at 22:08
1 Answers
3
When you send a transaction to a contract function, you get back the transaction hash:
var txHash = myContract.myFunction(param1, { from: you });
If there is a transaction that you need to find, look into your sender address at etherscan.io.
Xavier Leprêtre B9lab
- 7,366
- 17
- 32