use of org.aion.api.server.types.FltrBlk in project aion by aionnetwork.
the class ApiWeb3Aion method eth_newBlockFilter.
public RpcMsg eth_newBlockFilter() {
if (!isFilterEnabled) {
return new RpcMsg(null, RpcError.NOT_ALLOWED, "Filters over rpc disabled.");
}
long id = fltrIndex.getAndIncrement();
installedFilters.put(id, new FltrBlk());
return new RpcMsg(StringUtils.toJsonHex(id));
}
Aggregations