Most voted questions in Blockchain

+1 vote
2 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,180 points
3,813 views
+1 vote
4 answers

Hyperledger: Cannot compile chaincode, cannot find package error

As the error says, it cant find ...READ MORE

Oct 26, 2018 in Blockchain by Omkar
• 69,180 points
13,646 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
4,014 views
+1 vote
4 answers

Installing Nodejs: sh: node: command not found error

You have to first install nodejs and ...READ MORE

Oct 22, 2018 in Blockchain by Omkar
• 69,180 points
26,579 views
+1 vote
3 answers

Not able to read a file from my assets folder

Hi.. I faced a similar problem in ...READ MORE

Oct 25, 2018 in Blockchain by Shrikanth
7,395 views
+1 vote
1 answer

Using bccsp instance from chaincode

You can take a look at this code snippet. ...READ MORE

Oct 22, 2018 in Blockchain by Christine
• 15,750 points
1,014 views
+1 vote
1 answer

Return array of struct from a solidity function: "Expected type name function getPurchaseOrderForVendor" error

There's a typo in your code. The ...READ MORE

Oct 17, 2018 in Blockchain by Christine
• 15,750 points
5,479 views
+1 vote
2 answers

Integrating web3 from Metamask: "ReferenceError: window is not defined" error

You can't use MetaMask on server-side because ...READ MORE

Oct 10, 2018 in Blockchain by Omkar
• 69,180 points
7,657 views
+1 vote
3 answers

Pass parameter as bytes32 to Solidity Smart Contract

Use the common.HexToHash package and pass the string ...READ MORE

Sep 19, 2019 in Blockchain by Grashias

edited Sep 19, 2019 by Omkar 10,353 views
+1 vote
1 answer

Deploy contract using solcjs

Try to add some typo and run ...READ MORE

Sep 26, 2018 in Blockchain by slayer
• 29,370 points
1,338 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
4,449 views
+1 vote
1 answer

Solidity: Sending ERC20 Tokens

You can try this code transferTokensTo: function(contract, address_from, ...READ MORE

Sep 26, 2018 in Blockchain by slayer
• 29,370 points
1,906 views
+1 vote
3 answers

What is the pattern for handling throw on a Solidity contract in tests

In my opinion the cleanest way is: it("should ...READ MORE

Sep 25, 2018 in Blockchain by Lupin
2,309 views
+1 vote
1 answer

Ethereum vs Hyperledger: Which is better for business networks?

Hyperledger is preferred for B2B business and ...READ MORE

Sep 20, 2018 in Blockchain by digger
• 26,740 points
942 views
+1 vote
1 answer

Can't instantiate any chaincodes on peers of newly Added org

Seems like chaincode install may have been unsuccessful. Before ...READ MORE

Sep 20, 2018 in Blockchain by Perry
• 17,100 points
2,604 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
3,743 views
+1 vote
3 answers

Removing double quotes from a string from JSON response in PHP

Just remove the json_encode call, and it should work: $resp ...READ MORE

Sep 12, 2018 in Blockchain by digger
• 26,740 points
46,479 views
+1 vote
1 answer

How do I use ZF2 I18n currencyformatter to format bitcoin?

I found the following link: http://www.icu-project.org/apiref/icu4c/classDecimalFormat.html#details If you scroll ...READ MORE

Sep 10, 2018 in Blockchain by digger
• 26,740 points
746 views
+1 vote
1 answer

Node.js API wrapper for altcoin exchange

In order to pass these variables to ...READ MORE

Sep 10, 2018 in Blockchain by digger
• 26,740 points
924 views
+1 vote
1 answer

Unable to convert variable to GMP when initializing Bitpay client class (Laravel)

Bitpay automatically uses the encrypted file store, ...READ MORE

Sep 10, 2018 in Blockchain by slayer
• 29,370 points
1,368 views
+1 vote
1 answer

Node.js blockchain bitcoin api

The callback URL should be the one ...READ MORE

Sep 10, 2018 in Blockchain by slayer
• 29,370 points
1,427 views
+1 vote
3 answers

HTML Bitcoin address parsing using Beautiful soup

Regex is not meant for parsing. As ...READ MORE

Sep 5, 2018 in Blockchain by Lewis
2,131 views
+1 vote
1 answer

Need to convert bitcoin address function from php to Jquery

Use AJAX. It will be easier to ...READ MORE

Sep 5, 2018 in Blockchain by digger
• 26,740 points
962 views
+1 vote
3 answers

Pass all .dat files in folder to function

os.listdir(path) return names, not fullpaths change parseBlockFile(file) to fullpath = os.path.join(path,file) if os.path.isfile(fullpath) ...READ MORE

Sep 5, 2018 in Blockchain by Saygum
2,770 views
+1 vote
1 answer

Is there a way to send funds from a specific bitcoin address in a wallet?

I'll answer my own question, It was unbelievably ...READ MORE

Sep 3, 2018 in Blockchain by Perry
• 17,100 points
1,747 views
+1 vote
3 answers

How to convert timestamp to readable format in blockchain.info?

You are talking about the block_time property ...READ MORE

Apr 29, 2019 in Blockchain by Raghu
11,428 views
+1 vote
1 answer

Getting Hash160 bitcoin address in python

There is a package to decode and ...READ MORE

Aug 24, 2018 in Blockchain by slayer
• 29,370 points
4,240 views
+1 vote
1 answer

Coinbase API: Get transaction fees

The Coinbase "fee" is the difference between ...READ MORE

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

Hex to ASCII conversion shows wrong result.

Hey, I use the following code: public static ...READ MORE

Aug 21, 2018 in Blockchain by Omkar
• 69,180 points
2,397 views
+1 vote
1 answer

How to generate Bitcoin address?

Convert the hex string back to bytes ...READ MORE

Aug 20, 2018 in Blockchain by slayer
• 29,370 points
1,547 views
+1 vote
1 answer

How to create participant and there identities via rest API in Hyperledger Composer?

If you have already imported an Identity ...READ MORE

Aug 10, 2018 in Blockchain by Perry
• 17,100 points
3,018 views
+1 vote
1 answer

Is it possible to exchange the token for other tokens we create in an Ethereum Smart Contract?

Yes you can do that through something ...READ MORE

Aug 10, 2018 in Blockchain by Perry
• 17,100 points
1,395 views
+1 vote
1 answer

How do i add images in Hyperledger?

You can not directly add an image ...READ MORE

Aug 10, 2018 in Blockchain by Omkar
• 69,180 points
1,225 views
+1 vote
1 answer

Can one pay ICO's token to an ICO consultant?

It is in fact possible to programmatically ...READ MORE

Aug 6, 2018 in Blockchain by Perry
• 17,100 points
1,167 views
+1 vote
4 answers

Trying to connect to Cryptocompare's websocket stream using socketIO from a Python client

The reason might be that the the socketio ...READ MORE

Aug 6, 2018 in Blockchain by Perry
• 17,100 points
4,253 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,943 views
+1 vote
1 answer

Error attempting installing ethermint

I faced the same issue. Here's where ...READ MORE

Aug 2, 2018 in Blockchain by Christine
• 15,750 points
1,299 views
+1 vote
1 answer

How do I check the history of my ethereum wallet using blockchain API?

f I understand well, you're looking for ...READ MORE

Aug 2, 2018 in Blockchain by Christine
• 15,750 points
2,678 views
+1 vote
7 answers

How to solve “x509: ECDSA verification failure” error?

Before you execute the  composer runtime install -c ...READ MORE

Jul 30, 2018 in Blockchain by digger
• 26,740 points
9,446 views
+1 vote
2 answers

How to get airdropped tokens to Ethereum wallet?

You also can use Frewallet This wallet is ...READ MORE

Dec 20, 2019 in Blockchain by anonymous
• 160 points
1,699 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
4,004 views
+1 vote
3 answers

How to solve “Module not found: Error: Can't resolve 'truffle-contract'” error in web3?

Try compiling and migrating the contract: $ truffle ...READ MORE

Apr 30, 2019 in Blockchain by Rachita
8,237 views
+1 vote
1 answer

How to change ports through which hyperledger composer installs runtime?

To change the port you have to ...READ MORE

Jul 25, 2018 in Blockchain by slayer
• 29,370 points
1,654 views
+1 vote
1 answer

Can I setup hyperledger composer on multiple nodes?

To deploy your network on multiple nodes, ...READ MORE

Jul 25, 2018 in Blockchain by digger
• 26,740 points
2,073 views
+1 vote
2 answers

How to configure Endorsement policy in Hyperledger?

The Hyperledger Fabric Endorsement policy is configured ...READ MORE

Jul 25, 2018 in Blockchain by slayer
• 29,370 points
4,028 views
+1 vote
1 answer

Ethereum Error: authentication needed: password or unlock

First, make sure you have an account. web3.personal.listAccounts If ...READ MORE

Aug 8, 2018 in Blockchain by Omkar
• 69,180 points
5,835 views
+1 vote
2 answers

Using Composite Key formation to get states for a date range in Hyperledger Fabric V1.0

I think you have found a partial ...READ MORE

Jul 20, 2018 in Blockchain by charlie_brown
• 7,720 points
5,697 views
+1 vote
1 answer

How to perform a simple 1-to-1 Bitcoin Transaction with Bitcore?

What is the argument utxos int the ...READ MORE

Jul 20, 2018 in Blockchain by charlie_brown
• 7,720 points
2,558 views
+1 vote
5 answers

How to solve "truffle: command not found" error in blockchain?

First try restarting the system and then ...READ MORE

Jul 16, 2018 in Blockchain by slayer
• 29,370 points
12,878 views
+1 vote
2 answers

How to solve Hyperledger Fabric "error endorsing chaincode" error?

Try to install chaincode with a name ...READ MORE

Jul 13, 2018 in Blockchain by digger
• 26,740 points
5,189 views