How to apply EthFilter to specific address?

by krupal.agile   Last Updated January 11, 2019 09:28 AM

In web3.js, we can apply event filter something like below:

 this.event = this.Contract.events.MyEvent({
     filter: { address: "0xAccountAddress" },
 })

In Web3J, it is translated to

EthFilter eventFilter = new EthFilter(
    DefaultBlockParameterName.LATEST,
    DefaultBlockParameterName.LATEST,
    mContract.getContractAddress()
);
eventFilter.addSingleTopic(EventEncoder.encode(Contract.MY_EVENT));

But, how to pass specific address in the event like filter in above web3.js example?



Related Questions


Updated January 05, 2019 11:28 AM

Updated April 08, 2018 11:28 AM

Updated September 26, 2018 15:28 PM

Updated January 16, 2019 01:28 AM