How to apply EthFilter to specific address?

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

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


Pass specific address in Web3J send method

Updated January 05, 2019 11:28 AM



Error while retrieving transaction count

Updated January 16, 2019 01:28 AM