Re: Fabric-sdk-jAVA-Blockevents #fabric-sdk-java #fabric


Tsvetan Georgiev
 

Hello,

You can use the HLF Java SDK channel to register a chaincode event listener.

So you can do something like:
network.getChannel().registerChaincodeEventListener( <your params here>) ;
You can find an example in the end to end integration test of the SDK:


When your listener is called you can get the payload of the event. See the method public byte[] getPayload() of ChaincodeEvent class.

Best Regards,

Senofi

Tsvetan Georgiev
Director, Senofi Inc.

438-494-7854 | tsvetan@...

www.senofi.ca

www.consortia.io






---- On Tue, 12 Apr 2022 01:27:50 -0400 <jeff.jo95z@...> wrote ----

hi,

Is it possible to return the recorded blockevents in java sdk?
I have attached a my java file.
What modification do I have to do to return the blockevents in a readable format





Join fabric@lists.hyperledger.org to automatically receive all group messages.