I am finding the way to detect the specified transaction. For example, I want to detect if someone calls a method in my smart contract by making a transaction then, I want to make the transaction failed. So I'm looking for the API which can be monitoring the transactions or can be subscribing to the events. For instance, monitoring or tracking some special event. Do anyone know the great API? I am not an expert so Please let me know someone has an idea. Thanks.

1 Answer 1


If your contract grants the right to someone to call a function, there is no way for you to stop him from doing this (when the transaction is already sent). Of course you can implement safety measures in the form of conditions that are checked when the function is called.

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.