org.arkecosystem.client.api.Delegates Maven / Gradle / Ivy
package org.arkecosystem.client.api;
import com.google.gson.internal.LinkedTreeMap;
import java.io.IOException;
import java.util.Map;
import org.arkecosystem.client.http.Client;
public class Delegates {
private 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");
}
public LinkedTreeMap search(Map parameters) throws IOException {
return this.client.post("delegates/search", parameters);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy