Questions tagged [hyperledger-chaincode]

448 questions
0
votes
1 answer

How to setup all the necessary certificates for Node.js Hyperledger client with mutual TLS enabled?

Any help would be very appreciated. I'm trying to setup a Node.js client to perform transactions. TLS is all the way enabled. I have no problems invoking the code and performing transaction using fabric-tools docker container. However, I'm not…
0
votes
1 answer

Hyperledger Fabric invoking chaincode from Node.js using user artifacts generated by configtxgen. How?

If I understand things correctly, Node.js client examples enroll users, create wallets and then utilize these newly generated identities to perform transactions. At the same time examples for fabric-tools/CLI utilize identities/users generated with…
0
votes
3 answers

Hyperledger Fabric - How to clear out the DEV environment after each blockchain network test?

Fabric 1.4.3 version. Blockchain network with 1 Oderer (solo) + 1 Org, running on Docker. Trying to instantiate chaincode, due to PANIC error on PEER0, and peer crashes. Impossible to instantiate chaincode, because PEER0 crashes doing the…
0
votes
2 answers

Hyperledger Fabric: how to view debug output of Java chaincode in real-time?

Inside my Java chaincode I have the following lines: private static final Logger logger = LogManager.getLogger(Working.class); // chaincode logic... } catch (Throwable e) { // some exception handling... logger.error(e.getMessage(), e); …
0
votes
1 answer

./byfn.sh up -l node failed

Hi~ I am playing with the first-network sample. But when I try to run the command ./byfn.sh up -l node, I always get the error returned from logs as below. Instantiating chaincode on peer0.org2... + peer chaincode instantiate -o…
0
votes
1 answer

Hyperledger 1.4.6: Node.js chaincode instantiate fails with 1 "cp: cannot stat '/chaincode/input/src/.': No such file or directory

I'm trying to instantiate the code using fabric-tools. The peer runs on Container Optimized OS in Google Cloud. Install works (sorry maybe some parameters are not necessary): docker exec -e \"CORE_PEER_LOCALMSPID=${ORGANIZATION^}MSP\" ^ -e…
0
votes
1 answer

composer network install instruction giving Erorr: Error trying install business network. Error: No valid responses from any peers

I am trying to install a network using Hyperledger Composer but I am getting some errors. I used the following instruction composer network install --archiveFile vote-network@1.0.0.bna --card PeerAdmin@hlfv1 and its giving me this error... ✖…
0
votes
4 answers

Error when installing chaincode - failed to calculate dependencies: incomplete package

I am try to installing Chaincode, follow the tutorial of hyperledger. But when I try to run the command peer chaincode install -p chaincodedev/chaincode/sacc -n mycc -v 0 The terminal gives error message Error: error getting chaincode deployment…
Decbelief
  • 3
  • 1
  • 2
0
votes
1 answer

Not able to do the invoke transaction from Java SDK for the BYFN in Fabric

I have been trying out to invoke and querying transactions from the Java SDK for the BYFN network in Hyperledger Fabric v1.4.4 So far i have started the network (which has two peers in two orgs, an orderer and chaincode mycc installed). The network…
Skadoosh
  • 699
  • 2
  • 11
  • 27
0
votes
1 answer

behavior of chaincode during runtime

Currently learning a bit about chaincode development using GO (recently worked with ethereum). I have the following code: type Person struct { name string // assume json fields for marshaling etc. lastname string // ... SSN string // …
0
votes
1 answer

How to calculate average price with FabCar

I'm using the fabcar project (https://github.com/IBM/blockchain-application-using-fabric-java-sdk) I added "Price" as a new argument for the car structure. I would like to obtain the average price of cars in my blockchain network. Is there any go…
0
votes
1 answer

HL fabric gateway:submit transactions to orderers asynchronusly

Currently ,in fabric gateway API when we submit the transaction using APIs provided by TransactionImpl ,inside commitTransaction method of TranscatioImpl it creates commitHandler on network and transaction Id and after sending the transaction to…
0
votes
2 answers

HyperLedger Fabric history transaction with key

I'm using the fabcar project: https://github.com/IBM/blockchain-application-using-fabric-java-sdk I would like to know if there is a way to get the transaction history with a certain key (Not just querying a simple car o listing all of them. Thank…
0
votes
0 answers

cannot read block number 3 from ledger, because Entry not found in index, skipping...?

I've created a network with 2 orgs each one with 2peers and 1ca While instantiating the contract: I get these errors and warnings for all peers: peer0.org1.example.com|2020-01-31 18:04:41.664 UTC [gossip.state] handleStateRequest -> ERRO 071 cannot…
0
votes
1 answer

signature set did not satisfy policy

I've created a network with 2orgs each one with 1peer and 1ca After setting the EnableNodeOUs:true, I instantiate the contract with "AND ('Org1MSP.peer','Org2MSP.peer')" which works fine. Same for "AND ('Org1MSP.member','Org2MSP.member')". But…