hyperledger-java-client

Rest client SDK for hyperledger project

License

License

Categories

Categories

Java Languages CLI User Interface
GroupId

GroupId

me.grapebaba
ArtifactId

ArtifactId

hyperledger-java-client
Last Version

Last Version

0.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

hyperledger-java-client
Rest client SDK for hyperledger project
Project URL

Project URL

https://github.com/GrapeBaBa/hyperledger-java
Source Code Management

Source Code Management

https://github.com/GrapeBaBa/hyperledger-java.git

Download hyperledger-java-client

How to add to project

<!-- https://jarcasting.com/artifacts/me.grapebaba/hyperledger-java-client/ -->
<dependency>
    <groupId>me.grapebaba</groupId>
    <artifactId>hyperledger-java-client</artifactId>
    <version>0.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/me.grapebaba/hyperledger-java-client/
implementation 'me.grapebaba:hyperledger-java-client:0.1.3'
// https://jarcasting.com/artifacts/me.grapebaba/hyperledger-java-client/
implementation ("me.grapebaba:hyperledger-java-client:0.1.3")
'me.grapebaba:hyperledger-java-client:jar:0.1.3'
<dependency org="me.grapebaba" name="hyperledger-java-client" rev="0.1.3">
  <artifact name="hyperledger-java-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='me.grapebaba', module='hyperledger-java-client', version='0.1.3')
)
libraryDependencies += "me.grapebaba" % "hyperledger-java-client" % "0.1.3"
[me.grapebaba/hyperledger-java-client "0.1.3"]

Dependencies

compile (5)

Group / Artifact Type Version
com.squareup.retrofit2 : retrofit jar 2.0.2
com.squareup.retrofit2 : converter-gson jar 2.0.2
com.squareup.retrofit2 : adapter-rxjava jar 2.0.2
com.squareup.okhttp3 : logging-interceptor jar 3.2.0
org.slf4j : slf4j-api jar 1.7.21

Project Modules

There are no modules declared in this project.

Hyperledger-java

Build Status

It is a java client SDK for the project Hyperledger.

Getting Started

You can find some common examples created using hyperledger-java-client in an example project

Example

 
    Fabric FABRIC = Hyperledger.fabric("http://localhost:5000/")
    
    FABRIC.getNetworkPeers().subscribe(new Action1<PeersMessage>() {
        @Override
        public void call(PeersMessage peersMessage) {
            for (PeerEndpoint peerEndpoint : peersMessage.getPeers()) {
                System.out.printf("Peer message:%s\n", peerEndpoint);
            }
    
        }
    });
    
    FABRIC.getBlock(0)
          .subscribe(new Action1<Block>() {
              @Override
              public void call(Block block) {
                  System.out.printf("Get Block info:%s\n", block);
              }
          }, new Action1<Throwable>() {
              @Override
              public void call(Throwable throwable) {
                  Error error = ErrorResolver.resolve(throwable, Error.class);
                  System.out.printf("Error message:%s\n", error.getError());
              }
          });

Binaries

Binaries and dependency information for Maven, Ivy, Gradle and others can be found at http://search.maven.org.

Example for Maven:

<dependency>
    <groupId>me.grapebaba</groupId>
    <artifactId>hyperledger-java-client</artifactId>
    <version>0.1.3</version>
</dependency>

and for Ivy:

<dependency org="me.grapebaba" name="hyperledger-java-client" rev="0.1.3" />

and for Gradle:

compile 'me.grapebaba:hyperledger-java-client:0.1.3'

Build

To build:

$ git clone [email protected]:GrapeBaBa/hyperledger-java.git
$ cd hyperledger-java/
$ ./gradlew build

Bugs and Feedback

For bugs, questions and discussions please use the Github Issues.

LICENSE

Copyright 2016 [email protected]

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

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Versions

Version
0.1.3
0.1.2
0.1.1
0.1.0