Questions tagged [hyperledger-chaincode]

448 questions
-1
votes
1 answer

Spining up couchdb in hyperledger fabric

How to spring up couchdb in Hyperledger fabric in development mode for chaincode because by default its takes leveldb as a state database. So in order to perform rich queries couchdb has to be used as state database (I am following Hyperledger…
-1
votes
1 answer

How to query all the states from ledger whose key starts with character particular character in hyperledger fabric chaincodes?

I want to query all the values saved in the blockchain whose key starts with charcter 'O' and retrieve the list of them.
Hrishabh
  • 31
  • 5
-1
votes
1 answer

Hyperledger Fabric v1.1 and Java Chaincode

I'm working on a project that requires that I use version 1.1 of Hyperledger Fabric. Is it possible to plug Java chaincode in this version? I know Java chaincode started to be supported only in version 1.3 but is it possible to plug it in version…
-2
votes
2 answers

Not able to get the value of a custom attribute in hyperledger-fabric using cid.getAttributeValue function

Other than the 3 attributes hf.EnrollmentId, hf.type and hf.Affiliation, I've created a custom attribute named email and added it as attrs:[{name: 'email', value: rahul18@gmail.com, ecert: true}] and it was successfully added to the attribute…
-2
votes
2 answers

HYperledger Fabric Building First Network

While trying to build the first network with Windows this error keeps coming! Error: Failed to get client TLS config: Failed to read…
-2
votes
1 answer

Reporting without chaincode on hyperledger fabric peer

Can we implement a channel between two peers and initiate a transaction just to store data without any chaincode or smartcontract? If yes any example
-2
votes
1 answer

Failed to invoke chaincode name:"scbcch" , error: timeout expired while executing transaction

I am trying to fetch data from blockchain using query in chaincode. I have invoked around 2,50,000 records in blockchain and trying to fetch the data using query. When i run the chaincode and get the peer logs, I am getting the below error. failed…
-2
votes
1 answer

Cannot instantiate this java chaincode

I'm trying to deploy a Java based chaincode in "first-network" sample. The code is generated with IBM Blockchain Platform plugin for VSCode. It works in the local environment (Using the VSCode plugin to install, invoke,...), but when I try to test…
-2
votes
1 answer

Cannot use (type []map[string]interface {}) as type []string in field value

How to store Array of JSONs (in string format) in []string (individual JSON string in each index of string array) ? package main import ( "encoding/json" "fmt" ) type StructData struct { Data []string `json:"data"` } func main() { …
user12355116
-2
votes
2 answers

Restrict invoke access for members at fabric chaincode level

I am trying to restrict invoke access for members dynamically in chaincode level and had found this method in a tutorial "stub.GetCallerCertificate" but getting an error. Error:stub.GetCallerCertificate undefined (type shim.ChaincodeStubInterface…
-2
votes
1 answer

How to count number of record filtered by selector

I'm making smart contract with Go and I want to use Rich Query to get total count of records from CouchDB filtered by some selector like: {\"selector\":{\"doc_type\": \"person\"}} It is similar to: select count(*) from tb where ... as SQL query but…
Chhaileng
  • 2,428
  • 1
  • 27
  • 24
-2
votes
1 answer

Hyperledger Fabric Go Chaincode - Signing inside chaincode code

I'm working on Hyperledger Fabric with Golang Chaincode and I have the following question. Is it possible to have each endorser sign something in the code of the chaincode? For example: I have a client proposing a transaction and I want to not only…
1 2 3
29
30