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,370 points
3,639 views
0 votes
1 answer

How to deploy hyperledger fabric in production level?

Once you set up the Fabric, bring ...READ MORE

Aug 2, 2018 in Blockchain by aryya
• 7,460 points
3,639 views
0 votes
1 answer

Install testrpc on Windows

You can not directly install testrpc on ...READ MORE

Feb 28, 2019 in Blockchain by Piyush
3,630 views
0 votes
1 answer

Intrinsic gas too low and exceeds block limit

If you are talking about the public ...READ MORE

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

How to get IP address of peer connected in private ethereum network?

Could you share what you have done ...READ MORE

Mar 24, 2021 in Blockchain by Arafat

edited Mar 5 3,609 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
3,605 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,180 points
3,598 views
0 votes
1 answer

How can I integrate ethereum wallet on my site??

you can use web3 js API to ...READ MORE

May 29, 2018 in Blockchain by Perry
• 17,100 points
3,592 views
0 votes
1 answer

Converting 5e-08 to decimal in PHP

Use printf with the appropriate format specifier: printf("%.8f", 5 / ...READ MORE

Sep 12, 2018 in Blockchain by digger
• 26,740 points
3,589 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,588 views
+1 vote
4 answers

What is hf.Registrar.Roles in fabric-ca-client command?

The "hf.Registrar.Roles" attribute is used to control ...READ MORE

Jul 11, 2018 in Blockchain by slayer
• 29,370 points
3,588 views
0 votes
1 answer

How can I deploy a HelloWorld contract on my testrpc network?

The problem lies in the command: truffle migrate Your truffle migrate command ...READ MORE

Apr 27, 2018 in Blockchain by Perry
• 17,100 points

edited Aug 10, 2018 by Omkar 3,583 views
0 votes
1 answer

How can I become a miner in Blockchain?

You need to download software to become ...READ MORE

Jul 3, 2019 in Blockchain by Raman
3,577 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,180 points
3,553 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,370 points
3,552 views
+1 vote
2 answers

How to return value from a chaincode in Hyperledger Fabric?

Hyperledger Fabric supports only 2 types of ...READ MORE

Jun 13, 2018 in Blockchain by Perry
• 17,100 points
3,549 views
0 votes
1 answer

How to Check if string is in list in javascript?

At first, make sure that the string ...READ MORE

Sep 19, 2018 in Blockchain by slayer
• 29,370 points
3,546 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
3,544 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
3,543 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
3,542 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
3,541 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,180 points
3,531 views
+1 vote
4 answers

What role does Orderer peer serves in Hyperledger Fabric??

Shared communication channel to clients and peers ...READ MORE

Apr 12, 2018 in Blockchain by Johnathon
• 9,090 points
3,526 views
+1 vote
4 answers

Where does hyperledger fabric store the database for the blockchain?

The data of the Hyperledger Blockchain is ...READ MORE

Apr 29, 2019 in Blockchain by Tina
3,515 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
3,510 views
0 votes
2 answers

How to use multiple anchor peers in an organization?

To use multiple anchor peers, you need ...READ MORE

Jul 10, 2018 in Blockchain by digger
• 26,740 points
3,487 views
0 votes
2 answers

UnicodeDecodeError: 'utf-8' codec can't decode byte (python)

I found a python rpc library for ...READ MORE

Sep 4, 2018 in Blockchain by Piston
3,485 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,480 views
0 votes
1 answer

'ppa:ethereum' error while installing ethereum on ubuntu

First try: sudo apt-get install --reinstall ca-certificates If ...READ MORE

Jul 12, 2018 in Blockchain by slayer
• 29,370 points
3,467 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,180 points
3,462 views
0 votes
3 answers

Hyperledger-fabric not working with docker swarm

The issue is that the chaincode container ...READ MORE

Aug 21, 2018 in Blockchain by Perry
• 17,100 points
3,455 views
0 votes
1 answer

Installing Solidity on Linux

You can install Solidity Compiler on Linux ...READ MORE

Feb 28, 2019 in Blockchain by Reshma
3,450 views
0 votes
1 answer

HyperLedger Fabric and Multichain - difference & different use cases

MULTICHAIN: It is a Permissioned Blockchain. It doesn't implement ...READ MORE

Dec 28, 2018 in Blockchain by Omkar
• 69,180 points
3,450 views
0 votes
1 answer

How to get sender bitcoin address from transaction ID?

 You can use any scripting language with ...READ MORE

Apr 12, 2022 in Blockchain by Rahul
• 9,690 points
3,442 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,370 points
3,436 views
0 votes
1 answer

Key differences between Amazon Managed Blockchain and Quantum Ledger Database (QLDB)?

Put simply, Amazon Managed Blockchain is a ...READ MORE

Mar 24, 2022 in Blockchain by Rahul
• 9,690 points
3,429 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,370 points
3,415 views
0 votes
1 answer

Coinbase API v2 Getting Historic Price for Multiple Days

Any reason you aren't using coinbase pro? The ...READ MORE

Apr 12, 2022 in Blockchain by Soham
• 9,730 points
3,403 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,180 points
3,384 views
0 votes
1 answer

How to convert byte array to hex string?

You are missing the padding in the ...READ MORE

Aug 17, 2018 in Blockchain by slayer
• 29,370 points
3,383 views
0 votes
1 answer

Web-scraping from Coinbase with Python (Pycharm)

Data that you want to scrape is ...READ MORE

Sep 4, 2018 in Blockchain by digger
• 26,740 points
3,381 views
0 votes
1 answer

Kubernetes: How to connect Node.js SDK to Hyperledger Fabric network?

Hey, @Piyusha, Looks like the network did not ...READ MORE

Nov 12, 2020 in Blockchain by Gitika
• 65,730 points
3,357 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,356 views
0 votes
1 answer

Add Peers does not add a peer in Geth console

Setup actual boot node, don't treat base ...READ MORE

Sep 28, 2018 in Blockchain by slayer
• 29,370 points
3,348 views
0 votes
2 answers

Truffle compile/migrate not working

In my case, use sudo command. truffle compile ...READ MORE

Feb 20, 2019 in Blockchain by byoul
3,347 views
0 votes
1 answer

What are the differences between chain and state database in hyperledger fabric?

There are two place which "store" data ...READ MORE

Jul 11, 2018 in Blockchain by Shashank
• 10,400 points
3,334 views
+1 vote
1 answer

How does a miner get to know that a transaction is verified by all the nodes?

Contrary to the popular belief, it is ...READ MORE

Mar 27, 2018 in Blockchain by Johnathon
• 9,090 points
3,330 views
0 votes
1 answer

How to get price from bitcoin to USD with api

If I'm not wrong, is this what ...READ MORE

Apr 7, 2022 in Blockchain by Aditya
• 7,680 points
3,320 views
0 votes
1 answer

REQUEST_TIMEOUT error in Hyperledger Fabric, Linux

My docker version was 1.7. And its ...READ MORE

Jul 6, 2018 in Blockchain by Christine
• 15,750 points
3,308 views
0 votes
1 answer

How to solve “More than one instance of bitcore-lib found” error?

There is a temp solution here. ~/bitcore-explorers/node_modules/bitcore-lib/index.js line 7: bitcore.versionGuard ...READ MORE

Jul 25, 2018 in Blockchain by slayer
• 29,370 points
3,301 views