Trending questions in Blockchain

0 votes
1 answer

Hyperledger Fabric: How to Enable Full Logging in Balance Transfer?

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

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

javascript bytes32 to string

Assuming you're using web3 on the JS side, it's web3.toAscii. Example ...READ MORE

Oct 8, 2018 in Blockchain by Omkar
• 69,220 points
3,395 views
0 votes
1 answer

Not able to start testrpc for Ethereum truffle

Hey. It seems like you already have ...READ MORE

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

Getting Invalid number of parameters for “undefined” when deploying smart contract

Try something like this for contracts that ...READ MORE

Oct 10, 2018 in Blockchain by Omkar
• 69,220 points
3,266 views
0 votes
1 answer

Ethereum "truffle server" gives error: TypeError: fsevents is not a constructor

Looks like you have files missing.  Try creating project with: truffle ...READ MORE

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

Cannot find package “google/protobuf”

Firstly, your import is wrong, you are ...READ MORE

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

Hyperledger Vagrant make peer failed

Maybe you forgot to install docker. Try ...READ MORE

Nov 22, 2018 in Blockchain by digger
• 26,740 points
1,354 views
0 votes
1 answer

Hyperledger Composer: Error: Chaincode already installed - Composer-playground

You get this error because composer-playground saves ...READ MORE

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

Hyperledger Fabric: How to start/stop the fabric nodes?

This is another way to do it: docker ...READ MORE

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

Hyperledger Fabric: How to create wallet using program?

You can do this by passing some ...READ MORE

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

Solidity: How to return id from hash value?

You can do it by storing the hash ...READ MORE

Oct 22, 2018 in Blockchain by Omkar
• 69,220 points
2,559 views
0 votes
3 answers

String conversion to Array in Solidity

There is no built-in method/function for this ...READ MORE

Oct 3, 2018 in Blockchain by Charlie
3,458 views
0 votes
1 answer

Calling function in truffle console error

Inside Truffle console ContractName.deployed().then(function(instance){app = instance}) app.adopt(23)//call method on ...READ MORE

Oct 10, 2018 in Blockchain by Omkar
• 69,220 points
3,045 views
0 votes
1 answer

Hyperledger Fabric: orderer launching fails with error "panic: Error reading configuration:Unsupported Config Type"

The error says there's some problem finding ...READ MORE

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

How do display all the events logs from a smart contract?

You'll need to watch the events. const filter ...READ MORE

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

Hyperledger Fabric: PEM encoded certificate is required.

Hey, the syntax you are using is ...READ MORE

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

Hyperledger Composer: How to write complex queries in Composer?

You can do this using the query ...READ MORE

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

Should I encrypt my address before sending bitcoin?

Hey. No, you dont have to encrypt ...READ MORE

Dec 4, 2018 in Blockchain by Omkar
• 69,220 points
656 views
0 votes
1 answer

Hyperledger: How to take DateTime input from user?

There are tow options: 1. You can set ...READ MORE

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

Hyperledger Fabric:Error while creating channel unknown consortium

Firstly, replace DocChain with DocChainConsortium. Then run: docker-compose -f docker-compose-cli.yaml down --volumes ...READ MORE

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

Hyperledger: How to update values from an asset?

This should work: return getAssetRegistry('org.rytle.Route').then(function(ar) { ...READ MORE

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

Hyperledger Fabric: Kafka can not establish a connection

Try this:  kafka1.hyperfabric.xyz: image: hyperledger/fabric-kafka restart: ...READ MORE

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

Cant initialization project in truffle

Try this: truffle unbox webpack READ MORE

Nov 30, 2018 in Blockchain by Omkar
• 69,220 points
763 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,370 points
5,931 views
0 votes
1 answer

Hyperledger Fabric: make peer make: *** No rule to make target `peer'. Stop

The makefile is in /opt/gopath/src/github.com/hyperledger/fabric , not ...READ MORE

Nov 15, 2018 in Blockchain by Omkar
• 69,220 points
1,339 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,370 points
5,261 views
0 votes
1 answer

Using json rpc with curl on java?

Quoting different pieces the way you're doing ...READ MORE

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

Hyperledger Fabric: cp: cannot stat ‘build/docker/gotools/bin/protoc-gen-go’: No such file or directory

Do this: $go get -u github.com/golang/protobuf/protoc-gen-go $ cp $GOPATH/bin/protoc-gen-go build/docker/gotools/bin/ Now ...READ MORE

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

Web3js: how to catch ethereum contract exception?

try this: try{ Test test = Test.load(contractObj.getContractAddress(), ...READ MORE

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

Ethereum: Cloning cpp-ethereum from git.

Yes, you can only clone the additional ...READ MORE

Nov 19, 2018 in Blockchain by Omkar
• 69,220 points
1,103 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,697 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,820 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,591 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,370 points
4,661 views
0 votes
1 answer

Hyperledger Fabric: Error endorsing chaincode: rpc error

Run the following commands and try again: docker ...READ MORE

Oct 31, 2018 in Blockchain by Omkar
• 69,220 points
1,885 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,660 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,166 views
0 votes
1 answer

Hyperledger composer: How to include relationship in custom query?

You are trying to use filter={"include":"resolve"} in Composer Query. ...READ MORE

Nov 16, 2018 in Blockchain by Omkar
• 69,220 points
1,184 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,220 points
1,551 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,804 views
0 votes
1 answer

How to run smart contract function using nethereum to return a result?

Try this: var result = getUserAtIndex.CallAsync<byte[]>(123) ...READ MORE

Oct 24, 2018 in Blockchain by Omkar
• 69,220 points
2,153 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,312 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,205 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,771 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,232 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,544 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
2,090 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,095 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,656 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,468 views