org.arkecosystem.client.api.Blocks 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 Blocks {
private Client client;
public Blocks(Client client) {
this.client = client;
}
public LinkedTreeMap all() throws IOException {
return this.client.get("blocks");
}
public LinkedTreeMap first() throws IOException {
return this.client.get("blocks/first");
}
public LinkedTreeMap last() throws IOException {
return this.client.get("blocks/last");
}
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