Questions tagged [hyperledger-chaincode]
448 questions
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
- 381
- 2
- 14
2
votes
1 answer
How could I capture events generated by transactions on Hyperledger Fabric?
I'd like to know if chaincode events can be captured by all peers of a specific channel that have installed the chaincode through SDK. I tried some experiments but it seems that a chaincode event can be captured only by the peer that required the…

Pippo Pluto
- 151
- 3
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?

Lakshmi
- 21
- 1
2
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
- 21
- 1
2
votes
4 answers
Error: endorsement failure during invoke. response: status:500 message:"error in simulation:
I'm using hyperledger fabric 2.0. I have two orgs. ORGA and ORGB. I'm using "test-network" of fabric-samples repository as my network.
I have edited javascript version of fabcar chaincode by changing the variable names in the init functions and…

Satish Chandra Medi
- 86
- 1
- 1
- 9
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
- 332
- 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.…

Haya Raed
- 5,921
- 5
- 16
- 19
2
votes
2 answers
What is the difference between fabric-chaincode-go and fabric-contract-api-go?
I am currently trying to learn Hyperledger Fabric , I managed to understand how to setup the network (Orderers, Peers, etc.) but now comes the part of the chaincode.
But, I found two different git repos for (what I understand) can be used to create…

Popopame
- 492
- 4
- 18
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…

Andyke
- 39
- 7
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 -…

Aldo
- 158
- 1
- 10
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…

MR.QUESTION
- 359
- 2
- 9
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…

Kalyan Konda
- 67
- 4
2
votes
5 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
- 8,404
- 29
- 103
- 228
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…

Muhammad Abdullah
- 21
- 2
2
votes
0 answers
adding properties file for java chaincode
I want add a configuration file that includes parameters like network name in a configuration file that the chaincode can read from and I can edit without reinstalling/instantiating the chaincode. Is this possible?
I have tried creating a…

Sanjay S B
- 259
- 2
- 15