Search in sources :

Example 1 with Web3jService

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);
}
Also used : Web3jService(org.fisco.bcos.web3j.protocol.Web3jService) ChannelEthereumService(org.fisco.bcos.web3j.protocol.channel.ChannelEthereumService) JsonRpc2_0Web3j(org.fisco.bcos.web3j.protocol.core.JsonRpc2_0Web3j)

Aggregations

Web3jService (org.fisco.bcos.web3j.protocol.Web3jService)1 ChannelEthereumService (org.fisco.bcos.web3j.protocol.channel.ChannelEthereumService)1 JsonRpc2_0Web3j (org.fisco.bcos.web3j.protocol.core.JsonRpc2_0Web3j)1