Consume Solidity-Event/Required-Output with Message Event Grid

Adrian Hofer 1 Reputation point
2021-05-17T16:40:23.147+00:00

Is there a possibility to see the output of

required(a>b, "B is not the answer.")  

or

event ARejected(string reason)  

function B() public {  
    emit ARejected("B is not the answer.")  
}  

in an Event Grid Topic (like delivered with Azure Blockchain Workbench) subscription?

I am using the Messaging API to interact with the blockchain and would like to get notified if a contract creation or a contract action fails.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,002 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SanaCMSFT-8922 301 Reputation points
    2021-06-08T14:16:18.697+00:00

    Hi @Adrian Hofer

    You can take a look at these messaging integration samples for your scenario. In particular, out of these, "Execute logic based on contract state doc" and "Execute logic based on events doc" seem to be what you might be looking for.
    Let us know if it helps.

    Thanks,
    Sana