Questions tagged [hyperledger-chaincode]

332 questions
3
votes
2 answers

Vendored Chaincode has false dependencies

I have chaincode with the following directory structure $GOPATH/myproject/chaincode/mycc/go ├── mycc.go ├── chaincode │   └── chaincode.go └── vendor ├── github.com ├── ... Because of my usage of hyperledgers cid package, I use vendoring…
Roper
  • 775
  • 1
  • 8
  • 14
3
votes
2 answers

Hyperledger Fabric: implementing chaincode level access control

I want to implement a chaincode level access control to some method. So, for example, I want that the chaincode method called can be executed only if the user that has performed the request has a certein identity that match a field of the asset…
2
votes
1 answer

Hyperledger Fabric, how to share private data with another peer node?

I am exploring a bit more about Hyperledger Fabric, and have become interested in private data. From what I understand, when a peer node creates private data, it is stored on that node, together with the hash of that private data. Unauthorized nodes…
BRNHINLT
  • 23
  • 3
2
votes
1 answer

Hyperledger fabric 2.1 chaincode installation

I am trying to install a node chaincode in my peer using the latest chaincode lifecycle. But I am getting below error when I try to install the chaincode peer lifecycle chaincode install testcc.tar.gz Error: Error: chaincode install failed with…
GPC
  • 306
  • 1
  • 12
2
votes
1 answer

How can I package chaincode into cds format without using IBP vscode extension

I'm writing smartcontracts in hyperledger fabric and for deployment purpose I need to package it into cds(chaincodedeploymentspec) format. are there any options other than vscode IBP extension for this?
2
votes
1 answer

I'm trying to access local hyperledger test-network chaincodes through nodejs, for writing apis

I have followed this for setting up the test-network and deploying the chaincodes hlf test-network setup till querying the chaincode step I can query them using peer command from terminal but I want to query them through my api, for that I'm…
AditiB
  • 322
  • 2
  • 10
2
votes
1 answer

Chaincode for hyperledger Fabric using JAVA

I want to write a chaincode in JAVA. Can I use eclipse? How can I write and test the chain code? It is my first time to learn how to develop chaincodes for Fabric. I know JAVA and I know how to write smart contracts for Ethereum where I use Remix.…
2
votes
0 answers

"Error: error endorsing chaincode: rpc error: code = Unavailable desc = transport is closing "

please I get this errror when instantiating a chaincode on one of the peers "Error: error endorsing chaincode: rpc error: code = Unavailable desc = transport is closing " Attached below are pictures of the orderer and peer logs I use this code for…
2
votes
0 answers

Error: Failed to connect before the deadline URL:grpc://localhost:7051

:~/Documents/test/education/LFS171x/fabric-material/tuna-app/$ node query.js Store path:/home/*******/Documents/test/education/LFS171x/fabric-material/tuna-app/hfc-key-store Successfully loaded user1 from persistence 2020-02-11T05:56:10.423Z -…
2
votes
0 answers

Hyperledger Fabric Node.js API optional args in contract method error

Can't pass optional params in Contract method. If I mark arg as optional I'm getting error from HL(version 1.4): class MyContract extends Contract { async someMethod(ctx, arg1, arg2, optionalArg = undefined) { // do smth } } // And when…
2
votes
1 answer

"gRPC failure=Status{code=UNAVAILABLE, description=io exception" when invoking 'channel.sendTransactionProposal'

Getting below gRPC error when tls is enabled and tried to send transaction proposal to peer. Taken reference code from here: https://developer.ibm.com/tutorials/hyperledger-fabric-java-sdk-for-tls-enabled-fabric-network/ I have enabled TLS on all…
2
votes
4 answers

Unable to update batchtimeout in orderer configuration?

I have created a network of fabric and it running fine. I want to update the oderer configuration such as batchtimeout in running network. I have followed this tutorial to update the channel configuration at runtime. This tutorial works for adding a…
TechChain
  • 7,104
  • 20
  • 81
  • 193
2
votes
1 answer

While submitting transaction no ledger context error in hyperledger chaincode

I am converting a certificate signing request to self signed certificate using hyper ledger chaincode. But while storing information regarding the certificate, transaction is not being successful and it gives me no ledger context error. Nodejs…
2
votes
3 answers

TypeError: stub.GetQueryResultWithPagination is not a function

I have instantiated a sample NodeJS chaincode from fabric-samples marbles02 all the invoke and query functions are working fine but when i was trying to query this function queryMarblesWithPagination it gives me this error: Error: endorsement…
2
votes
1 answer

Does contract.evaluateTransaction(fcn,args) make a transaction during query on endorsing peers?

I am using hyperledger fabric 1.4, and facing an issue, while querying using the node sdk await contract.evaluateTransaction(fcn,args), I am getting this error : - Errors: ["2 UNKNOWN: invalid txid. got…
1
2
3
22 23