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
2 answers

Dynamic Channel artifacts(channel.tx) in Hyperledger Fabric

Is there any other way to generate a generic channel artifacts(channel.tx) for Hyperledger-Fabric channel creation, So that a channel name alone can be changed at runtime instead of issuing the below command with different channel name for every new…
0
votes
1 answer

Assigning peer context for a Hyperledger Fabric web application

Disclaimer: I have no prior experience in software development whatsoever and am tasked to develop a blockchain application since 4 months ago. Please forgive my lack of knowledge regarding most thing. I am currently building a web application to…
0
votes
1 answer

Hyperledger Fabric-sdk-java unable to connect with orderer(No subject alternative DNS name matching localhost found)

I am using balance-transfer sample to spin up a fabric network. The sample has generated crypto-material. I am using the same references of artifact folder and network-config.yaml in my Fabric-SDK-JAVA integration. I am able to enroll/register…
0
votes
3 answers

How to install chaincode using fabric sdk (fabric-client)?

Based on the package definition listed here https://fabric-sdk-node.github.io/master/tutorial-chaincode-lifecycle.html const package_request = { chaincodeType: 'golang', goPath: '/gopath', chaincodePath: '/path/to/code', …
0
votes
2 answers

hyperledger fabric discovery service failing endorsement

Hello everyone i am trying to use service discovery with the node js client to generate transaction proposals, the problem i am having is that when discovery generates the endorsement plan it sends the proposals to the same peer and fails to…
0
votes
1 answer

List all channel in Hyperledger Fabric network using NODE SDK

How can i get the list of all channels in an Hyperledger Fabric network? If not possible, can i list all the channels that a particular organization has joined. I know i can use the queryChannels API of Client class to get the list of channel a…
0
votes
2 answers

How can put a Permission on function in NODE-SDK of Hyperledger Fabric?

In ChainCode development, When to have a Multiple organization in the network, In case only a specific Organisation can call a specific function of chain code. Is it possible in Node-SDK of hyperledger Fabric? if possible then How can implement in…
0
votes
0 answers

Hyperledger Fabric 1.4: Error Instantiating Chaincode (Node) with Internet Connectivity

The problem in hand is that we want to deploy a blockchain network on a server that is not connected to the internet. When Instantiating the chaincode on a Peer it fails as it requires the fabric-shim package to be downloaded which is used for the…
0
votes
1 answer

hyperledger fabric CA and Softhsm

I configured hyperledger fabric CA server with softHSM. And i am using fabric node sdk when enrolling new user. But i didn't know where are private keys located (generated). I already checked: CA server's docker container's msp/keystore…
0
votes
2 answers

Error: access denied for [JoinChain][mychannel]: [Failed verifying proposal's creator satisfies MSP policy [Admins]: [This identity is not an admin]]

joinChannel.js gives the following error: Successfully loaded peeradmin from persistence { block: { header: { number: [Object], previous_hash: [Object], data_hash: [Object] }, data: { data: [Array] }, metadata: {…
0
votes
1 answer

Policy error while adding organization dynamically through NodeSDK

I am trying to add organization dynamically to the channel through NodeSDK. I have followed the below steps: - Extract channel configuration which returns in the protobuffer - Convert it into json so as to read it - Modify the json - Encode it into…
0
votes
1 answer

Does HLF 1.2 service discovery work with HLF 1.1 peer?

I have a network stuck on 1.1 IBP Enterprise with a peer on cloud. I have another 1.2 peer on a different machine on-prem. I read about the new Fabric 1.2 service discovery functionality, which sounds very handy. As I understand, this will allow me…
0
votes
1 answer

why channel.getPeers() does not return all peers and only some of them?

I have a network of 12 peers (6 orgs each one has 2 peers) but once I'm trying to retrieve all channel peers in node js app by using channel.getpeers() only it returns 2 orgs peers and I have to manually add the rest then send the proposal through…
Plato
  • 16
  • 4
0
votes
1 answer

sendTransaction Fails when it's invoked after the network is idle for 15-20 minutes

I have a hyperledger fabric network deployed in GCP. I use fabric node sdk to communicate to the network. When there's no activity between sdk and network, If i try to invoke the chaincode, the API call fails at sendTransaction to the Orderer with…
0
votes
2 answers

Issue in starting up Hyperledger Explorer

I have created a multipeer network. I have created 3 orgs StancOrg , StancOrgA ,StancOrgB.Here's the configtx.yaml file. Organizations: - &StancOrg Name: StancOrgMSP ID: StancOrgMSP MSPDir:…
user10915790
1 2 3
9
10