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

Certificate problems on Hyperledger Fabric blockchain network deployed with Swarm

I've come across this particular problem when deploying a very simple blockchain network on Docker Swarm using the Hyperledger Fabric v1.4.4. It has 2 organizations (2 peers each), 5 orderers (Raft consensus), 2 CA (one for each organization), and 4…
d3v9
  • 97
  • 6
1
vote
3 answers

In Hyperledger Fabric v2.1, in the test-network repo sample - Error in channel creation

I'm trying to create a channel from the test-network sample of Hyperledger Fabric v2.1. I have installed all the latest fabric binaries & Docker images. The channel-artifacts, 2 peers and a ordering node were successfully created. However, the…
1
vote
1 answer

Hyperledger Fabric 2.0 Endorsment failure during chaincode commit

I'm using Fabric 2.0 and I'm trying to commit a chaincode to a channel. But I get Error: transaction invalidated with status (ENDORSEMENT_POLICY_FAILURE). The orderer's logs are these: 2020-04-24 12:50:08.213 UTC [policies]…
ultracode
  • 107
  • 1
  • 8
1
vote
0 answers

Issues to submit transaction to the local instance of Hyperledger Fabric, pre-configured in IBM blockchain platform extension for VSCode

I'm using Hyperledger Fabric Gateway SDK for Java to connect my local HLF network, available by default with IBM blockchain platform extension for VSCode. I have deployed a smart contract from Create-BlockchainNetwork-IBPV20 example…
AlexSV
  • 111
  • 1
1
vote
1 answer

How to send an object array as args in Chaincode for hyperledger fabric

I have an object array like below [ {"name":"heamoglobin","reading":"12"}, {"name":"mrc","reading":"3.3"}, {"name":"hct","reading":"33"} ] I need to send this as an argument for my chaincode function. I tried stringifying the whole array like…
1
vote
1 answer

How to view or retrieve data from hyperledger fabric

I have modified fabcar example to store my own data which have keys like this 5e57b8dbb9b30e3575f45d75,5e57b8dbb9b30e3575f45d76. I used getStateByRange to get data, but it retrieves only certain data between the range. Is there any way to retrieve…
1
vote
1 answer

Pass array data to chaincode in hyperledger fabric

I have modified fabcar example to store my own data. I have to save json data into the blocks. Some of the object properties are strings and array. But i can't able to pass the array to the chaincode. Here is my json data { key :…
1
vote
0 answers

Problem with Hyperledger createPeerAdminCard.sh : "Error returned from build: 127 "/bin/sh: npm: not found""

I got the following error when I run the script ./createPeerAdminCard.sh to create a card in my new HLF network (I have 2 networks, 1 work perfectly). the error is "Error: Error trying to start business network. Error: No valid responses from any…
1
vote
1 answer

How to migrate one Hyperledger Fabric network to another

I have 2 HLF networks. The first one has let's say Kafka ordering service and some peers, chaincodes and their ledgers. Second network is null right now (let's say we will derive this network from network A). In network B, I want RAFT based ordering…
Chintan Rajvir
  • 689
  • 6
  • 20
1
vote
1 answer

Hyperledger Fabric enroll & register admin not working

I'm trying to enroll & register an admin to perform peer operations. This is the bash…
Antoni
  • 75
  • 10
1
vote
1 answer

Revoking users in Hyperledger Fabric

I am working on a Hlf Project and am trying to revoke a user certificate. I am using the node sdk with the vscode ibm extension tool. So far i got to the point that i can revoke users via the sdk. Then i'll need to generate the CRL and update the…
1
vote
0 answers

How to config gRPC message size in Hyperledger Fabric 2.0

I got an error when trying to invoke base64 string to smart contract An error occurred on the chaincode stream. Shutting down the chaincode stream.RESOURCE_EXHAUSTED: gRPC message exceeds maximum size 4194304: 12366828 How can I fix this error? I…
Kanzt
  • 135
  • 1
  • 6
  • 13
1
vote
3 answers

How to get data (state) using txID Hyperledger fabric

async createEntity(ctx, entityNumber, entityType, data) { const entity = { data, }; await ctx.stub.putState(entityType + entityNumber, Buffer.from(JSON.stringify(entity))); return ctx.stub.getTxID(); } There is such code in…
1
vote
0 answers

Error while installing chaincode in fabric 2.0

when I try to approve chaincode definition for my organization using peer lifecycle chaincode approveformyorg I got this error Error: proposal failed with status: 500 - failed to invoke backing implementation of…
usama habib
  • 11
  • 1
  • 3
1
vote
1 answer

network net_byfn id a4ebec5b9879b4dc72ac8abc3e6c03e183f1c50506473101431d1c7116e11657 has active endpoints

I found an error after running ./byfn.sh down. The error is ERROR: error while removing network: network net_byfn id a4ebec5b9879b4dc72ac8abc3e6c03e183f1c50506473101431d1c7116e11657 has active endpoints I've gone through ./byfn.sh but…
LamSingjip
  • 43
  • 1
  • 1
  • 5