All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.arkecosystem.client.api.two.Delegates Maven / Gradle / Ivy

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