I've looked through the documentation, but there doesn't seem to be this scenario listed. What I want to do is filter the Ethereum event log of a specific contract by an indexed field with Web3j.
Example solidity code: event someEvent(bytes32 indexed id, bytes value);
While we can get all the events within a specific time period using EthFilter filter = new EthFilter(startBlock, endBlock, contractAddress);
, and filter for a specific event type by using the Event
class, how do I get all events of a specific type that match an indexed field (for example, where id == {0, 0, 0 ... 0}
)?