Trending questions in Blockchain

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,210 points
907 views
+2 votes
3 answers

Can multi-channels be supported by Hyperledger in one peer?

Yes you can run  multiple chains on ...READ MORE

Apr 11, 2018 in Blockchain by Perry
• 17,100 points
2,502 views
+1 vote
1 answer

Calling deployed smart contract from node.js

contractInstance.wakeUp.call is calling the function as constant, but ...READ MORE

Sep 26, 2018 in Blockchain by digger
• 26,740 points
3,669 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,210 points
927 views
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,210 points
1,212 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,210 points
2,561 views
0 votes
1 answer

Hyperledger Docker: Error building images: cannot connect to Docker endpoint.

Check your container environment variable: CORE_VM_ENDPOINT=unix:///var/run/docker.sock Then if you ...READ MORE

Nov 15, 2018 in Blockchain by Omkar
• 69,210 points
1,523 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,210 points
1,207 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,503 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,210 points
3,110 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,210 points
750 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,210 points
1,447 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,210 points
2,741 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,210 points
2,908 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,210 points
1,430 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,210 points
2,070 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,210 points
1,630 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,210 points
1,969 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,210 points
1,253 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,210 points
1,382 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,210 points
1,955 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,210 points
1,030 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,210 points
461 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,210 points
675 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,179 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,210 points
439 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,210 points
539 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,005 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,210 points
2,702 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,210 points
1,558 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,210 points
1,241 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,210 points
1,353 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,210 points
2,082 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,210 points
1,672 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
2,971 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,210 points
1,011 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,210 points
1,009 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,210 points
2,044 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,210 points
1,125 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,210 points
1,639 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,210 points
1,376 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,210 points
940 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
668 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,210 points
1,893 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,210 points
1,640 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,210 points
826 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,210 points
1,253 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,210 points
2,202 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,210 points
672 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,210 points
2,410 views