fabric-java

A java client SDK for hyperledger fabric project

License

License

Categories

Categories

Java Languages
GroupId

GroupId

me.grapebaba
ArtifactId

ArtifactId

fabric-java
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

fabric-java
A java client SDK for hyperledger fabric project
Project URL

Project URL

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

Source Code Management

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

Download fabric-java

How to add to project

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

Dependencies

compile (8)

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
io.grpc : grpc-netty jar 1.0.0
io.grpc : grpc-protobuf jar 1.0.0
io.grpc : grpc-stub jar 1.0.0

Project Modules

There are no modules declared in this project.

fabric-java

Build Status

It is a java client SDK for the project Hyperledger.

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>fabric-java</artifactId>
    <version>0.1.0</version>
</dependency>

and for Ivy:

<dependency org="me.grapebaba" name="fabric-java" rev="0.1.0" />

and for Gradle:

compile 'me.grapebaba:fabric-java:0.1.0'

Build

To build:

$ git clone [email protected]:GrapeBaBa/fabric-java.git
$ cd fabric-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.0