
org.arkecosystem.client.api.one.Accounts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arkecosystem-client Show documentation
Show all versions of arkecosystem-client Show documentation
A simple Java API client for the ARK Blockchain.
The newest version!
package org.arkecosystem.client.api.one;
import com.google.gson.internal.LinkedTreeMap;
import org.arkecosystem.client.http.Client;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
public class Accounts {
Client client;
public Accounts(Client client) {
this.client = client;
}
public LinkedTreeMap all(Map query) throws IOException {
return this.client.get("accounts/getAllAccounts", query);
}
public LinkedTreeMap all() throws IOException {
return this.all(new HashMap());
}
public LinkedTreeMap show(String address) throws IOException {
HashMap map = new HashMap<>();
map.put("address", address);
return this.client.get("accounts", map);
}
public LinkedTreeMap count() throws IOException {
return this.client.get("accounts/count");
}
public LinkedTreeMap delegates(String address) throws IOException {
HashMap map = new HashMap<>();
map.put("address", address);
return this.client.get("accounts/delegates", map);
}
public LinkedTreeMap fee() throws IOException {
return this.client.get("accounts/delegates/fee");
}
public LinkedTreeMap balance(String address) throws IOException {
HashMap map = new HashMap<>();
map.put("address", address);
return this.client.get("accounts/getBalance", map);
}
public LinkedTreeMap publicKey(String address) throws IOException {
HashMap map = new HashMap<>();
map.put("address", address);
return this.client.get("accounts/getPublicKey", map);
}
public LinkedTreeMap top(Map query) throws IOException {
return this.client.get("accounts/top", query);
}
public LinkedTreeMap top() throws IOException {
return top(new HashMap());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy