@@ -0,0 +1,1362 @@
+package nxt.http.rpc;%0A%0Aimport nxt.Account;%0Aimport nxt.MofoQueries;%0Aimport nxt.Transaction;%0Aimport nxt.db.DbIterator;%0Aimport nxt.http.ParameterException;%0Aimport nxt.http.websocket.JSONData;%0Aimport nxt.http.websocket.RPCCall;%0A%0Aimport org.json.simple.JSONArray;%0Aimport org.json.simple.JSONObject;%0Aimport org.json.simple.JSONStreamAware;%0A%0Apublic class GetAccountComments extends RPCCall %7B%0A    %0A    public static RPCCall instance = new GetAccountComments(%22getAccountComments%22);%0A    static int COUNT = 10;%0A%0A    public GetAccountComments(String identifier) %7B%0A        super(identifier);%0A    %7D%0A  %0A    @SuppressWarnings(%22unchecked%22)%0A    @Override%0A    public JSONStreamAware call(JSONObject arguments) throws ParameterException %7B%0A        Account account = ParameterParser.getAccount(arguments);%0A        int timestamp = ParameterParser.getTimestamp(arguments);%0A        %0A        JSONArray transactions = new JSONArray();%0A        try (%0A            DbIterator%3C? extends Transaction%3E iterator = MofoQueries.getAccountComments(account.getId(), timestamp, COUNT);%0A        ) %7B          %0A            while (iterator.hasNext()) %7B%0A                transactions.add(JSONData.transaction(iterator.next(), false));%0A            %7D%0A        %7D        %0A        %0A        JSONObject response = new JSONObject();%0A        response.put(%22comments%22, transactions);%0A        return response;%0A    %7D  %0A%0A%7D%0A

Add websocket API GetAccountComments