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

What is the best way of storing the clients registration information off-chain in hyperledger fabric

I want to create an application with the Hyperledger fabric network and I'm unsure what the optimal way of processing and storing the clients information is. It is important for me that the personal information get stored off-chain to not slow down…
JonasLevin
  • 1,592
  • 1
  • 20
  • 50
1
vote
1 answer

Hyperledger fabric-network SDK [[{"code":56,"message":"Identity removal is disabled"}]]

I created a sample project using IBM Blockchain Platform. I am trying to deregister a user using the default admin indentity : identityService.delete(userName, adminIdentity, true).then(function() { wallet.delete(userName); }); I keep getting…
1
vote
3 answers

failed constructing descriptor for chaincodes

I am trying to do a transaction from the user but when I am trying to get the channel then I am getting this error: Microservice Logs: error: [DiscoveryService]: send[mychannel] - Channel:mychannel received discovery error:failed constructing…
Paradox
  • 327
  • 3
  • 19
1
vote
1 answer

EventService timed out after:3000

I'm invoking my chaincode via node-sdk by queueing the submissions via the async package. However, I very often get a error: [EventService]: EventService[org1-peer1] timed out after:3000. There's no additional information at the peer's log. The…
haggis
  • 407
  • 2
  • 20
1
vote
1 answer

Node SDK v2 Gateway cannot connect to peer

I've got a running testnet with mutualTLS in a Kubernetes cluster. The setup works as I can flawlessly use the CLI to invoke and query chaincode. In Node, however, I can enroll the identity but I'm not able to do a gateway.connect(...)…
haggis
  • 407
  • 2
  • 20
1
vote
1 answer

When trying to access Hyperledger Fabric identity provider context, roles and affiliation are null

My application flow requires that I am able to check an identity's role on the network end. When I register a new user, I set that user's role, affiliation, etc. via the Fabric CA. The role I set does seem to determine chaincode invocation rights,…
1
vote
1 answer

Hyperledger fabric Endorsement policy in fabric nodesdk

I have implemented fabric sdk to install and instantiate the chaincode. Everything is working fine, but not able to figure out the correct to implement endorsement in fabric nodesdk Here is the endorsement policy which i have used while using…
1
vote
2 answers

Hyperledger Fabric javascript chaincode read transient data

I am passing a json object from hyperledger fabric node application and converting it to buffer as shown below: const transientData = (transient && transient.length > 0) ? {data: Buffer.from(JSON.stringify(transient[0]))} : null; this transientData…
1
vote
1 answer

TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received type undefined

Im trying to install chaincode using fabricsdk in nodejs. installchaincode function throwing the below error: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received type undefined Below is the…
1
vote
1 answer

Channel:mychannel received discovery error:access denied for role `member`

I am trying to understand correlation of policies (org, application & channel) with identities, MSP and NodeOUs in complete process flow of hyperledger fabric. I am sharing my understanding, please correct me if I am wrong. Presently, hf support 4…
1
vote
1 answer

Error registering user in Hyperledger fabric v 2.0

I'm trying hyperledger fabric sample(v2.0). My basic network is running fine and i'm able to enroll the admin. however when i tried to register a user, its throwing an error like "Failed to register user "user1": TypeError: gateway.getClient is not…
1
vote
2 answers

Hyperledger Fabric Node.js client application deployed on different server

I am struggling with Node.js Hyperledger Fabric client library on this particular error: I've got my blockchain network (Hyperledger Fabric 1.4) deployed on one server with IP and all needed ports visible from another server. All the examples /…
1
vote
1 answer

fabric-ca-client cannot find ./utils.js

I'm trying to test out the fabcar example from IBM (https://github.com/IBM/fabcar-blockchain-sample). This is something that I've done before on my computer and it worked. I have installed windows-build-tools and can see that Python 2.7 is…
1
vote
1 answer

Hyperledger Fabric Node.js SDK: Issue with offline transaction signatures

I am trying to follow this tutorial: https://hyperledger.github.io/fabric-sdk-node/release-1.4/tutorial-sign-transaction-offline.html I created a complete Hyperledger Fabric network using this…
1
vote
1 answer

Hyperledger Node SDK - Handshake failed with fatal error SSL routines:tls_process_server_certificate:certificate verify failed

I am following this git repository to setup node SDK for hyperledger network: https://github.com/hyperledger/fabric-sdk-node. I was able to invoke/query a transaction through CLI. But, when I tried the same using Node SDK, I could not add a peer to…
1 2
3
9 10