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

fabric-sdk-node fails to retrieve the context of an existing user

I've got some problems while calling the function getUserContext(name, checkPersistence), so far I know it fails only when I try to get the context of an existing user, but it does work with non existing users. The code I use to create the…
2
votes
0 answers

Timeout expiry while executing a heavy transaction in chaicode of hyperledger fabric

I have cloned the fabric samples repository and am running the byfn script to build the first network. I am using the node js SDK for application development. I have written a chain code function which does a time-consuming computation and the…
2
votes
1 answer

Identity management on Hyperledger Fabric

I am using Hyperledger fabric 1.4.1 and the latest versions of fabric-contract-api for the smart contracts, fabric-client for the low level APIs to manage channel creation and chaincodes, and fabric-network for interaction with the peers. I have…
2
votes
0 answers

Hyperledger Fabric SDK connection profile configuration in production mode

I was going through the Hyperledger fabric Node SDK tutorial to use a common connection profile given here. In connection profile, there was some sensitive information such as adminPrivateKey and signedCert that are reserved for organization…
2
votes
2 answers

Setting PEM attributes for user identities in Hyperledger Fabric

I have a single-org setup running with one Fabric CA. CA Server is running with MySQL. I'm using NodeSDK to connect and issue transactions to chaincode. I'm able to set Country, State, Locality, Organisation and Organisation Unit attributes for the…
2
votes
1 answer

Hyperledger fabric client credential store using CouchDB

I am using Hyperledger Fabric SDK for node.js to enroll a user. I am 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…
1
vote
1 answer

Hyperledger Fabric: Get Block Data for all blocks

I just set up a Hyperledger Fabric network (2.2) with chaincode(node js) for me and my team. We are using Hyperledger SDK for NodeJS (Version 2.2) for network interaction. Now the problem is, we need to query block data for all transactions in the…
1
vote
1 answer

is it possible to prioritize orderer when submitting transactions through fabric-sdk-node?

I'm writing a fabric client application using nodejs and the latest fabric-network library. I have setup multiple orderer nodes running in VMs and want to prioritize which orderer node to be used when submitting transactions. I wrote my own…
1
vote
1 answer

Hyperledger-fabric-node Error: 14 UNAVAILABLE: failed to connect to all addresses

I'm trying to build a front-end for my fabirc network by fabric-sdk-node, but got some err. Here is my err message. root@oyu-virtual-machine:~/hyperledger-fabric/test/webapp# node get.js Load privateKey and signedCert Get History Assigning…
1
vote
2 answers

How to get txid after successful invoke operation | hyperledger fabric 2.x

In HLF 1.4 I can get transaction id after successful invoke operation. But In HLF 2.x I am not getting txid. I can see the data which I submitted to hlf in state database (couch db). Then why I am not getting txid. Here is last line in…
1
vote
2 answers

IdentityService's delete function returning {“code”:56,“message”:“Identity removal is disabled”} in Hyperledger Fabric Node SDK

I'm making a block chain application using Hyperledger Fabric Node SDK, and in it I have to implement the functionality of deleting a user's account. Below is my code for this: // Revoke the user, then delete the user from wallet. await ca.revoke({…
1
vote
1 answer

Facing issue "DiscoveryService: basic error: failed constructing descriptor for chaincodes" while submitting transaction through Nodejs SDK

I am running the Fabric network on the docker swarm. I am able to perform transactions and queries through CLI but facing this issue when invoking the transaction from the NodeJS SDK. I am using the test-network provided in the fabric sample with…
1
vote
0 answers

Why containerized version of HL Caliper is always trying to connect to localhost?

When I try to run a containerized version of Caliper I always get an error message stating that the attempt to connect to the orderer failed unlike happens if I try to run a non containerized version of Caliper in the host machine where Hyperledger…
1
vote
1 answer

How to send transactions async or batch send in Hyperledger Fabric using fabric-sdk-go

I want to make many txs on fabric chaincode, how to call it async or in batch? While I only found channelClient.Execute channelClient.Query method, it send txs one by one and wait until tx is committed in block.
1
vote
1 answer

How can I register a Client through an express REST API in Hyperledger fabric

I want to register a user of the application through a REST API. I have already enrolled the admin and a user through the enrollAdmin.js and registerUser.js function but I want to call these functions through the node SDK and register users…
JonasLevin
  • 1,592
  • 1
  • 20
  • 50
1
2
3
9 10