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