Questions tagged [hyperledger-chaincode]

332 questions
8
votes
0 answers

Hyperledger Fabric 2.0-beta Javascript Dev Mode

I'm running and adapting chaincode dev mode, for javascript chaincode, and for Fabric 2.0-beta. I launch the network and adapt the script.sh (client) to run: set -e peer channel create -c myc -f myc.tx -o orderer:7050 peer channel join -b…
5
votes
1 answer

Hyperledger Fabric 1.4 Private data collection

Hyperledger fabric provides inbuilt support storing offchain data with the help of private collections. For this we need to specify the collection config which contains various collection names along with the participants that has access to data…
5
votes
2 answers

failed to create new connection: desc = transport: error while dialing: dial tcp 172.19.0.4:9051: connect: connection refused Hyperledger fabric

Can anyone help me fixing below error. I'm trying to install chaincode on peer via cli. I configured cli container correctly. But somehow Im getting this error.. grpc: addrConn.createTransport failed to connect to {peer0.org1.example.com:7051 0…
4
votes
3 answers

Instantiation of Chaincode using Fabric Node SDK gives API error (404): manifest for hyperledger/fabric-ccenv:latest not found

I am trying to instantiate a Golang chaincode on my Hyperledger Fabric network (setup on cloud) using Fabric Node SDK. However, I am facing the following error while performing the same: Error: error starting container: error starting container:…
4
votes
1 answer

Error in committed chaincode invoke/query with hyperledger fabric 2.0

I have successfully committed the chaincode with command: ./peer lifecycle chaincode commit -o orderer.example.org:7050 --channelID mychannel --name emp_chaincode --version v1 --sequence 1 --init-required --tls --cafile…
4
votes
1 answer

Hyperledger private data dynamic access

Is it possible to dynamically set access to private data in Hyperledger fabric 1.4? Unlike the collections file where we have to add the organizations that can have access to a particular "collection", is it possible to add access through chaincode?
4
votes
1 answer

Hyperledger Fabric Chaincode Development Language - NodeJS, Java, or Go?

With consideration of existing functionality, developer productivity (assuming minimal experience in each language), support within the Fabric community, and roadmap for enhancements, is there any chaincode development language that should be…
DC-OHIO
  • 45
  • 6
3
votes
1 answer

Can putState() and putPrivateData() be used in the same chaincode?

I understand that using a putState() in a transaction would be logged in the ledger, where as putPrivateData() would result in a hash being stored on the ledger. What happens if both are used in one transaction? Would the private data be viewable on…
3
votes
1 answer

How to deploy multiple contracts in one chaincode(Hyperledger fabric)

I used fabric-contractapi-go to write my chaincode, and this chaincode contains two contracts. I have tested it in the fabric-chaincodedev-mode. But when I deploy it in the fabric-firstnetwork using such commands, I can't get the second contract no…
yjlin
  • 31
  • 1
3
votes
1 answer

Hyperledger fabric 2.0 -chaincode as external service:Unknown chaincodeType: EXTERNAL

I am trying to set up the chain code as an external service as is specified in the official doc First thing is to set up the externalBuilder variable chaincode: externalBuilders: - name: my-golang-builder path: /builders/golang In my peer…
iam batman
  • 4,320
  • 10
  • 45
  • 94
3
votes
1 answer

Hyperledger Fabric v2 new chaincode lifecycle install problem with dind vm endpoint + tls

having trouble with new v2 chaincode lifecycle, I am using docker vm dind endpoint https://127.0.0.1 with tls on, peer has all docker client crypto material…
3
votes
3 answers

Chain Code not deploying on Test Network after executing the deployment script in Hyperledger Fabric 2.0 documentation

I ran the script ./network.sh deployCC, then its not able to deploy it on the network(Fabric 2.0), this is the error: deploying chaincode on channel 'mychannel' Vendoring Go dependencies ... ~/Desktop/Fabric/fabric-samples/chaincode/fabcar/go…
3
votes
1 answer

hyperleder fabric Enroll ID type error on peer?

Im trying to invoke a transaction on basic network The error that I get is: [discovery] chaincodeQuery -> ERRO 06c Failed constructing descriptor for chaincode chaincodes: ,: cannot satisfy any principal combination After a search I…
3
votes
1 answer

How can I change consensus algorithm in Hyperledger sawtooth-supply-chain api (FishNet example)?

I am trying to change my consensus algorithm in the FishNet example. In /sawtooth-supply-chain-master/fish_client/public/dist/bundle.js file I found this: consensus":{"type":"bytes","id":5} Does anybody knows what is the mapping of consenus ids in…
3
votes
3 answers

getStateByRange() returning empty iterator for in Hyperledger Fabric Java SDK

I am trying to get all entries in the ledger (Fabric 1.4.4, using Java Chaincode): QueryResultsIterator iterator = ctx.getStub().getStateByRange("",""); But I always get an empty iterator. Is this the correct way to get all entries? (At…
icordoba
  • 1,570
  • 21
  • 54
1
2 3
22 23