Fabric-sdk-jAVA-Blockevents #fabric-sdk-java #fabric
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
toggle quoted messageShow quoted text
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.
---- On Tue, 12 Apr 2022 01:27:50 -0400 <jeff.jo95z@...> wrote ----