[Ethereum] How to access contract events through RPC

contract-developmenteventsjson-rpc

I'm trying to figure out how to log events happening in a contract at a private Ethereum network. It looks like Events are the way to go. However, I can't seem to find any good example of how to interface with contract's Events through JSON RPC.

How can I use contracts Events through JSON RPC?

Best Answer

I agree with Mikko Ohtamaa. Do it through an API that wraps the JSON-RPC calls for you. However, to answer your question, I believe "eth_getTransactionReceipt" is the RPC call your looking for. It delivers an Array "logs" which should contain the fired events.