
org.arkecosystem.client.api.one.Transactions 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.one;
import com.google.gson.internal.LinkedTreeMap;
import org.arkecosystem.client.http.Client;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
public class Transactions {
Client client;
public Transactions(Client client) {
this.client = client;
}
public LinkedTreeMap all(Map query) throws IOException {
return this.client.get("transactions", query);
}
public LinkedTreeMap all() throws IOException {
return this.all(new HashMap());
}
public LinkedTreeMap show(String id) throws IOException {
HashMap map = new HashMap<>();
map.put("id", id);
return this.client.get("transactions/get", map);
}
public LinkedTreeMap allUnconfirmed(Map query) throws IOException {
return this.client.get("transactions/unconfirmed", query);
}
public LinkedTreeMap allUnconfirmed() throws IOException {
return this.allUnconfirmed(new HashMap());
}
public LinkedTreeMap showUnconfirmed(String id) throws IOException {
HashMap map = new HashMap<>();
map.put("id", id);
return this.client.get("transactions/unconfirmed/get", map);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy