Trending questions in Blockchain

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,350 points
2,910 views
0 votes
1 answer

How to get return value from solidity contract?

Once you call a constant function, you ...READ MORE

Aug 16, 2018 in Blockchain by slayer
• 29,350 points
4,756 views
0 votes
1 answer

Javascript Websocket subscribe to channel

This is how you can do it let ...READ MORE

Aug 28, 2018 in Blockchain by slayer
• 29,350 points
4,231 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
2,747 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,210 points
1,069 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,210 points
1,747 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,210 points
1,207 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,210 points
916 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,210 points
2,373 views
+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,210 points
1,103 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,210 points
1,325 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,008 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,350 points
3,135 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,210 points
1,711 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,210 points
1,180 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,210 points
792 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,210 points
1,296 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,210 points
416 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,210 points
489 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,210 points
754 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,210 points
1,326 views
0 votes
1 answer

How to solve “insufficient funds for gas * price + value” error?

Change the following line Credentials credentials = Credentials.create(firstAccount); To ...READ MORE

Aug 1, 2018 in Blockchain by slayer
• 29,350 points
5,251 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,210 points
917 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,210 points
1,305 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,210 points
2,244 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,210 points
1,679 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,210 points
679 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
429 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
830 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,210 points
1,215 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,210 points
547 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,210 points
944 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,458 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,210 points
473 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,210 points
1,017 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,350 points
2,653 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,564 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,690 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
378 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,210 points
737 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,210 points
1,459 views
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,210 points
1,753 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,210 points
699 views
0 votes
1 answer

Hyperledger Composer: Query using relation

 you need to refer to your specific ...READ MORE

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

Hyperledger: How to retrieve properties of relationship through query?

I dont think its possible using query. ...READ MORE

Nov 8, 2018 in Blockchain by Omkar
• 69,210 points
639 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,210 points
4,972 views
0 votes
2 answers

how to integrate coinbase api in php for transfer bitcoine

Here the code for php please have ...READ MORE

Sep 17, 2018 in Blockchain by Suresh
2,899 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,350 points
4,925 views
+1 vote
1 answer

HyperLedger-Fabric: "Error unmarshalling chaincode request payload: illegal base64 data at input byte 0"

The function name should be in Args ...READ MORE

Oct 30, 2018 in Blockchain by Sumanth
959 views
0 votes
1 answer

Docker: How to connect Node.js in container to Hyperledger Fabric?

You need to map ~/.composer/cards of your Docker host ...READ MORE

Oct 31, 2018 in Blockchain by Omkar
• 69,210 points
954 views