use JSON-RPC for addAccount

This commit is contained in:
adbenitez 2025-02-19 16:33:31 +01:00
parent ab05222c32
commit c1a49332d0
6 changed files with 22 additions and 12 deletions

View file

@ -125,6 +125,10 @@ public class Rpc {
return getResult("get_account_file_size", accountId).getAsInt();
}
public int addAccount() throws RpcException {
return getResult("add_account").getAsInt();
}
private static class Request {
private final String jsonrpc = "2.0";
public final String method;