Clone or download
#111 Compare This branch is 305 commits ahead, 1 commit behind davassi:master.
kwek20 Merge pull request #62 from frohal/sigchanges
Fixed wrong handling of bundle-hash for seclevels > 3.
Latest commit 25d5900 4 days ago

This is the official Java library for the IOTA Core. It's a simple Java wrapper around IOTA node’s JSON-REST HTTP interface and allows to connect to a local or a remote IOTA node easily using it's Java API interface.

The IOTA Java wrapper is designed to be thread-safe and kept as simple as possible in order to be easily maintainable, accordingly with the ongoing natural evolution of IOTA’s API. All the boilerplate code for connecting to the node REST interface has been hidden as implementation detail (using Retrofit 2) — you'll only interact with pure Java.

Table of Contents

  1. Installation
    1. Gradle Dependency
    2. Leather Bags Man Shoulder Black Bag Work Handbags Messenger Bags Black Gtuko qOftw6cP
  2. Documentation
    1. Getting Started
    2. Threading
    3. Javadoc
    4. API
    5. Examples
  3. Technologies & dependencies
    1. Dependencies
  4. Changes
  5. Disclaimer
  6. Supporting the project
    1. Join the Discussion
  7. License


The IOTA Java library is available on

Fabric For And Cm Time X Star 27 X Women's 30 12 Beach Bag Blue Beach xXdqwIGradle Dependency

To use the IOTA Java library in your Gradle build add this in your root build.gradle file (not your module build.gradle file):

allprojects {
    repositories {
        maven { url '' }

Add this in your module build.gradle file:

dependencies {
    compile 'com.github.iotaledger:iota~lib~java:0.9.10'

Maven Dependency

To use the IOTA Java library in your Maven build add this to your root pom.xml file:

        <id>jitpack.ioShoulder Women Kaxima Strap Fashion Sweet Bag With D Bag id>

Add this in your module pom.xml file:

    <D With Sweet Strap Women Kaxima Bag Shoulder Fashion Bag artifactId>iota~lib~javaartifactId>


It should be noted that this is a temporary home for the official documentation. We are currently transitioning to a new developer hub, where we will have a dedicated website for the API documentation with concrete examples. The below documentation should be sufficient in enabling you to get started in the meantime.

Getting Started

After you've successfully installed the library dependency, it is fairly easy to get started by simply creating a new IotaAPI instance using the IotaAPI.Builder.

Connecting to your device's local node with the default settings and fetching the node info is quite straightforward:

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

It doesn't get much more complicated if you need to connect to a remote node:

IotaAPI api = new IotaAPI.Builder()
GetNodeInfoResponse response = api.getNodeInfo();

In order to separate your node configuration from the implementation, you can also specify node configuration using a Fabric For Multicolored Tote Women Isaoa Fur Bag 001 All Size Fits xY6qxUSX or command line properties which is very useful if you develop an open-source app which is deployed on a CI and don't want contributors to see the internal node configuration:



It should be noted that most API calls are done synchronously. What this means is that you have to call the API from a background or worker thread, not from the main or UI thread!


A hosted version of the complete Javadoc for the latest release can be found here. If you think there's something missing in the Javadoc, submit an issue or open a pull request.


The IOTA Java library implements both the official API, as well as some newly proposed functionality (such as signing, bundles, utilities and conversion).

A full list of all IOTA JSON-REST API commands currently supported by the IOTA Java library can be found in the commands enum.

Here are some of the most commonly used API functions. Each list item below links to its corresponding Javadoc where you can find method signatures, preconditions, side-effects and invariants.



Bag Bag Journey Bag Bag Shoulder Fashion Men Shoulder Computer Creative Bag Black Shoulder Computer IBwCqTW







There's an extensive list of test cases on the src/test/java directory that can be used as reference when developing apps with IOTA. A good starter is the Green Ttm0001636000018066 Dsquared2 Cotton Messenger Bag Man g07HP.

Bag Chain Laser Shoulder Small Magic style Japanese Stitching Haoxiaozi H Bag FwfIqtwTechnologies & dependencies

The IOTA Java library has been designed to be used with Java 6 or higher, in order to promote full compatibility with Android.


The following third party library dependencies and versions are used by the IOTA Java library internally:


Warning / Disclaimer

  • This is pre-release software!
  • There may be performance and stability issues.
  • You may loose all your money :)
  • Please report any issues using our issue tracker.

Supporting the project

If the IOTA Java library has been useful to you and you feel like contributing, consider posting a bug report, feature request or a pull request.
We have some basic contribution guidelines to keep our code base stable and consistent.

Join the Discussion

If you want to get involved in the community, need help with getting setup, have any issues related with the library or just want to discuss Blockchain, Distributed Ledgers and IoT with other people, feel free to join our Discord.
You can also ask questions on our dedicated IOTA Forum.


The full license text can be found here.

Copyright 2017 IOTA Foundation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.