
org.arkecosystem.client.api.two.Peers 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;
public class Peers {
Client client;
public Peers(Client client) {
this.client = client;
}
public LinkedTreeMap all() throws IOException {
return this.client.get("peers");
}
public LinkedTreeMap show(String ip) throws IOException {
return this.client.get("peers/" + ip);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy