
org.arkecosystem.client.Connection 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;
import org.arkecosystem.client.api.AbstractAPI;
import org.arkecosystem.client.api.one.One;
import org.arkecosystem.client.api.two.Two;
import org.arkecosystem.client.http.Client;
import java.util.Map;
public class Connection {
private Client client;
private int version;
private T api;
public Connection(Map config) {
this.version = ((int) (config.get("version")));
this.client = new Client(config.get("host").toString(), (int) config.get("version"));
this.api = (T) ((this.version == 1) ? new One(this.client) : new Two(this.client));
}
public T api() {
return this.api;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy