use of org.fisco.bcos.web3j.protocol.Web3jService in project web3sdk by FISCO-BCOS.
the class Contract method registerEventLogPushFilter.
public void registerEventLogPushFilter(TransactionDecoder decoder, EventLogUserParams params, EventLogPushWithDecodeCallback callback) {
Web3jService service = ((JsonRpc2_0Web3j) web3j).web3jService();
ChannelEthereumService channelEthereumService = (ChannelEthereumService) service;
// set timeout
// filter.setTimeout(channelEthereumService.getTimeout());
callback.setDecoder(decoder);
channelEthereumService.getChannelService().registerEventLogFilter(params, callback);
}
Aggregations