436 questions
0
votes
1
answer
64
views
Hyperledger Fabric chaincode typescript deploy error "MissingRefError: can't resolve reference Object from id PatientModel#"
I'm working on a smart contract using Hyperledger Fabric with TypeScript. I have the following model
import { Object, Property } from 'fabric-contract-api';
@Object()
export class PatientModel {
@...
-1
votes
1
answer
231
views
Hyperledger Fabric Java Chaincode (Maven) Deployment Fails: "Address types of NameResolver 'unix' not supported by transport"
I am trying to deploy a Java chaincode on Hyperledger Fabric using the test network (fabric_test). My Java project is a Maven project and java version used is 11. I am running Hyperledger Fabric ...
-3
votes
1
answer
86
views
Previous hash and data_hash not matching in hyper ledger fabric
I am working on the fabric test network trying to fetch blocks by number and check the block hash, and i use fabric 2.5 with the new fabric gateway api. I insert a data and check the transaction for ...
0
votes
1
answer
110
views
On Mac M1, HyperLedger Chaincode install fails with error "dial unix /host/var/run/docker.sock: connect: no such file or directory"
I am trying to setup Hyperledger Fabric (v2.2.7) in Mac M1 Pro and using Docker Desktop v4.32.0. I was setting two organisation network. I was able to setup Peers, CA, Orderers in both Organisations ...
0
votes
1
answer
96
views
Hyperledger Fabric CA Certificate Error with Fabric Samples deployment
I was trying the steps mentioned for the deployment of Asset Transfer Basic Chaincode mentioned here.
https://github.com/hyperledger/fabric-samples/tree/main/asset-transfer-basic
I could deploy the ...
1
vote
0
answers
54
views
Getting error while invoking golang chaincode
I written following a hyperledger chaincode. I am storing medicine details in public state & order details in private state. Inside this contract I am getting medicine details, order details, ...
-2
votes
1
answer
87
views
Fabric on Kuberntes without chaincode as a service
It is possible to use external builders and launchers, but not to use ccaas, so I don't have to modify my actual chaincode and I could deploy it on K8s?
Is there any example with java script chaincode ...
0
votes
1
answer
190
views
Hyperledger Fabric CouchDB index not found
I am getting a Hyperledger Fabric CouchDB index not found error...
2023-09-17 23:48:58.084 UTC [chaincode] HandleTransaction -> ERRO 051 [ce5a14fc] Failed to handle GET_QUERY_RESULT. error: error ...
1
vote
0
answers
120
views
Cannot run peer because error when setting up MSP of type bccsp from directory: Fabric test-network
Good day
I am new to Hyperledger fabric (using version 2.5.3) and struggling with test network. I am trying to interact with the network using peer CLi. I was following steps shown in the tutorial for ...
-1
votes
1
answer
84
views
How to store Log File data on Hyperledger Blockchain?
I want to store Log file data on the private blockchain Hyperledger fabric.
Please tell me is it possible?
If yes, the what steps I need to follow? and what are the steps?
To store Log data Line by ...
2
votes
0
answers
155
views
Is it possible to use gRPC in hyperledger-chaincode and if so, how can I avoid errors during invocation on test-network?
I want to use gRPC in fabric chaincode to achieve cross-chain communcation instead of using fabric SDK.
But when I invoke chaincode function on fabric-sample/test-network, it always occurs errors.
...
2
votes
3
answers
1k
views
hyperledger fabric - "go": executable file not found in $PATH
I 'm new to Hyperleger Fabric and trying to done examples from Using the Fabric test network documentation. I'm stuck on the phase of starting a chaincode on the channel. I am getting error located ...
1
vote
0
answers
80
views
could not parse as a chaincode install package: did not find a code package inside the package external chaincode
I have setup a Two node Kubernetes network, Installed hlf-operator. Created 2 organisations network with channel "mychannel" and external chain code "mycc". Now I want to create a ...
0
votes
1
answer
171
views
Failed to deploy multiple chaincode on same peer in hyperledger fabric
I am trying to set up a hyperledger network with four different organizations and four peers (one from each organization).
I have to deploy two chain codes on all four peers. one is InsuranceChaincode ...
0
votes
1
answer
144
views
how to retrieve the validation details like valid or invalid transaction of all transactions in hyperledger fabric?
How to write a function in the chaincode to retrieve all transactions with validation details like valid or invalid in go lang? then I will call it from the peer container using invoke function.
I ...
0
votes
1
answer
117
views
Error: could not assemble transaction: ProposalResponsePayloads do not match (base64):
i run this function in chaincode under hyperledger fabric:
func (c *SmartContract) InitiateUser(ctx contractapi.TransactionContextInterface, userID string) error {
// Generate a new ECC key pair
...
-1
votes
1
answer
83
views
Can a chaincode in hyperladger have its own certificate for signing transactions? If it can, then how
The task is to transfer assets from fabric to another blockchain. For the unlock/lock token contract, it is necessary to come up with a place to store tokens for the time of their blocking. I decided ...
0
votes
2
answers
446
views
SyntaxError: Unexpected end of JSON input when trying to query transaction details from the hyperledger 2.2
I am trying to run a rewards example on .hyperledger 2.2. The contract is successfully packaged and deployed. I was also able to run the application successfully and enroll admin and user.
Chaincode ...
0
votes
2
answers
139
views
What is the life cycle of a Hyperledger Fabric chaincode?
I'm trying to understand the life cycle of a Hyperledger Fabric chaincode and how it's different from the life cycle of a traditional application. Can someone explain the different stages that a ...
-1
votes
1
answer
294
views
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) ...
0
votes
1
answer
233
views
How to interact multiple chaincode in go lang for hyperledger fabric
How to interact multiple chaincode in go lang for hyperledger fabric
how to call one function into another chaincode in hyperledger fabric
2
votes
1
answer
61
views
Using instances of generic types as return value type in a Hyperledger chain code written in GO
In my project, I am using a wrapper structure, that is defined similar to this:
type Wrapper[T any] struct {
Foo int
Data T
}
Additionally, my chain code offers a method with the following ...
0
votes
0
answers
3k
views
Error: the account XXXXXXXXXX does not exist
I have already run my hyperledger fabric network. So I have already registered, enrolled and put into couchdb wallet my users. Now I try to evaluate transaction 'ClientAccountBalance'. My node.js app:
...
1
vote
1
answer
182
views
calculating private data object's hash
I am trying to calculate the private data object's hash using sha256 hashing algorithm.
The requirement is to calculate the hash of private data object and match it with the hash stored on the ledger ...
0
votes
1
answer
61
views
Hyperledger Fabric Node SDK
Is it possible to develop the node SDK part of a Hyperledger Fabric project with a microservice Nodejs project or with a simple Nodejs project?