use of org.aion.api.server.types.Evt in project aion by aionnetwork.
the class ApiWeb3Aion method buildFilterResponse.
private JSONArray buildFilterResponse(Fltr filter) {
Object[] events = filter.poll();
JSONArray response = new JSONArray();
for (Object event : events) {
if (event instanceof Evt) {
// put the Object we get out of the Evt object in here
response.put(((Evt) event).toJSON());
}
}
return response;
}
Aggregations