@@ -0,0 +1,1290 @@
+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 GetAccountAssets extends RPCCall %7B%0A    %0A    public static RPCCall instance = new GetAccountAssets(%22getAccountAssets%22);%0A    static int COUNT = 10;%0A%0A    public GetAccountAssets(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 firstIndex = ParameterParser.getFirstIndex(arguments);%0A        int lastIndex = ParameterParser.getLastIndex(arguments);%0A        %0A        JSONArray response = new JSONArray();%0A        try (%0A            DbIterator%3CAccount.AccountAsset%3E iterator = account.getAssets(firstIndex, lastIndex);%0A        ) %7B  %0A            while (iterator.hasNext()) %7B%0A                response.add(JSONData.accountAsset(iterator.next(), false, true));%0A            %7D%0A        %7D        %0A        %0A        return response;%0A    %7D  %0A%0A%7D%0A

Add websocket API GetAccountAssets