A Java implementation of the Sia API - https://sia.tech
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
src/main/java/com/javajared/siawrapper
.gitignore
README.md
pom.xml

README.md

Sia-Java

A Java implementation of the Sia API - https://sia.tech

Usage

//Instantiate a Sia Object

//Do so by either specifying a port number on localhost or connecting to port 9980 by default:
SiaObject so = new SiaObject(4450); //Connects to the Sia daemon at http://localhost:4450
SiaObject so = new SiaObject(); //Connects to the Sia daemon at http://localhost:9980

//A SiaObject can also point to another url and port number. If for example, an open port on the internet
// were to be used:
SiaObject so = new SiaObject("http://somewebsite.com:9980");

--------------------------------------------------------------------------------------------------

//All the daemon functions can be accessed by running the proper SiaObject method. And remember,
// all of the methods return a JSONArray with results that must be parsed. For example:
JSONArray result = so.daemonConstants();

//Reference the  Java Docs to learn about the proper method names.

Donations

  • Sia: 65cc98a40059f22ef096f60278b36c13f5381e36d31d37cd260812073a91e0d38e1c8c63f869
  • BTC: 1Ci91XpoEAXmduU2kwDzVS2dqgFw45dbSv