Trending questions in Blockchain

0 votes
1 answer

How to install chaincode in new Org in hyperledger fabric?

To do this, first enter you cli ...READ MORE

Nov 22, 2018 in Blockchain by Omkar
• 69,220 points
1,508 views
+1 vote
1 answer

Why is Blockchain called a Disruptive Technology?

Blockchain Technology showed the world a new ...READ MORE

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

"[RuntimeException] The "-t" option does not exist" error in Hyperledger composer.

This command runs on composer-cli. Have you ...READ MORE

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

Solidity Web3js: Invalid number of arguments to Solidity function error

Try this: Change console.log(formData.destinationtoke); console.log(formData.amounttoke); var tx = sendtoken(destinationtoke, amounttoke); To : console.log(formData.destinationtoke); console.log(formData.amounttoke); var ...READ MORE

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

Not able to migrate contract in Truffle: Error: No network specified. Cannot determine current network

Make these entries in truffle.js file: module.exports = { ...READ MORE

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

Unboxing truffle: Shows error: Stopping to prevent overwriting data.

As mentioned in the error: unboxing or ...READ MORE

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

Accessing External Api in HyperLedger Fabric

Generally you are not supposed to call ...READ MORE

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

Command "network" is not defined. in hyperledger composer

For composer network to work, you must ...READ MORE

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

In Ethereum Solidity, what is the purpose of the “memory” keyword?

Without the memory keyword, Solidity tries to declare variables ...READ MORE

Nov 15, 2018 in Blockchain by Perry
• 17,100 points
1,731 views
0 votes
1 answer

Hyperledger Composer: How to retrieve array of assets?

This is what worked for me: asset Ask ...READ MORE

Nov 14, 2018 in Blockchain by Omkar
• 69,220 points
1,732 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,317 views
0 votes
1 answer

How to set the hex-encoded data field in a Web3j Ethereum transaction?

You can use the "data" field of ...READ MORE

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

Hyperledger Fabric: ERROR: manifest for hyperledger/fabric-ca:latest not found.

docker pull hyperledger/fabric-ca:x86_64-1.1.0-preview Now tag this the latest ...READ MORE

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

Hyperledger: Explorer Shows Empty Data and Promise is rejected: Error: 12 UNIMPLEMENTED: unknown service protos.Endorser

This config worked for me: { "network-config": { ...READ MORE

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

Hyperledger-Composer: Error: Object with ID 'undefined' in collection with ID 'chaincodes' does not exist

First delete the cache and cookies from ...READ MORE

Oct 29, 2018 in Blockchain by Omkar
• 69,220 points
2,348 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
936 views
0 votes
1 answer

Hyperledger Fabric: How to retrieve result from Fabric Transaction?

invokeChainCode(securityContext, functionName, args, options) { ...READ MORE

Nov 8, 2018 in Blockchain by Omkar
• 69,220 points
1,888 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,131 views
0 votes
1 answer

What is the mean Hash Encryption?

Hash encryption is a form of providing ...READ MORE

Dec 4, 2018 in Blockchain by Omkar
• 69,220 points
778 views
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,513 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
963 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,453 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,126 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,558 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,093 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,170 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,241 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
588 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,063 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,345 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,369 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,585 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
2,878 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,740 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,264 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
679 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
1,916 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,243 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,336 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,238 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,580 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,723 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,802 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,105 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
1,882 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,708 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,525 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,041 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,052 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,441 views