Questions involving hyperledger/fabric-sdk-go which is a golang library for accessing hyperledger fabric networks.
Questions tagged [hyperledger-fabric-sdk-go]
68 questions
0
votes
1 answer
There is something wrong with fabric-sdk-go when I run go build(with dep)
When I run go build and got the following error:
vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util/csp.go:47:8: cannot convert nil to type…

SherLin
- 3
- 1
0
votes
1 answer
Hyperledger Fabric Service Discovery - How to get peer tls certificates?
I am running a hyperledger network (1.3) consisting of 3 orgs. TLS is enabled on all components (so also the peer nodes).
I am using the fabric-go-sdk to trigger transactions.
In the log files of the fabric sdk I often get the following…

Subby
- 1,997
- 4
- 22
- 38
0
votes
1 answer
Panic when querying the chaincode to fabric-sdk-go
I'm trying to figure out how fabric-sdk-go works.
I created a connection with hyperledger, installed chaincode, but when I try to execute the request for some reason I get an error.
My function:
response, err :=…

batazor
- 852
- 2
- 16
- 36
0
votes
2 answers
Dynamic Channel artifacts(channel.tx) in Hyperledger Fabric
Is there any other way to generate a generic channel artifacts(channel.tx) for Hyperledger-Fabric channel creation, So that a channel name alone can be changed at runtime instead of issuing the below command with different channel name for every new…

Karthick V
- 25
- 8
0
votes
3 answers
How to install chaincode using fabric sdk (fabric-client)?
Based on the package definition listed here https://fabric-sdk-node.github.io/master/tutorial-chaincode-lifecycle.html
const package_request = {
chaincodeType: 'golang',
goPath: '/gopath',
chaincodePath: '/path/to/code',
…

Tara
- 549
- 2
- 7
- 14
0
votes
1 answer
failed to get discovery service: could not get chConfig cache reference: read configuration for channel peers failed
When trying to install and instantiate the chaincode I'm getting below error:
error coming on WSL(Windows subsystem for Linux)
Unable to install and instantiate the chaincode: failed to instantiate the chaincode: failed to get discovery service:…

metadata
- 1,139
- 1
- 7
- 28
0
votes
1 answer
Orderer Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [localhost:7050]
When trying to initialize the SDK with my local network I'm facing below issue. I saw some similar posts in which it is mentioned that by adding entityMachers in config.yaml file fix this issue but even after adding the entityMatchers I'm facing…

metadata
- 1,139
- 1
- 7
- 28
0
votes
1 answer
List all channel in Hyperledger Fabric network using NODE SDK
How can i get the list of all channels in an Hyperledger Fabric network?
If not possible, can i list all the channels that a particular organization has joined.
I know i can use the queryChannels API of Client class to get the list of channel a…

Sourav
- 145
- 1
- 14
0
votes
1 answer
Fabric SDK Go - Peer being excluded by filter when attempting to make a query
I am attemping the to execute the following statement after instantiation of my chaincode:
response, err := client.Query(channel.Request{
ChaincodeID: heligo.fsConfig.ChainCodeID,
Fcn: "invoke",
Args: defaultQueryArgs},
…

Young_Torso
- 141
- 1
- 10
0
votes
1 answer
How to restrict function calls to certain 'type' of users in Fabric?
I recently shifted from using Composer to writing ChainCode in Go. In Composer, using ACL, I could restrict certain transactions to specific participant types.
I'm attempting to build a multi-org network where user 'types' are defined as structs in…

Haardik
- 187
- 1
- 13
0
votes
2 answers
need reference to use hyperledger fabric go sdk (fabric-sdk-go)
I am writing an application with Hyperledger Fabric.
I want to use fabric-sdk-go for which I need to write a config file which would be input to fabsdk.New().
But I could not find any reference/materials on how to write that file, what parameters to…

Vignesh k
- 131
- 2
- 10
0
votes
2 answers
Hyperledger Fabric SDK Go Installation Error. What is going wrong here and How to fix it?
I'm trying to install Hyperledger Fabric SDK for Go Language.. How do I fix this problem?
After I tried the "make" command, this error shows up.
Go Version- 1.11.4
docker Version- 18.09
docker-compose Version- 1.13
I'm following instructions…

Abhik Banerjee
- 357
- 1
- 6
- 9
0
votes
1 answer
can we setup one CA for multiple organization through fabric?
I have setup Multiple Organization on different machines.
Machine 1
-> peer0.org1.example.com
-> ca.org1.example.com
-> orderer.example.com
Machine 2
-> peer0.org2.example.com
-> peer0.org3.example.com
I have created a channel which is shared…

jambu gunvant
- 121
- 4
0
votes
1 answer
Arguments as JSON kind of in sendTransactionProposal(req ChaincodeInvokeRequest) in Hyperledger Fabric
In regard to calling a chaincode(go lang) through fabric nodejs API, The Request Object for the method sendTransactionProposal(req ChaincodeInvokeRequest) the ChaincodeInvokeRequest accepts only Array. as arguments for the invoke method to be…

Harshitha C
- 65
- 1
- 8
0
votes
3 answers
could not get chConfig cache reference: QueryBlockConfig failed: queryChaincode failed:
I'm developing a middleware in Go that integrates a hyperledger fabric network using fabric-sdk-go. The middleware is running on Docker container and it's set to use the same network of fabric containers (I've check that container is connecting each…