Questions tagged [hyperledger-chaincode]

448 questions
-1
votes
1 answer

How to create hyperledger fabric singleton gateway object using node js sdk?

We have a existing client application is made of fabric node js sdk to interact with blockchain network. It creates the gateway object and disconnect for every transaction. Can we reuse the gateway object somehow so that burden of creating and…
-1
votes
1 answer

while writing a Chaincode (Hyperledger-fabric) in Golang I am confused while fallowing documentation

I am confused ,when I am following fabric-samples (asset-transfer-basic --->https://github.com/hyperledger/fabric-samples/blob/main/asset-transfer-basic/chaincode-go/chaincode/smartcontract.go) for writing smart contract in Golang , the methods…
-1
votes
1 answer

Error adding to wallet. TypeError: FileSystemWallet is not a constructor

i have the written the chaincode and for that to interact with the frontend like express.js i need to add identities of the organizations of which peer i need to interact and i am getting the below error when i try to add identites Error adding to…
-1
votes
1 answer

Deploying chaincode from tutorial on hyperledger fabric throws error

I've been following the hyperledger fabric tutorials and the asset-transfer-basic chaincode is not being deployed properly. My fabric version is 2.2, and my golang version is 1.18.x . I've run this command : ./network.sh deployCC -ccn basic -ccp…
-1
votes
1 answer

Hyperledger Fabric: CreateChannel Issue version-2

fabric fabric-samples/test-network createChannel failed [1]: https://i.stack.imgur.com/tJLk3.png
-1
votes
2 answers

Error: failed to normalize chaincode path: 'go list' failed with: Use -buildvcs=false to disable VCS stamping.: exit status 1

I am follownig this tutorial - https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/get-started-chaincode.html - when i am using this command - docker exec cli peer lifecycle chaincode package ./abstore.tar.gz --path…
-1
votes
1 answer

How to read a ledger file of a local Hyperledger Fabric?

I have already start a local Fabric network 2.2 by following the official guide (fabcar project). This is the output of docker ps -a: docker ps Now, I have these questions: Where is the ledger file which stores the transaction history? How can I…
-1
votes
1 answer

How a chaincode consist with multiple smart contracts in go lang

How a chaincode consist with multiple smart contracts in go lang? for the go only has one main function.
touchingsoil
  • 173
  • 1
  • 1
  • 8
-1
votes
1 answer

What is chaincode's transaction count

This is what my network setup. peer1.org1.example.com peer1.org2.example.com peer0.org1.example.com peer0.org2.example.com ca_peerOrg2 ca_peerOrg1 orderer.example.com After instantiation of my chaincode, I am getting transaction count as 0 in…
-1
votes
1 answer

Is there any way to send data from one chaincode to other chaincode in hyperledger fabric 2.0?

I'm working on a project using hyperledger fabric 2.0. I have two chaincodes named deed.js and bor.js. Both the deed.js and bor.js are installed on the same channel. I have taken some input in deed.js chaincode which is to be passed as input to…
-1
votes
2 answers

Smart contract upgrade timeout on hyperledger fabric

When upgrading a smart contract the following error occurs: Failed to invoke chaincode name:"lscc", error: timeout expired while starting chaincode couponcontract:8 for transaction As this is an lscc error could anyone help on how to debug or…
-1
votes
1 answer

could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1

I have created chain code package Then I have installed ccpack.out peer chaincode install ccpack.out when I instantiate that time I got Error:could not assemble transaction, err proposal response was not successful, error code 500, msg…
iamve7254
  • 11
  • 1
  • 5
-1
votes
3 answers

How to update the affiliation and attribute of member using fabric node

I have fabric network setup with 2 organisation and 2 fabric ca, I have register and enrolled the user. 1. How i can update the affiliation of user, I am trying to call the getCaName from node js and reenroll its doest not work. 2. How to change…
-1
votes
2 answers

how to set offset and limit while fetching records from chaincode in hyperledger fabric v 1.4 using nodejs chaincode?

I have more than 500 records in my blockchain network and i want to write a chaincode for the pagination on frontend. I have used getQueryResultWithPagination and getStateByRangeWithPagination but my concern is that i want to fetch records starting…
-1
votes
2 answers

Hyperledger Fabric in Kubernetes: Not able to instantiate chaincode

Hello Everyone i am working on setup of fabric default first-network in kubernetes. But when i am instantiate the chaincode it gives me error. Please check below are my peer logs. 2019-07-22 07:25:02.134 UTC [endorser] SimulateProposal -> ERRO…
1 2 3
29
30