Most viewed questions in Blockchain

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,330 points
2,715 views
0 votes
1 answer
+1 vote
5 answers

Does Hyperledger remove asset actually remove anything?

Hyperledger remove asset doesn't actually "remove" the ...READ MORE

Jun 19, 2018 in Blockchain by charlie_brown
• 7,720 points
2,685 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
2,658 views
0 votes
1 answer

Why do the resultant hash after mining has a leading no. of zeroes in Blockchain verification?

This is chosen by the DIFFICULTY EQUATION. In ...READ MORE

Aug 10, 2018 in Blockchain by Christine
• 15,790 points
2,654 views
+1 vote
1 answer

geth: Fatal: Failed to read genesis file: open “/home/edureka/privatechain/”: no such file or directory

Use this: geth --datadir ./data init ./custom_genesis.json READ MORE

Dec 6, 2018 in Blockchain by Omkar
• 69,190 points
2,644 views
0 votes
1 answer

Truffle compile compilation failed

This is a version compatibility problem. In ...READ MORE

Jan 17, 2019 in Blockchain by Omkar
• 69,190 points
2,635 views
+1 vote
2 answers

Peer chaincode instantiation timeout expired

Hey, i think you made a slight ...READ MORE

Sep 19, 2018 in Blockchain by digger
• 26,740 points
2,627 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
2,620 views
0 votes
1 answer

How to save complex object in the contract in solidity

You can't pass objects when initiating a ...READ MORE

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

How to generate new address for blockchain wallet?

You can use the following to generate ...READ MORE

Jul 16, 2018 in Blockchain by digger
• 26,740 points
2,593 views
0 votes
0 answers
0 votes
2 answers

Using Hyperledger composer with Hyperledger Blockchain explorer.

I was facing the same issue and ...READ MORE

Aug 9, 2018 in Blockchain by digger
• 26,740 points
2,565 views
+1 vote
1 answer

Getting issues while Sending signTransaction with web3.js

The chain ID for ropsten is 3. ...READ MORE

Mar 28, 2018 in Blockchain by Johnathon
• 9,090 points
2,562 views
0 votes
2 answers

Hyperledger Fabric: Channel creation failed! FAILED to execute End-2-End Scenario

This error usually occurs if some old ...READ MORE

May 8, 2019 in Blockchain by John
2,557 views
0 votes
1 answer

Access multiple return values (a, b, c) from solidity function in web3js

You'll get an array of return values ...READ MORE

Sep 14, 2018 in Blockchain by slayer
• 29,330 points
2,557 views
0 votes
1 answer

Php code to generate Ethereum wallets.

You can use web3.eth.accounts in web3js web3.eth.accounts.create(); With Php, ...READ MORE

Jul 27, 2018 in Blockchain by slayer
• 29,330 points
2,552 views
0 votes
1 answer

When running the enrollAdmin.js i get this error:

you are not running the ca, port ...READ MORE

Jun 7, 2020 in Blockchain by sumit
2,544 views
0 votes
1 answer

Stuck while using call_back_address and ipn url in coinpayment.net gateway

To make use of this api, just ...READ MORE

Aug 31, 2018 in Blockchain by digger
• 26,740 points
2,532 views
0 votes
1 answer
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,190 points
2,504 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,190 points
2,495 views
+1 vote
3 answers

How efficient is Ethereum in regard to its TPS??

TPS means transactions processing at any given ...READ MORE

Apr 16, 2018 in Blockchain by Shashank
• 10,400 points
2,494 views
0 votes
1 answer

Solidity invalid opcode error

In the for loop, your indexing going ...READ MORE

Aug 16, 2018 in Blockchain by slayer
• 29,330 points
2,490 views
0 votes
1 answer

TypeError: argument must be a string node.js while encoding to hex string.

The error is in protobuf.Transaction.create headerSignature needs to be a string, ...READ MORE

Nov 6, 2018 in Blockchain by Omkar
• 69,190 points
2,475 views
+2 votes
1 answer

how to convert hash160 to bitcoin address in python?

Hey @Raj. I use the following script. ...READ MORE

Jul 12, 2019 in Blockchain by Tanisha
2,463 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,463 views
+1 vote
2 answers

Not able to create new account in geth for private ethereum network

Looks like the account you are trying ...READ MORE

Dec 6, 2018 in Blockchain by Omkar
• 69,190 points
2,457 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,330 points
2,456 views
0 votes
2 answers

How to check if bitcoin address is valid?

For Java, have a look at the ...READ MORE

Aug 20, 2018 in Blockchain by Omkar
• 69,190 points
2,456 views
0 votes
1 answer

How to install Ethereum on Windows?

Download geth installer from https://geth.ethereum.org/downloads/ After download, run ...READ MORE

Feb 28, 2019 in Blockchain by Raj
2,448 views
0 votes
1 answer

Error while sending an address to functions

In solidity 0.5.0 (and above) there are ...READ MORE

Jan 23, 2019 in Blockchain by Omkar
• 69,190 points
2,434 views
0 votes
2 answers

Hyperledger byfn: could not assemble transaction: ProposalResponsePayloads do not match

This is because you have not installed ...READ MORE

Nov 20, 2018 in Blockchain by Omkar
• 69,190 points
2,434 views
–1 vote
1 answer

Not able to create new account in geth for private ethereum blockchain

personal.newAccount() is not a default geth method. This ...READ MORE

Jan 17, 2019 in Blockchain by Omkar
• 69,190 points
2,425 views
+1 vote
1 answer

Hyperledger Fabric: Got permission denied Docker daemon socket at unix:///var/run/docker.sock

You are getting this error probably because ...READ MORE

Nov 19, 2018 in Blockchain by Omkar
• 69,190 points
2,425 views
0 votes
1 answer

Know which exchange or wallet is behind a BTC address?

To answer your question, due to each ...READ MORE

Feb 28, 2022 in Blockchain by Soham
• 9,700 points
2,422 views
0 votes
2 answers

Web socket API session automatically disconnecting

Yes, the code given by Christine works! ...READ MORE

Aug 29, 2018 in Blockchain by digger
• 26,740 points
2,419 views
0 votes
1 answer

How to send Bitcoins with node.js?

This website https://blockr.io/tx/push will successfully do the bitcoin transaction. You ...READ MORE

Jul 20, 2018 in Blockchain by Christine
• 15,790 points
2,407 views
0 votes
1 answer

Bitcoin: parsing Blockchain API using JSON

Because you only add one address to ...READ MORE

Aug 22, 2018 in Blockchain by digger
• 26,740 points
2,405 views
+1 vote
2 answers

Can I invoke a chaincode function from the chaincode itself?

Here's an example on how you can ...READ MORE

May 7, 2019 in Blockchain by Shir
2,398 views
+1 vote
2 answers

Hyperledger: get “/bin/bash: ./scripts/script.sh: No such file or directory” when running “./byfn -m up”

You can follow these steps : In your ...READ MORE

Mar 27, 2018 in Blockchain by ned_crew
• 1,610 points
2,397 views
0 votes
1 answer

Web3j Transfer.sendFunds() returns Error “insufficient funds for gas * price + value”

DISCLAIMER. This may not necessarily be an answer to your ...READ MORE

Jun 16, 2018 in Blockchain by charlie_brown
• 7,720 points
2,394 views
+1 vote
3 answers

Hyperledger Java SDK Client Event Listener to register and listen Blocks

First add the eventhub, and then  register ...READ MORE

Oct 29, 2018 in Blockchain by Omkar
• 69,190 points
2,393 views
+1 vote
5 answers

Hyperledger Fabric: Error cryptogen tool

I got same error on Windows.  The solution ...READ MORE

Oct 25, 2018 in Blockchain by Mahesh
2,367 views
0 votes
1 answer

Not able to attach geth.ipc: Fatal: Unable to attach to remote geth: connect: connection refused

You should not mention double quotes for ...READ MORE

Dec 6, 2018 in Blockchain by Omkar
• 69,190 points
2,365 views
0 votes
1 answer

How to add peer to ethereum private network?

To connect a node to already existing ...READ MORE

Jan 22, 2019 in Blockchain by Omkar
• 69,190 points
2,364 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,190 points
2,362 views
+1 vote
2 answers

Where is custom chaincode path Hyperledger Fabric 1.0?

You have to have your chaincode at ...READ MORE

Jul 10, 2018 in Blockchain by slayer
• 29,330 points
2,354 views
0 votes
2 answers

Truffle compile: Cant find module error

You can install babel-register and try again. ...READ MORE

Feb 19, 2019 in Blockchain by Loki
2,353 views