fabric-sdk-go | SDK enables Go developers to build solutions | Blockchain library
kandi X-RAY | fabric-sdk-go Summary
kandi X-RAY | fabric-sdk-go Summary
This SDK enables Go developers to build solutions that interact with Hyperledger Fabric.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fabric-sdk-go
fabric-sdk-go Key Features
fabric-sdk-go Examples and Code Snippets
Community Discussions
Trending Discussions on fabric-sdk-go
QUESTION
I've been facing this issue when trying to invoke chaincode through a go application with the gateway sdk. Chaincode is successfully installed on the peers and works through the cli, but I get the following errors when trying to invoke the chaincode with the application:
...ANSWER
Answered 2022-Mar-15 at 22:12Make sure you're running with Fabric 2.4 and higher.
Implicit collection support was only implemented in Fabric 2.4.
QUESTION
I am currently running hyperledger fabric v2.2. I have developed the chaincode using the contractapi and developing the application using fabric-sdk-go/pkg/gateway
How can i get the transaction status and the transaction payload? I am aware of the GetHistoryByKey() which is available in the contractapi but that doesn't works out for my application.
I know there is hyperledger-explorer which can be used to search transactions by TxID but my use-case is my application will be querying by TxID and then it will verify the status of that particular transaction (TxID).
Also, i have tried to achieve this using the fabsdk but i am getting an error when i try to create instantiate the fabsdk using the fabsdk.New()
. There seems to be some compatibility issue with the connection-profile.json which i am using the fabric-sample project.
The error which i am getting is:
failed to create identity manager provider: failed to initialize identity manager for organization: MyOrgName: Either a cryptopath or an embedded list of users is required
The same connection-profile has been used in getting the network up and running, and everything seems to be working all good. I am able to submit and evaluate transactions.
SOLUTION
The system chaincodes are embedded in the peer itself. so we need to set the target otherwise it would just give the discovery error since the contract QSCC is not explicitly deployed on the channel.
Make sure to check the core.yaml file channel.system - the system chaincode should be enabled channel.system.qscc: enable
...ANSWER
Answered 2021-Jun-08 at 11:42Your client application can use the client SDK appropriate to your pogramming language to evaluate the GetTransactionByID
transaction function on the qscc
system chaincode, which is available on all peers. This transaction function takes a transaction ID as its only argument and returns a peer.ProcessedTransaction
protobuf, which contains the transaction envelope and a validation code.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fabric-sdk-go
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