Questions tagged [hyperledger-fabric-sdk-js]

Use this tag for questions based on how to interact with ledger using NodeJS SDK, please don't use this for questions based on Fabric Infrastructure & chaincode related questions.

Hyperledger Fabric is the operating system of an enterprise-strength permissioned blockchain network. For a high-level overview of the fabric, visit http://hyperledger-fabric.readthedocs.io/en/latest/.

Applications can be developed to interact with the blockchain network on behalf of the users. APIs are available to:

  • create channels
  • ask peer nodes to join the channel
  • install chaincodes in peers
  • instantiate chaincodes in a channel
  • invoke transactions by calling the chaincode
  • query the ledger for transactions or blocks

The Hyperledger Fabric SDK for Node.js is designed in an Object-Oriented programming style. Its modular construction enables application developers to plug in alternative implementations of key functions such as crypto suites, the state persistence store, and logging utility. https://fabric-sdk-node.github.io/release-1.4/index.html

142 questions
1
vote
2 answers

Can we able to use npm modules in chaincode other than fabric-shim and fabric-contract-api?

Can we able to use NPM modules other than fabric-shim and fabric-contract-api in chaincode? If so how the packages will install while instantiating?
1
vote
0 answers

Failed to connect before the deadline with nodejs application on armv7 with Debian

I am using a beaglebone-black armv7 with a Debian image as an HLF nodejs client application. The application uses fabric-client, fabric-ca-client, fabric-network node modules and is built as a rest API called by the client (using curl for testing),…
1
vote
0 answers

How can I get an endorsement back from a specific peer?

Is there a way to get endorsements back from specific peer(s) after submitting a transaction in Hyperledger fabric, using contract.submitTransaction() or channel.sendTransaction()? So far the endorsements always seem to come back from the same peer…
vango
  • 11
  • 1
1
vote
1 answer

Regarding How front end application access the wallet in hyperledger fabric

In Hyperledger fabric Is it Wallet will save in user device like mobile and laptop and how front end will use the wallet if it store user device? Thanks in advance
Abhirock
  • 425
  • 6
  • 17
1
vote
1 answer

how to insert new records in peer and extracting those records?

Getting error while fetching data from a peer in fabric and unable to resolve the issue. Tried to insert new records in one of the peers which I have created and has entered the code, where I didn't receive any response and cursor is moved to next…
1
vote
1 answer

How can I send the update channel configuration request to the Orderer using node SDK?

There are 03 main phases in the process of updating the channel configuration: (1) Get the latest configuration from the Orderer. (2) Modify the configuration. (3) Sign and send a transaction to the Orderer to update channel configuration. I got…
Hnampk
  • 517
  • 6
  • 17
1
vote
2 answers

Hyperledger Fabric 1.4: Getting an error while trying to connect ChannelEventHub.connect(true). Error: Error connect the ChannelEventhub to peer

This is a follow-up Question to the one which I asked previously(here) and I am trying to implement the solution suggested by @david_k. I am using the Fabcar example as a base and building up on that. I ran the startFabric.sh, I got the message…
1
vote
0 answers

Question regarding user enrollment using Fabric-CA node sdk

I have created my fabric network which includes 2 Orgs having 2 peers each and used Fabric-CA for generating crypto material for peers and orderer. how to enroll and register users which will do the transactions (invoke/query the ledger) using…
1
vote
1 answer

Error when Creating Channel Using Hyperledger Fabric Node JS

I'm trying to create a channel with the Fabric SDK node.js. When I create the channel through the bash commands, I have no problems (you can see the code below), but when I use the node.js SDK I got some errors. I am using TLS and client…
1
vote
5 answers

Hyperledger fabric chaincode: function calling another function from within chaincode?

I have a scenario where I need to call a some other(say query) function from a chaincode function (say update). Does hyperledger fabric provide any interface for this. Eg: ... async query(stub, args) { } async update(stub, args) { …
1
vote
1 answer

MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority

I have created Two Node. Node1 has Peer0.org1, CA and Orderer Service and Node2 have Peer0.org2 and Peer0.org3. I can invoke and execute a query using fabric-client from peer0.org1 but When I tried same from peer0.org2 and peer0.org3 it's not…
0
votes
1 answer

Hyperledger Fabric Rollback() function in v2.4

There is any rollback function in Hyperledger Fabric v2.4? If exists then where we call it in Api side or chaincode side? It's possible to rollback in Chaincode in Javascript like in chaincode hyperledger fabric there was a…
0
votes
1 answer

[ServiceEndpoint]: ServiceEndpoint grpcs://localhost:7050 reset connection failed :: TypeError:Channel credentials must be a ChannelCredentials object

I set up a Hyperledger Fabric 2.2 network successfully but unable to query/invoke assets through nodeJs SDK. The node version I am using is 16. I think the issue is with grpc most probably. I was able to create assets when I was using node version…
0
votes
1 answer

Hyperledger Fabric2.4.7 testnetwork- how can I read an other Orgs implicit private data collection

Now, I am using the fabric 2.4.7 version of the test network on ubuntu20.04. This network has an order node and two peer nodes peer0.org1 and peer0.org2. I tried to use implicit private data collection, using the default configuration. According to…
0
votes
1 answer

I am trying to run hyperledger fabric sample test network on windows 11

when executing "/network.sh up", I got this: -bash: /network.sh: no such file or directory how can I fix this? I need to get the network up