Trending questions in Blockchain

0 votes
1 answer

How can I deploy a hyperledger business network using docker-compose?

If you want to use Composer, be ...READ MORE

Oct 4, 2018 in Blockchain by Perry
• 17,100 points
1,461 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,005 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
3,301 views
0 votes
1 answer

Are there null like thing in solidity

You could create none variable to use it as ...READ MORE

Sep 21, 2018 in Blockchain by digger
• 26,740 points
1,969 views
0 votes
1 answer

pubToAddress method from ethereumjs-util throws AssertionError: false == true

This code works fine: var keythereum = require('keythereum'); var ...READ MORE

Oct 8, 2018 in Blockchain by Omkar
• 69,220 points
1,234 views
0 votes
1 answer

Test ethereum Event Logs with truffle

You are passing tx hash into done() ...READ MORE

Sep 21, 2018 in Blockchain by slayer
• 29,370 points
1,964 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
3,747 views
0 votes
1 answer

Hyperledger Composer Incompatible versions error

The versions are same. Maybe its a ...READ MORE

Oct 24, 2018 in Blockchain by Omkar
• 69,220 points
515 views
0 votes
1 answer

How to define the path to hyperledger-fabric chaincode?

You can find that in docker-compose files ...READ MORE

Oct 4, 2018 in Blockchain by Perry
• 17,100 points
1,378 views
0 votes
1 answer

Is it possible to send eth to a contract through its constructor from another contract?

I found the solution for this: pragma solidity ...READ MORE

Sep 26, 2018 in Blockchain by slayer
• 29,370 points
1,715 views
0 votes
1 answer

What is the difference between creating a new solidity contract with and without the `new` keyword?

You cannot omit new keyword for creating ...READ MORE

Oct 8, 2018 in Blockchain by Omkar
• 69,220 points
1,171 views
0 votes
1 answer

TypeError: XMLHttpRequest is not a function when using web3 on meteor server side

I had the same problem. Instead ethereum:web3 Meteor package ...READ MORE

Oct 10, 2018 in Blockchain by Omkar
• 69,220 points
1,080 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,220 points
3,225 views
0 votes
1 answer

How to fix browser/IERC20.sol:4:53: Warning: This declaration shadows an existing declaration

I believe the issue is the reuse ...READ MORE

Oct 1, 2018 in Blockchain by slayer
• 29,370 points
1,442 views
0 votes
3 answers

UnhandledPromiseRejectionWarning: Error: The contract code couldn't be stored, please check your gas limit

I believe bytecode is being treated as ...READ MORE

Sep 24, 2018 in Blockchain by Teja
1,653 views
0 votes
1 answer

Ethereum serpent version conflict error.

Upgrade to the lastest version of ethereum-serpent ...READ MORE

Oct 24, 2018 in Blockchain by Omkar
• 69,220 points
437 views
0 votes
1 answer

Historical ethereum prices - Coinbase API

def get_spot_price(self, **params): """https://developers.coinbase.com/api/v2#get-spot-price""" ...READ MORE

Sep 21, 2018 in Blockchain by digger
• 26,740 points
1,853 views
0 votes
1 answer

How to efficiently hash (SHA 256) in golang data where only the last few bytes changes

You can try the following examples on ...READ MORE

Jun 27, 2018 in Blockchain by aryya
• 7,460 points
5,554 views
0 votes
1 answer

How do I send ether from an EOA to a smart contract?

You include ether to send in the ...READ MORE

Sep 27, 2018 in Blockchain by digger
• 26,740 points
1,575 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,558 views
0 votes
1 answer

Go build fail, fatal error: rocksdb/c.h

I followed here and it is done. https://github.com/openblockchain/obc-peer/issues/885 Configure ...READ MORE

Sep 17, 2018 in Blockchain by slayer
• 29,370 points
1,951 views
0 votes
1 answer

How do Ethereum node compete for blocks?

Yes, all the nodes do compete for ...READ MORE

Oct 12, 2018 in Blockchain by Perry
• 17,100 points
847 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,353 views
0 votes
1 answer

Python Script to pull data from Blockchain JSON

Try this: print r.json()['address'],' has ', r.json()['n_tx'], 'tr ...READ MORE

Sep 14, 2018 in Blockchain by digger
• 26,740 points
2,060 views
0 votes
1 answer

Not able send ether to my smart contract's address

It turns out that you need to create ...READ MORE

Sep 25, 2018 in Blockchain by slayer
• 29,370 points
1,564 views
0 votes
1 answer

sellprice and buyprice fixing in smart contract.

It is due to the fact you ...READ MORE

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

Ethereum generating genesis Python Syntax

print in python3 is a method not a ...READ MORE

Oct 10, 2018 in Blockchain by Omkar
• 69,220 points
904 views
0 votes
1 answer

How can I inject and use this javascript library (web3) with JavascriptCore

The web3.js library has dependencies on bignumber.js and crypto-js.js (See dependencies here). You will ...READ MORE

Oct 8, 2018 in Blockchain by Omkar
• 69,220 points
949 views
0 votes
1 answer

Where is the geth.exe in the Ethereum mist?

In Windows, you will find geth.exe in ...READ MORE

Oct 10, 2018 in Blockchain by Omkar
• 69,220 points
858 views
0 votes
1 answer

Poloniex C# API - get trades

Outputting the Trade will just show you ...READ MORE

Sep 25, 2018 in Blockchain by digger
• 26,740 points
1,465 views
0 votes
1 answer

Solidity different token price

Yes you can do this by modifying ...READ MORE

Oct 8, 2018 in Blockchain by Omkar
• 69,220 points
873 views
0 votes
1 answer

Nethereum C# Unit Test GetTransactionCount

You have already made the test async ...READ MORE

Sep 26, 2018 in Blockchain by slayer
• 29,370 points
1,391 views
0 votes
1 answer

403 forbidden error coinbase api

I had a similiar issue connecting this API, ...READ MORE

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

How can I create an online wallet without any 3rd party API on my PHP server?

With any approach, you need a bitcoin ...READ MORE

Aug 30, 2018 in Blockchain by Perry
• 17,100 points
2,567 views
0 votes
1 answer

Why estimateGas always returns null or zero?

The Web3 API uses error first style callbacks. Your ...READ MORE

Sep 28, 2018 in Blockchain by digger
• 26,740 points
1,289 views
0 votes
1 answer

Solidity: How can I return a list of user-defined function?

You can do it with something like ...READ MORE

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

Getting the length of public array variable (getter)

The calling contract will need the ABI ...READ MORE

Sep 24, 2018 in Blockchain by digger
• 26,740 points
1,429 views
0 votes
1 answer

BitcoinJ generate address from private key

Convert string private key into bytes[]: ECKey key = ...READ MORE

Sep 4, 2018 in Blockchain by slayer
• 29,370 points
2,275 views
0 votes
2 answers

Warning: Using contract member “balance” inherited from the address type is deprecated. Solidity

Alternatively you could assign this to a local variable ...READ MORE

Oct 3, 2018 in Blockchain by Rustom
1,154 views
0 votes
1 answer

What happens to Ether in a smart contract after selfdestruct?

selfdestruct takes one argument an address and then sends all ...READ MORE

Oct 3, 2018 in Blockchain by digger
• 26,740 points
1,021 views
0 votes
1 answer

Sending hash in function parameter

I am developing a smart contract using ...READ MORE

Oct 8, 2018 in Blockchain by Omkar
• 69,220 points
781 views
0 votes
1 answer

Go- Chaincode function to display struct values

Try this func (t *SimpleChaincode) setDetails(stub shim.ChaincodeStubInterface, args ...READ MORE

Sep 19, 2018 in Blockchain by digger
• 26,740 points
1,598 views
0 votes
1 answer

How to allow request from host machine and deny from other machine, using ethereum in docker?

You can restrict access to the port ...READ MORE

Oct 9, 2018 in Blockchain by Omkar
• 69,220 points
730 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,063 views
0 votes
1 answer

Solidity mocha : address is not a contract error

Try the following: // Initialize contract variable with ...READ MORE

Oct 1, 2018 in Blockchain by digger
• 26,740 points
1,065 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,004 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,923 views
0 votes
1 answer

Solidity how to solve “Error Encoding arguments ” error while using create button?

When you pass multiple arguments, you need ...READ MORE

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

How to use Coinbase send_money API?

<?php require_once(dirname(__FILE__) . '/../lib/Coinbase.php'); // Create an application at ...READ MORE

Sep 12, 2018 in Blockchain by slayer
• 29,370 points
1,872 views
0 votes
1 answer

I am not able to change array elements globally

Remove the constant modifier from getArray(). constant functions do not write state ...READ MORE

Oct 9, 2018 in Blockchain by Omkar
• 69,220 points
695 views