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
0
votes
0 answers

How could I handle the Err of TLS certificate with fabric-sdk-node

I'm trying to build a web front end of a fabric-network, and after I completed the registerAdmin and registerUser, I got err when I was tring to run my js code. root@oyu-virtual-machine:~/hyperledger-fabric/test/webapp# node get.js Load privateKey…
0
votes
1 answer

How to make connection between Fabric Node SDK and Fabric network, when deployed on different hosts?

I am testing Running a Fabric Application tutorial. I deployed network on one host (let's say: HOST1). Then, on another host with different ip address (HOST2) I wanted to run application (like in tutorial). To do this, I copied connection profile,…
0
votes
1 answer

How to use a fabric 1.4 wallet with fabric node sdk 2.x

I have an existing Hyperledger Fabric network v1.4 and I am trying to connect to the network using Fabric node SDK 2.2.x. Every time I try to connect I get an error Error : Pem Encoded certificate is required The requirement that I have is that the…
0
votes
2 answers

Failed to connect before the deadline on Endorser

connection-profile.yaml { "name": "network", "version": "1.0.0", "client": { "organization": "Freight", "connection": { "timeout": { "peer": { "endorser": "300" …
0
votes
2 answers

How to implement Hyperledger Fabric using Nodejs

We have created AWS managed blockchain network (Hyperledger Fabric). And I wanted to connect and create a simple transaction over this network. Lets say university user updated student marks in the system. I am totally new to blockchain and…
0
votes
1 answer

Error: No valid responses from any peers. Errors: peer=undefined, status=grpc, message=Endorsement has failed

I m working on hyperledger blockchain and Kubernetes(minikube) on Ubuntu 18-04. In my network there two Organisations with one peer each and the orderer type is Solo. This whole network I deployed on minikube. Chaincode install and instantiation did…
0
votes
1 answer

How to make fabric-network addBlockListener reconnect automatically when losing connection to the peer?

Using the fabric-network NodeJS sdk v2.2, I'm implementing a block listener that has to catch all blocks and parse them. It should be resilient and automatically reconnect when the peer goes down or is unreachable for a moment. In previous versions…
arne
  • 11
  • 1
  • 3
0
votes
2 answers

Error: Configuration must be a connection profile object or Client object

I am trying to connect to a peer of the network via fabric-network SDK 2.2. I have taken as starting point the connection profile provided in here, modified to my network setup and try to connect, but got the error in the title. As test, I have…
ACaruso
  • 53
  • 6
0
votes
0 answers

How can I enforce an endorsement policy using discovery in nodejs?

I'm using hyperleger fabric V1.4.4, I'm trying to enforce an endorsement policy including 2 organizations when upgrading, but when I do, The discovery service starts failing and the policy gets lost. I verified that the anchor peers have been…
Ana Franco
  • 1,611
  • 3
  • 24
  • 43
0
votes
0 answers

No discovery results found and Endorsement has failed

I have modified the fabcar example to save my own data from an external API in the fabric version 1.4.4. Now I have upgraded the fabric to 2.2, and when I am trying to submit the transaction I am facing the error below. Error: No discovery results…
0
votes
1 answer

Signature set did not satisfy policy :- Issue in updating anchor peer

I had created a network with two organization(Org1,Org2) in the channel using the fabric version 1.4.4.I have added one more organization to the channel.After adding the new organization to the channel,I am trying to update anchor peer based on this…
0
votes
1 answer

Issue in creating anchor peer for the organization

I had created a network with two organization(Org1,Org2) in the channel using the fabric version 1.4.4.I have added one more organization to the channel.After adding the new organization to the channel,I am trying to update anchor peer based on this…
0
votes
0 answers

Hyperledger 2.1 with Node SDK: Can't invoke the chaincode

I am using Hyperledger Fabric 2.1 container in server-1 and node SDK in server-2. My connection-org.json file is given as: { "name": "first-network-org2", "version": "1.0.0", "client": { "organization": "Org2", …
0
votes
0 answers

Access hyperledger fabric with CURL

I have modified the fabcar example to get the data from an external API and store it blocks and it is working fine while running from terminal. Now i have to develop a front end which needs to do a login and have to get the running status for which…
0
votes
1 answer

How to setup REST server to communicate with Hyperledger Fabric consortium on Azure Kubernetes Service (AKS)

I set up hyperledger fabric on Hyperledger Fabric consortium on Azure Kubernetes Service (AKS) . I have installed this chaincode on the network. I have tested peer invoke and peer query command on azure-cli. It is working properly. Now I want to…