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

org.arkecosystem.client.api.two.Blocks 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;
import java.util.Map;

public class Blocks {
    Client client;

    public Blocks(Client client) {
        this.client = client;
    }

    public LinkedTreeMap all() throws IOException {
        return this.client.get("blocks");
    }

    public LinkedTreeMap show(String id) throws IOException {
        return this.client.get("blocks/" + id);
    }

    public LinkedTreeMap transactions(String id) throws IOException {
        return this.client.get("blocks/" + id + "/transactions");
    }

    public LinkedTreeMap search(Map parameters) throws IOException {
        return this.client.post("blocks/search", parameters);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy