Search in sources :

Example 1 with LogFilter

use of org.bcos.web3j.protocol.core.filters.LogFilter in project web3sdk by FISCO-BCOS.

the class JsonRpc2_0Rx method ethLogObservable.

public Observable<Log> ethLogObservable(org.bcos.web3j.protocol.core.methods.request.EthFilter ethFilter, long pollingInterval) {
    return Observable.create((Subscriber<? super Log> subscriber) -> {
        LogFilter logFilter = new LogFilter(web3j, subscriber::onNext, ethFilter);
        run(logFilter, subscriber, pollingInterval);
    });
}
Also used : Subscriber(rx.Subscriber) Log(org.bcos.web3j.protocol.core.methods.response.Log) LogFilter(org.bcos.web3j.protocol.core.filters.LogFilter)

Aggregations

LogFilter (org.bcos.web3j.protocol.core.filters.LogFilter)1 Log (org.bcos.web3j.protocol.core.methods.response.Log)1 Subscriber (rx.Subscriber)1