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
0 answers

"Error: No credentialStore settings found"

I have my Hyperledger Fabric network deployed on AWS, all the credentials and users are there so I just have to use the existing credentials and keys but when I put them in my ConnectionProfile.json I keep getting this error: "Error: No…
1
vote
0 answers

What are the required capabilities enabled for fabric version 2?

Following tutorial for first network fabric version 2 https://hyperledger-fabric.readthedocs.io/en/release-2.0/build_network.html i installed successfully the chaincode (go language) on my peers. peer lifecycle chaincode queryinstalled Gives the…
HectorCode
  • 205
  • 2
  • 11
1
vote
0 answers

Failed to query from fabcar

I want to insert new car or query using a web application. Within this app.js, I use POST and GET method to insert new car or view all. But every time, when I try to submit a new car or click "View All cars", it returns this error [SOLVED] await…
Soumik
  • 55
  • 1
  • 8
1
vote
1 answer

Apply a filter on array field of couchDB

I'm working on Hyperledger fabric. I need a particular value from array not a full document in CouchDB. Example { "f_id": "1", "History": [ { "amount": "1", "contactNo": "-", "email": "i2@mail.com" }, { …
1
vote
2 answers

How to know the stateDB I'm using in hyperledger fabric

I've installed Hyperledger fabric 2.0. I'm running the fabcar example in the fabric samples directory. The fabcar chaincode is using test-network as fabric-network. I want to know which stateDB is being used by fabcar example. When I run command…
1
vote
1 answer

Does exceptions reverts transactions in hyperledger fabric?

In Hyperledger Fabric, if a transaction modify several assets, and then launch an exception, the assets keep modified or their state get reverted to be as before the transaction?
Eduardo Pascual Aseff
  • 1,149
  • 2
  • 13
  • 26
1
vote
1 answer

Using custom affiliation-based policies in Hyperledger Fabric

I want 4 intermediate CAs for a peer organization: ICA1, ICA2, ICA3 and ICA4 - one for every Node OU (peer, orderer, admin and client). Let's say if I place ICA1 as the cacerts attribute in the Peer Node OU of the channel configuration, then will a…
1
vote
1 answer

Issue with Hyperledger byfn - ERRO 002 Cannot run peer because cannot init crypto

I was running Hyperleddger byfn, to bring up the first network, on Mac. Each time I got this error above. What I tried so far for resolutio: docker rm -f $(docker ps -aq) — del existing containers docker rmi -f $(docker images -a) — del existing…
DebG
  • 11
  • 1
1
vote
1 answer

What is Benchmark error code 4 in Hyperledger Caliper

error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Could not parse enrollment response [Client sent an HTTP request to an HTTPS server. ] as JSON due to error [SyntaxError: Unexpected token C in JSON at position 0],…
lp_nave
  • 244
  • 3
  • 17
1
vote
2 answers

Hyperledger Fabric how to manage authorization by mspid

I would like to use roles to identify what an organization can do in my hyperledger fabric blockchain, so, if org1 is an distributor it can call the contract1 and the contract2 but org2 that has an auditor role can only call contract2. I am planning…
1
vote
1 answer

TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received type undefined

Im trying to install chaincode using fabricsdk in nodejs. installchaincode function throwing the below error: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received type undefined Below is the…
1
vote
1 answer

Hyperledger Explorer Test Fail

After configuring as show in the Readme fit in Hyperledger explore and making md5 to trust I have managed to come this far. I am currently using an Ubuntu 18.04 LTS server. Test explorerpg.sql for DDL statements syntax verification ✓…
1
vote
2 answers

Hyperledger Fabric java how to use getQueryResult()

I'm trying to use the getQueryResult() method in a transaction but i'm not able to understand what type of string i have to pass in the method. I have an asset composed by and id, name, surname and an hash. I want to verify that the hash doesn't…
famar
  • 33
  • 5
1
vote
1 answer

How to make faster Hyperledger Fabric java Smart Contract install (I want to avoid a timeout)?

I'm trying to deploy a Java Smart Contract on Hyperledger Fabric, and I'm having timeout issues executing the command peer lifecycle chaincode install cp.tar.gz. The error at the terminal is: Error: chaincode install failed with status: 500 - error…
Eduardo Pascual Aseff
  • 1,149
  • 2
  • 13
  • 26
1
vote
2 answers

Is it possible to list endorsing peers of a chaincode in the application?

In Hyperledger ledger, how could I list endorsing peers of a specific chaincode? I have a channel with 5 peers but I need that only three of them endorse a transaction while the other two need only to access to same ledger.