hyperledger-java

A java client SDK for hyperledger project

License

License

Categories

Categories

Java Languages
GroupId

GroupId

me.grapebaba
ArtifactId

ArtifactId

hyperledger-java
Last Version

Last Version

0.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

hyperledger-java
A java 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

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

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