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

Mark Lewis

You can add a chaincode / contract listener instead of a block listener and receive only the chaincode events. Use addContractListener() method on your Contract object:

If using Fabric v2.4 (or later) the Fabric Gateway client API provides an equivalent getChaincodeEvents() method on the Network object:

Join to automatically receive all group messages.