Questions tagged [hyperledger-fabric]

Hyperledger Fabric is an implementation of blockchain technology. Use this tag for questions about this project.

Use this tag for questions about this project.

Another good idea is to reach out to the community at

Documentation can be found at

Refer development lifecycle and officially provided resources at

6206 questions
1
vote
1 answer

Why I'm I getting 'Cannot connect to docker daemon' error while installing the Fabric Samples and binaries for HyperLedgerFabric?

I'm following steps from hlf documentation When I'm trying to install the Fabric Samples and binaries, I'm getting the following error: I checked docker daemon and its running, container I chose is Kubernetes: What can I do to resolve this? Please…
AditiB
  • 332
  • 2
  • 10
1
vote
0 answers

Failed to fetch next results: QUERY_STATE_NEXT failed: transaction ID: XXXXX: no ledger context

I am trying to fetch data from blockchain using query in chaincode. I have invoked around 2,50,000 records in blockchain and trying to fetch the data using query. When I run the chaincode and get the peer logs, I am getting the below…
1
vote
1 answer

I added additional parameter in fabcar smart contractexample in hyperledger fabic. which is showing this error

I get this error: org.hyperledger.fabric.gateway.GatewayRuntimeException: org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: Failed to find any endorsers for chaincode fabcar. See logs for details See screenshot
1
vote
2 answers

Hyperledger fabric2.0 peer lifecycle chaincode approveformyorg Error: timed out waiting for txid on all peers

The config looks good, and I can successfully run package and install. However, approveformyorg return this error: timed out waiting for txid on all peers. I don't know how to debug this error. I have tried to change some environment variables (like…
YiWang
  • 11
  • 2
1
vote
3 answers

chaincode argument error: unexpected end of JSON input

I have created a test network and I am able to install the chaincode I have created in golang. But when instantiating it I receive the following: 2020-03-24 08:00:00.843 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 04a Using default…
ACaruso
  • 53
  • 6
1
vote
0 answers

How to use databases, jwt authentication for multiple users using Hyperledger fabric CA?

Im experimenting Hyperledger fabric and I would like to know If there is any feature of user login and registration using node sdk. If so, could you provide me any resources or code snippets related to it. People adviced me to use some database to…
1
vote
1 answer

How to perform unit tests on Hyperledger Fabric Go chaincode which uses ACL controls?

I am currently writing some unit tests for some Hyperledger Fabric chaincode functions, written in Go. Some of the functions require a user with certain attributes or indeed just need to know the user's ID. For example, some of the functions use the…
1
vote
0 answers

How to congfigure access rights for consortium members on channel level in Hyperledger Fabric

I'm developing a blockchain solution on Hyperledger Fabric. This solution should be used to provide the interactions bewtween manufacturers and suppliers. I supposed that in this case there should be a single blockchain ledger with information about…
1
vote
0 answers

Problems deploying the Hyperledger Fabric blockchain network

I'm preparing a deployment scenario for some software solution based on Hyperledger Fabric blockchain ver. 2.0. I've reviewed the official docs and examples, but some points regarding the deployment/support on real-world production environment are…
1
vote
0 answers

Life cycle endorsement with "Any Majority" in Fabric 2:0 is not working

Chain code life cycle endorsement is not working when following changes made in configtx.yaml. LifecycleEndorsement: Type: ImplicitMeta Rule: "ANY Endorsement" Endorsement: Type: ImplicitMeta Rule: "ANY Endorsement" Network…
Swt
  • 11
  • 1
1
vote
0 answers

How to set only read operation in fabric

I am making a project in which I have 3 organisation. I want third organisation(Org3) only to have read capabilities but can writing anything to the ledger. I have tried by using ACL i.e "peer/Propose: /Channel/Application/" , but this can wont…
Nikhil BM
  • 11
  • 1
1
vote
1 answer

Error registering user in Hyperledger fabric v 2.0

I'm trying hyperledger fabric sample(v2.0). My basic network is running fine and i'm able to enroll the admin. however when i tried to register a user, its throwing an error like "Failed to register user "user1": TypeError: gateway.getClient is not…
1
vote
2 answers

Hyperledger Fabric Node.js client application deployed on different server

I am struggling with Node.js Hyperledger Fabric client library on this particular error: I've got my blockchain network (Hyperledger Fabric 1.4) deployed on one server with IP and all needed ports visible from another server. All the examples /…
1
vote
1 answer

Is it possible to deploy a daml smart contract with bots to Hyperledger Fabric?

I deployed quickstart tutorial based on the example "daml-on-fabric" https://github.com/hacera/daml-on-fabric and after that i tried to deploy the pingpong example from dazl https://github.com/digital-asset/dazl-client/tree/master/samples/ping-pong.…
HectorCode
  • 205
  • 2
  • 11
1
vote
1 answer

How to pass on an updated variable outside of MQTT event to use it otherwise as condition? (Hyperledger Fabric & MQTT)

First, we are quite new in the area Hyperledger Fabric and MQTT. We are building a prototype with a Blockchain platform (Hyperledger Fabric) written in nodeJS and a raspberry pi for transmitting the IoT data (working with mqtt). In our nodeJS file…