This library provides a Java wrapper around all the methods exposed by a Polkadot/Subtrate network client and defines all the types exposed by a node.
Java 1.8
The Java version is based on JS commit ff25a85ac20687de241a84e0f3ebab4c2920df7e.
The working substrate version is 1.0.0-41ccb19c-x86_64-macos. Newer substrate may be not supported.
The API is split up into a number of internal packages
gendoc.sh
in the root folder The project uses Gradle as build tool. You need to install Gradle.
git clone https://github.com/polkadot-java/api.git
cd api
gradle build
build/libs/
git clone https://github.com/polkadot-java/api.git
Install substrate local node:
https://github.com/paritytech/substrate
Running the samples:
There are several runnable samples. To run the samples, go to folder examples_runnable/LastestDate
(such as examples_runnable/20190525), then run each shell script.
To change the Substrate address, change the endPoint
variable in each demo main file.