Trending questions in Blockchain

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,210 points
380 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,210 points
1,065 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,210 points
357 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,182 views
+11 votes
4 answers

How do I create an ether wallet?

The Ethereum Wallet is a gateway to decentralized applications ...READ MORE

Sep 14, 2018 in Blockchain by Shiva
1,503 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,350 points
1,500 views
0 votes
4 answers

Unable to run truffle@2.1.2 migrate --network live. “Exceeds block gas limit”

A simple solution to avoid this is: module.exports ...READ MORE

Sep 28, 2018 in Blockchain by Ludo
1,373 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,350 points
1,276 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,002 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,350 points
1,432 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,685 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,210 points
861 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,210 points
940 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,670 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,210 points
2,988 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,371 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
2,622 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,385 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
1,888 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
459 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,450 points
5,259 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,350 points
1,343 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,210 points
780 views
0 votes
1 answer

Where is the geth.exe in the Ethereum mist?

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

Oct 10, 2018 in Blockchain by Omkar
• 69,210 points
678 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
578 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,210 points
674 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,297 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,053 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,429 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,350 points
1,231 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,122 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,350 points
2,102 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,195 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,350 points
2,921 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,210 points
628 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,146 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,382 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,350 points
1,517 views
0 votes
1 answer

Web is not injected by metamask

You need to do import the Web3 ...READ MORE

Oct 3, 2018 in Blockchain by slayer
• 29,350 points
816 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,203 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,408 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
932 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,210 points
537 views
0 votes
1 answer

Creating an account with web3.js v0.2.6

The answer is let a=web3.personal.newAccount('!@superpassword') H ...READ MORE

Oct 9, 2018 in Blockchain by Omkar
• 69,210 points
525 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,717 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
820 views
0 votes
1 answer

How to make a class that fits Blockchain.info Json?

Hey, I found a simple solution for ...READ MORE

Sep 18, 2018 in Blockchain by digger
• 26,740 points
1,379 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,350 points
1,639 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,210 points
510 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,350 points
3,557 views