Questions involving hyperledger/fabric-sdk-go which is a golang library for accessing hyperledger fabric networks.
Questions tagged [hyperledger-fabric-sdk-go]
68 questions
                    
                    8
                    
            votes
                
                2 answers
            
        Channel creation fails in Hyperledger Fabric v1.2
I'm trying to start an Hyperledger Fabric network in v1.2 with a network generated by myself (with binary configtxgen). The network starts correctly and no component indicates an error.
However, when I try to create a new channel, an error occurs at…
         
    
    
        AnTiToinE
        
- 421
- 5
- 16
                    4
                    
            votes
                
                0 answers
            
        Failed to get network: Failed to create new channel client: event service creation failed: could not get chConfig cache reference
Failed to get network: Failed to create new channel client: event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: QueryBlockConfig failed: queryChaincode failed: Transaction processing for endorser…
         
    
    
        dev
        
- 51
- 6
                    3
                    
            votes
                
                3 answers
            
        Hyperledger Fabric: check if the transaction has been committed to the ledger
I have three client application that uses respectively the Java, Node.js and Go SDKs to interact with my blockchain Fabric. Using them, I can query and update the ledger successfully.
Now I want to measure the latency during update of the ledger.…
         
    
    
        gava
        
- 79
- 1
- 6
                    3
                    
            votes
                
                3 answers
            
        Getting error " not enough arguments in call to s.statsd.SendLoop" when running "go build" command
I'm trying to run go build command for my project but it exits with below error. 
alpha@GHOST-RIDER:~/GoWorkspace/src/github.com/hyperledger/firstproject$ go build
#…
         
    
    
        metadata
        
- 1,139
- 1
- 7
- 28
                    2
                    
            votes
                
                1 answer
            
        How to package the couchdb indexes in external chaincode build?
I am trying to install and deploy the chaincode as external service following the instructions here
I have created the couchdb indexes following the instructions here and package the chaincode as:
package the META-INF directory along with the…
         
    
    
        Niraj Kumar
        
- 211
- 2
- 6
                    2
                    
            votes
                
                4 answers
            
        When I used msp in fabric-sdk-go to register users with CA, an error occurred
The error is as follows:
Register return error:
 failed to register user: failed to register user: Response from server: Error Code: 20 - Authentication failure
The relevant part of the code is as follows:
import (
[...]
mspclient…
         
    
    
        xu_liu
        
- 21
- 1
                    2
                    
            votes
                
                1 answer
            
        fabric-sdk-go Execute Not always updating ledger
I am using client.channel.Execute API in fabric-sdk-go to invoke the ledger update Txs in chaincode.
I know my chaincode for ledger update is correct because invoke Tx when run from cli container command line is working perfectly all the times.
Few…
         
    
    
        ANIKET DHAR
        
- 21
- 2
                    2
                    
            votes
                
                2 answers
            
        Why does connection profile in Hyperledger Fabric has gRPC URL?
In the client applications (using Node/Go) we provide connection profile to identify the endpoints of endorsers. 
There we specify endpoint of peer in terms of grpc://localhost:port but actually gRPC runs on HTTP2 right?
Then does the Fabric SDK…
         
    
    
        Chintan Rajvir
        
- 689
- 6
- 20
                    2
                    
            votes
                
                1 answer
            
        How to connect a Go client application to the IBM VS Code Fabric Extension?
I am working on some projects with Hyperledger Fabric, currently using the IBM VS Code Extension. The chaincode is written in Go, as is the client application which provides a RESTful API, using the Go Fabric SDK. However, I am having trouble…
         
    
    
        Chris Sargent
        
- 321
- 2
- 13
                    2
                    
            votes
                
                0 answers
            
        How to use fabric-sdk-go to dynamically add organizations (or delete organizations) in an existing fabric network?
I want to use fabric-sdk-go to dynamically add organizations (or delete organizations) to an existing fabric network, but I do n’t know how to implement it. I hope to get everyone ’s help, thank you.
         
    
    
        xupter
        
- 61
- 3
                    2
                    
            votes
                
                1 answer
            
        How to resolve to that discovery Service does not work: "failed constructing descriptor for chaincodes :" 
        When I use the SDK to query endorse for my chaincode, it occur error 
"error getting channel response for channel [mychannel]: Discovery status Code: (11) UNKNOWN. Description: error received from Discovery Server: failed constructing descriptor…
         
    
    
        fruit
        
- 21
- 3
                    2
                    
            votes
                
                0 answers
            
        Getting "runtime error: invalid memory address or nil pointer dereference" when querying the chaincode
I'm using fabric-sdk-go to install, instantiate, invoke and querying the chaincode. 
chaincode installation is successful.
root@991bc7577959:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode list --installed
Get installed…
         
    
    
        metadata
        
- 1,139
- 1
- 7
- 28
                    2
                    
            votes
                
                1 answer
            
        Problem with Endorsment Policy with Fabric GO SDK
I have a hyperledger fabric testnet with 2 orgs, 3 peers in org1 and 2 peers in org2. The peer0 of each organization is the anchor peer. I want to instantiate a chaincode with an endorsment policy with only one organization: Org1, so I specify the…
         
    
    
        Mtng
        
- 61
- 6
                    2
                    
            votes
                
                1 answer
            
        Not able to query the BYFN via fabric-sdk-go due to the error " no endorsement combination..."
I am trying to use fabric-sdk-go to access the fabric network which is buid up via BYFN . 
I want to try to do the same thing as the cli command: 
peer chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}'
but only get the error:
Failed…
         
    
    
        Moon
        
- 361
- 2
- 10
                    2
                    
            votes
                
                1 answer
            
        What are the use of Transaction ID respond in invoke-transaction.js of Balance Transfer sample?
I am currently learning how to develop client app using Hyperledger Fabric Node SDK. To do so, I'm now trying to understand the Node JS code of balance-transfer sample in fabric-samples.
In the balance-transfer/app/invoke-transaction.js file,…
         
    
    
        Rezha Kusuma Astri
        
- 45
- 3