Trending questions in Blockchain

+1 vote
1 answer

Error while instantiating chaincode

Hey @Vikas!  The error says, dial unix /host/var/run/docker.sock: connect: ...READ MORE

Nov 6, 2018 in Blockchain by Omkar
• 69,220 points
1,458 views
0 votes
1 answer

Hyperledger Composer: How to Update Existing Assets?

get on an asset registry returns a ...READ MORE

Nov 5, 2018 in Blockchain by Omkar
• 69,220 points
1,539 views
0 votes
1 answer

Ethereum nodejs: Unhandled rejection Error: Invalid JSON RPC response

gasLimit is actually represented by gas as the gas limiter ...READ MORE

Oct 15, 2018 in Blockchain by Omkar
• 69,220 points
2,457 views
0 votes
1 answer

How do I initialize an array in a struct

You need to manually change the length ...READ MORE

Oct 1, 2018 in Blockchain by Perry
• 17,100 points
3,050 views
0 votes
1 answer

Getting “web3.eth.filter is not a function” while trying to monitor Ethereum blocks

It appears you are using web3.js v1.0. ...READ MORE

Oct 9, 2018 in Blockchain by Omkar
• 69,220 points
2,692 views
0 votes
1 answer

Hyperledger Fabric ./byfn -m up not bringing up

Seems like you have not installed docker-compose. ...READ MORE

Nov 5, 2018 in Blockchain by Omkar
• 69,220 points
1,504 views
0 votes
1 answer

Hyperledger Fabric: Could not resolve all dependencies for configuration

First, build the chaincode using gradle build. You should ...READ MORE

Nov 2, 2018 in Blockchain by Omkar
• 69,220 points
1,644 views
0 votes
1 answer

Hyperledger composer: Not able to issue identities from a Business network.

To specify your own affiliation you need ...READ MORE

Nov 6, 2018 in Blockchain by Omkar
• 69,220 points
1,471 views
0 votes
1 answer

Hyperledger Fabric: Changing component item owner automatically with its parent

You can try something like this: /** * ...READ MORE

Nov 16, 2018 in Blockchain by Omkar
• 69,220 points
1,019 views
0 votes
1 answer

Hyperledher: How to convert formControlName value to JSON Format?

<textarea [ngModel]="offers[0] | json" formControlName="offers" class="form- ...READ MORE

Nov 12, 2018 in Blockchain by Omkar
• 69,220 points
1,170 views
0 votes
1 answer

Can't call contract function in truffle console

Inspect the object adoption within the console. You will ...READ MORE

Sep 28, 2018 in Blockchain by slayer
• 29,370 points
3,114 views
0 votes
1 answer

Hyperledger Fabric: error on outputChannelCreateTx: Cannot define a new channel with no Application section

Try defining or referencing the application in ...READ MORE

Nov 2, 2018 in Blockchain by Omkar
• 69,220 points
1,579 views
0 votes
1 answer

Truffle init: Error: Cannot find module 'original-require'

I think you need to run this ...READ MORE

Oct 24, 2018 in Blockchain by Omkar
• 69,220 points
1,956 views
0 votes
1 answer

Hyperledger Fabric: How to give full read access to all participants?

To do this, you must first provide ...READ MORE

Nov 9, 2018 in Blockchain by Omkar
• 69,220 points
1,266 views
0 votes
1 answer

Ethereum Node Connection: TypeError: Cannot read property 'version' of undefined

In the code that you are using ...READ MORE

Oct 24, 2018 in Blockchain by Omkar
• 69,220 points
1,952 views
0 votes
1 answer

String concatenation in solidity?

A library can be used, for example: import "github.com/Arachnid/solidity-stringutils/strings.sol"; contract C ...READ MORE

Sep 21, 2018 in Blockchain by slayer
• 29,370 points
3,375 views
0 votes
1 answer

Web3: No provider set error

To solve this error, you need to ...READ MORE

Oct 22, 2018 in Blockchain by Omkar
• 69,220 points
2,027 views
0 votes
1 answer

Hyperledger Composer: Error: Object with ID 'assetID:0138' in collection with ID 'Asset:org.acme.mynetwork.Sensor'

Remove 'assetID:' from your test string. For example, 'org.acme.mynetwork#assetID:0138' ...READ MORE

Nov 14, 2018 in Blockchain by Omkar
• 69,220 points
1,013 views
0 votes
1 answer

Hyperledger Fabric query system chaincode using node SDK

The Fabric Node SDK actually provides a ...READ MORE

Nov 9, 2018 in Blockchain by Christine
• 15,790 points
1,213 views
0 votes
1 answer

Can not make a peer in Hyperledger Fabric

You have not installed jdk on your system. ...READ MORE

Nov 22, 2018 in Blockchain by Omkar
• 69,220 points
645 views
0 votes
1 answer

Hyperledger Composer: not able to install Hyperledger composer-cli

Try setting the PATH like this, export PATH="/usr/local/share/npm/bin:$PATH" Now run the ...READ MORE

Oct 31, 2018 in Blockchain by Omkar
• 69,220 points
1,582 views
0 votes
1 answer

Truffle Compile failing, ParserError: Expected token LParen got Identifier function

Your parentheses are mismatched. pragma solidity ^0.4.17; import "truffle/Assert.sol"; import ...READ MORE

Oct 9, 2018 in Blockchain by Omkar
• 69,220 points
2,527 views
0 votes
1 answer

Hyperledger Fabric: Error: Error getting (myc) orderer endpoint: Error endorsing GetConfigBlock

First of all please note, that during ...READ MORE

Oct 31, 2018 in Blockchain by Omkar
• 69,220 points
1,574 views
0 votes
1 answer

Hyperledger Composer: How to subscribe to and see events from transactions?

Here's the problem: this.businessNetworkConnection.on('events' //This should be changed ...READ MORE

Nov 14, 2018 in Blockchain by Omkar
• 69,220 points
962 views
+2 votes
1 answer

How to solve “SyntaxError: unexpected EOF” error in python?

There is not a problem in the ...READ MORE

Jul 30, 2018 in Blockchain by slayer
• 29,370 points
5,523 views
0 votes
1 answer

Hyperledger Fabric: unable to check out source code from gerrit.hyperledger.org

There's something wrong with your SSH key. ...READ MORE

Nov 15, 2018 in Blockchain by Omkar
• 69,220 points
912 views
0 votes
1 answer

Hyperledger Composer: How to specify server name in composer connection profile?

To solve this problem you can use ...READ MORE

Nov 14, 2018 in Blockchain by Omkar
• 69,220 points
942 views
0 votes
1 answer

Hyperledger Fabric: How to ping network using program?

// http://nodejs.org/api.html#_child_processes var sys = require('sys') var exec = ...READ MORE

Nov 9, 2018 in Blockchain by Omkar
• 69,220 points
1,157 views
0 votes
1 answer

How to connect channels of different systems in Hyperledger Fabric?

When you create a channel, you will ...READ MORE

Nov 20, 2018 in Blockchain by Omkar
• 69,220 points
664 views
0 votes
1 answer

Error With Rest Server: HyperLedger

It's a trivial issue mate - you're ...READ MORE

Nov 9, 2018 in Blockchain by Christine
• 15,790 points
1,108 views
0 votes
1 answer

Hyperledger Fabric: Cannot update chaincode

First, stop and delete all the containers: docker ...READ MORE

Oct 31, 2018 in Blockchain by Omkar
• 69,220 points
1,464 views
0 votes
1 answer

What files are supported by BigchainDB?

BigchainDB supports .json file format. It can ...READ MORE

Feb 26, 2019 in Blockchain by anonymous
583 views
0 votes
1 answer

Hyperledger composer: runtime install error card not found peerAdmin

The right way to do it is: downloadFabric.sh startFabric.sh createPeerAdminCard.sh If ...READ MORE

Nov 5, 2018 in Blockchain by Omkar
• 69,220 points
1,205 views
0 votes
1 answer

PHP IPC with geth Ethereum: How to communicate with client?

You have to use PHP Sockets $sock = socket_create(AF_UNIX, ...READ MORE

Oct 22, 2018 in Blockchain by Omkar
• 69,220 points
1,815 views
0 votes
1 answer

Hyperledger Fabric: peer creation no ordering service endpoint created error

You have to pass an orderer in ...READ MORE

Nov 15, 2018 in Blockchain by Omkar
• 69,220 points
753 views
0 votes
1 answer

Add Peers does not add a peer in Geth console

Setup actual boot node, don't treat base ...READ MORE

Sep 28, 2018 in Blockchain by slayer
• 29,370 points
2,826 views
0 votes
1 answer

Hyperledger Fabric: How to convert channel.tx artifact into json?

You can use configtxgen to do this: configtxgen ...READ MORE

Nov 8, 2018 in Blockchain by Omkar
• 69,220 points
1,037 views
0 votes
1 answer

How to get ethereum contract public variables?

You need to use call method, it ...READ MORE

Oct 17, 2018 in Blockchain by Christine
• 15,790 points
1,984 views
0 votes
1 answer

How to Check if string is in list in javascript?

At first, make sure that the string ...READ MORE

Sep 19, 2018 in Blockchain by slayer
• 29,370 points
3,177 views
0 votes
1 answer

Hyperledger: Not able to connect from docker container to validator. curl http://rest-api:8008/blocks

The REST API service is exposed on ...READ MORE

Nov 2, 2018 in Blockchain by Omkar
• 69,220 points
1,275 views
0 votes
1 answer

How to make Observable from callback?

RxJS includes a bindNodeCallback observable creator specifically for creating ...READ MORE

Oct 1, 2018 in Blockchain by digger
• 26,740 points
2,656 views
0 votes
1 answer

Cannot access web3 object with typescript and ethereum

You still need to instantiate it first. ...READ MORE

Sep 25, 2018 in Blockchain by slayer
• 29,370 points
2,914 views
+4 votes
2 answers

Warning: Invoking events without “emit” prefix is deprecated while truffle compile

As the warning mentions, add emit as ...READ MORE

Oct 16, 2018 in Blockchain by Aisha
1,816 views
+1 vote
1 answer

Ethereum Error: authentication needed: password or unlock

First, make sure you have an account. web3.personal.listAccounts If ...READ MORE

Aug 8, 2018 in Blockchain by Omkar
• 69,220 points
5,332 views
0 votes
1 answer

Hyperledger composer: How to allow create in transaction? Access Control

This is how you can do it: /** @returns ...READ MORE

Nov 8, 2018 in Blockchain by Omkar
• 69,220 points
975 views
0 votes
1 answer

How can I send data to docker?

Whenever i invoke chaincode from the cli ...READ MORE

Nov 17, 2018 in Blockchain by Christine
• 15,790 points
601 views
0 votes
1 answer
0 votes
1 answer

How to handle smart contract transaction express nodejs?

sendSignedTransaction returns a Promise combined event emitter. You can ...READ MORE

Oct 15, 2018 in Blockchain by Omkar
• 69,220 points
1,993 views
0 votes
1 answer

Angular 4, typescript Assign interface property to variable

The first thing worth noting is that ...READ MORE

Aug 27, 2018 in Blockchain by slayer
• 29,370 points
4,087 views
0 votes
1 answer

Hyperledger Fabric SDK Design/Role of the application

When invoking functions, it has to be ...READ MORE

Nov 6, 2018 in Blockchain by Perry
• 17,100 points
994 views