0

My question. Let's say I have a contract like contract PowerManager { function unlock() { ... } }

I want to respond to the unlock() function by unlocking an IoT device. Is it possible to detect this in the mempool as soon as it appears?

1 Answer 1

1

Sounds like something you could do with Ethereum Events.

Good overview can be found here: https://media.consensys.net/technical-introduction-to-events-and-logs-in-ethereum-a074d65dd61e

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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