4

In JavaScript (web3.js), how do I get the transaction-hash corresponding to a function executed in my smart contract?

Paul
  • 43
  • 3
  • 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 Answers1

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.