Giter VIP home page Giter VIP logo

iota.lib.java's Introduction

##Introduction

The JOTA library is a simple Java wrapper around [IOTA] Node's JSON-REST HTTP interface.

It allows to connect easily using java directly to a local or a remote [IOTA node].

  • Latest release: 1.0.0 Release
  • Compatibility: in development to be fully compatible with IOTA IRI v1.1.0
  • API coverage: 14 of 14 commands fully implemented
  • License: Apache License 2.0
  • Readme updated: 2016-11-12 21:05:02 (UTC)

A list of all IOTA JSON-REST API commands currently supported by jota wrapper can be found in the Commands enum (see here for more details).

JOTA java wrapper is being designed to be thread-safe and simplest as possible in order to be easily mantainable, accordingly with the ongoing natural evolution of IOTA'api. All the boilerplate code for connecting to the node rest interface has been eliminated using Retrofit.

##Technologies & dependencies

The JOTA library has been designed to be used with Java6+, in order to promote compatibility with Android.

Core dependencies:

Other dependencies:

  • Simple Logging Facade for Java 1.7.21 [link]
  • Apache Commons Lang 3.3.2 [link]

##Getting started

Connect to your local node with the default settings is quite straightforward: it requires only 2 lines of code. For example, in order to fetch the Node Info:

IotaApiProxy api = new IotaApiProxy.Builder.build();
GetNodeInfoResponse response = api.getNodeInfo();

of if you need to connect to a remote node on https:

IotaApiProxy api = new IotaApiProxy.Builder 
	.protocol("https")
	.nodeAddress("somewhere_over_the_rainbow")
	.port(54321) 
	.build();

GetNodeInfoResponse response = api.getNodeInfo();

Jota is still not in the central maven repository. It will be available when it will cover 100% iota's rest interface.

In order to communicate with IOTA node, JOTA needs to be aware of your node's exact configuration. The easiest way of providing this information is via a node_config.properties file, for example:

iota.node.protocol=http
iota.node.host=127.0.0.1
iota.node.port=14265

That's it!

##Examples

There's an extensive list of test coverages on the src/test/java package of the project that can be used as reference.

##Supporting the project

If JOTA has been useful to you and you feel like contributing, consider posting a bug report or a pull request. Alternatively, donations are very welcome too!

  • Bitcoin: 3FGCHqhG1SUpgn2eS1Agq2KnxJemWnQFbB

iota.lib.java's People

Contributors

davassi avatar pinpong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.