The web3.js (1.0) docs helpfully list the return values from a contract event subscription. I've noticed that there is an additional return value id that isn't listed there but is returned with the rest of the log data. An example of one is log_6b4f6cdd.

I'm looking for something that can help me uniquely identify a particular event even within a single tx or block. Is the id unique at least within a given contract?


You can uniquely identify a particular event with the transactionHash combined with the logIndex.

I'm not sure what the id value is you're getting. Using a geth node, I don't get it.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.