Search in sources :

Example 1 with FltrTx

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));
}
Also used : FltrTx(org.aion.api.server.types.FltrTx)

Aggregations

FltrTx (org.aion.api.server.types.FltrTx)1