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
1 answer

fabric sdk connection profile adding the new organisation and installing chaincode

I am using Hyperledger fabric in one of our project. I am using fabric sdk which acts like client to Hypereledger network and server for frontend. Now Lets say, I am running the fabric network with 2 organisation, and i am hosting fabric sdkjs, i…
0
votes
1 answer

How to add new organization using nodejs SDK for hyperledger fabric network

I am newbie to Hyperledger Fabric. I need to understand how to add new organization to the hyperledger fabric network using nodejs sdk. TIA. Regards, Heero Punjabi
0
votes
1 answer

Hyperledger Fabric: Calling Python script from chain code written using Node SDK

I'm developing an application using Hyperledger Fabric wherein an application written in nodeJS calls a chaincode function also written in nodeJS. This chain code function should call a Python script, do something and written the results to the…
Coder
  • 79
  • 2
  • 9
0
votes
1 answer

Hyperledger fabric client credential store using couchdb(CouchDBKeyValueStore)

I'm using Hyperledger Fabric SDK for node.js to enroll a user. I'm using this code to deploy in fabric. It uses FileKeyValueStore (uses files to store the key values) to store client's user credential. I want to use CouchDBKeyValueStore to store…
0
votes
2 answers

Connecting remote fabric network with client application

I'm trying to connect client application to fabric-network deployed on remote cloud instance using fabric node SDK. For this, I modified my connection profile with IP address of deployed instance. Everything works fine until submitting transaction…
0
votes
1 answer

Common connection profile is missing this client's organization and certificate authority

I'm getting Failed to register user user1: Error: Common connection profile is missing this client's organization and certificate authority when trying to register a user in Hyperledger Fabric network. I'm using fabcar sample. I can register an…
0
votes
1 answer

Hyperledger Fabric 2.0, Can't Access Fabtokens of Users Using Node.js SDK

I'm trying to issue some Fabtokens to users and then use them in various scenarios such as transferring, redeeming, etc. I follow the Node SDK documentation here: https://fabric-sdk-node.github.io/master/tutorial-fabtoken.html This is how they do…
0
votes
1 answer

When Submitting transaction from fabric client application, from which peer SDK will actually submits transaction to the network?

Im going through Hyperledger Fabric web App development.Im still confused with fabcar nodejs example where chaincode is deployed on first-network( total of 4 peers). After we run startFabric.sh we are able to query or submit transactions with…
0
votes
0 answers

Hyperledger fabric with node gives me You've asked to invoke a function that does not exist

I created a chaincode in hyperledger fabric using the "first-network" as a local blockchain to deploy my contract, I tested it, it worked great, loved it, and then I decided to add a new method to my contract, nothing complex, a simple query. My…
0
votes
1 answer

How to connect Node SDK to chaincode dev mode?

Following these instructions: https://github.com/hyperledger/fabric-samples/tree/release-1.4/chaincode-docker-devmode I am able to successfully use peer invoke cli commands in devmode, however the sample Node.js code assumes it deployed with gateway…
atkayla
  • 8,143
  • 17
  • 72
  • 132
0
votes
1 answer

HLF fabric-network fails to connect to IBP2 peer from node-red

I am currently using IBM Blockchain Platform 2.0. I am connecting to it with fabric-network 1.4.0 and fabric-client 1.4.0. When I listen for events from a simple node.js script on my machine, it works perfectly well. Here is the sample script: const…
Itération 122442
  • 2,644
  • 2
  • 27
  • 73
0
votes
2 answers

Calling register endpoint failed with error [Error: self signed certificate]

I am trying to follow the hyperledger fabric tutorials [1] and get the Node.js SDK running with my network. I have already successfully enrolled the admin on my ca server, however, when trying the next step (registering a new user), I get an error…
0
votes
0 answers

implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied

whenever I try to create the channel after running the Network I face this error. however, if prune the fabric and restart my pc and then again create the channel after running the fabric error has gone. But I am not able to debug the error.
0
votes
1 answer

Connection profile with IBP 2.0

I have created an application with IBP 1 and the nodejs SDK for fabric. It works fine. IBP1 is becoming "deprecated" and I am switching to IBP2. However, there are major differences with the connection profile "functionality". In IBP 1, you just had…
0
votes
1 answer

Cannot find specific SDK function for Fabric CA

I want to create a dashboard for identity management using Hyperledger Fabric. I know how to use fabric-client and fabric-network to call the FabricCAServices object and register and enroll new users. However I am unable to access other functions…