
org.arkecosystem.client.api.two.Delegates 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.two;
import com.google.gson.internal.LinkedTreeMap;
import org.arkecosystem.client.http.Client;
import java.io.IOException;
public class Delegates {
Client client;
public Delegates(Client client) {
this.client = client;
}
public LinkedTreeMap all() throws IOException {
return this.client.get("delegates");
}
public LinkedTreeMap show(String id) throws IOException {
return this.client.get("delegates/" + id);
}
public LinkedTreeMap blocks(String id) throws IOException {
return this.client.get("delegates/" + id + "/blocks");
}
public LinkedTreeMap voters(String id) throws IOException {
return this.client.get("delegates/" + id + "/voters");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy