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