fabric-sdk-java | SDK provides a layer abstraction on top | Blockchain library
kandi X-RAY | fabric-sdk-java Summary
kandi X-RAY | fabric-sdk-java Summary
The SDK provides a layer of abstraction on top of the wire-level protobuf based communication protocol used by client applications to interact with a Hyperledger Fabric blockchain network. It allows Java applications to manage the lifecycle of Hyperledger channels and user chaincode. The SDK also provides a means to execute user chaincode, query blocks and transactions on the channel, and monitor events on the channel. The SDK acts on behalf of a particular User which is defined by the embedding application through the implementation of the SDK's User interface. Note, the SDK does not provide a means of persistence for the application defined channels and user artifacts on the client. This is left for the embedding application to best manage. Channels may be serialized via Java serialization in the context of a client. Channels deserialized are not in an initialized state. Applications need to handle migration of serialized files between versions. The SDK also provides a client for Hyperledger's certificate authority. The SDK is however not dependent on this particular implementation of a certificate authority. Other Certificate authority's maybe used by implementing the SDK's Enrollment interface. This provides a summary of steps required to get you started with building and using the Java SDK. Please note that this is not the API documentation or a tutorial for the SDK, this will only help you familiarize to get started with the SDK if you are new in this domain.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Send transaction proposal to end of chaincode .
- Find endpoints for the chaincode names .
- Connects to the client .
- Send an envelope to the OrderedChannel .
- Generate package data bytes .
- Sets up the SSL properties .
- Reconstructs a channel from a JSON channel .
- Parse identities from identity map .
- Verifies the endorsement response .
- Add properties for a channel builder .
fabric-sdk-java Key Features
fabric-sdk-java Examples and Code Snippets
Community Discussions
Trending Discussions on fabric-sdk-java
QUESTION
I am working on a client that needs to be notified of the status of any given blockchain transaction. To that end I am learning how to make use of events to achieve this. I tried referring to the official documentation on events in HLF 1.4 (found here) but the link to the SDK documentation is dead. I also found this question but the provided links are all dead as well.
Then I came across the Fabric Gateway implementation (mentioned here), and I found BlockListenerTest, which forms the basis for this question.
My current scratch code looks like this:
...ANSWER
Answered 2020-May-04 at 10:18To use the high level Gateway SDK, you need to start by creating a Gateway object, then get a network object from that (use the sample code here as a start). From the network object, you can invoke addBlockListener() passing in your consumer function. Then when you invoke submitTransaction on your contract object, your listener should get invoked.
In terms of tests, you're probably better off looking at the scenario test code here, here and here for examples of usage.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fabric-sdk-java
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page