Trending questions in Blockchain

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,220 points
688 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,370 points
943 views
0 votes
1 answer

Cant decode hex sting into decimal. Getting TypeError.

On the line where it shows error, ...READ MORE

Jul 6, 2018 in Blockchain by slayer
• 29,370 points
4,785 views
0 votes
1 answer

Handling UI when a trasaction is in pending (MetaMask)

You need to use the state of ...READ MORE

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

Transfer the gas value of contract to my own address

Works fine for me: pragma solidity ^0.4.0; contract Test ...READ MORE

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

How to generate Bitcoin address in Ruby?

In your generate_address_from_public_key_hash method, the checksum should be over ...READ MORE

Aug 22, 2018 in Blockchain by slayer
• 29,370 points
2,684 views
+2 votes
1 answer

Composer playground - issue on RHEL

Hey, Renu353. There could be more than ...READ MORE

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

How to choose which function is called first in Node Js

You can do something like: infuraProvider.getBlockNumber().then(function(blockNumber) { ...READ MORE

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

Calling functions from other contracts solidity

This code worked for me: pragma solidity ^0.4.2; contract ...READ MORE

Sep 17, 2018 in Blockchain by digger
• 26,740 points
1,520 views
0 votes
2 answers

Creating a private/public key with 64 characters that are already known using bitcoinjs

//public-key var address = eckey.getBitcoinAddress().toString(); var privateKeyBytesCompressed = privateKeyBytes.slice(0); ...READ MORE

Sep 10, 2018 in Blockchain by Misty
1,775 views
0 votes
1 answer

Intl.NumberFormat() does not show the Bitcoin Ƀ Symbol

According to bitcoin.it (https://en.bitcoin.it/wiki/Bitcoin_symbol), The ISO 4217 currency code for ...READ MORE

Aug 27, 2018 in Blockchain by slayer
• 29,370 points
2,414 views
0 votes
1 answer

Error when Installing Ethereum: Package 'ethereum' has no installation candidate

It seems that there is a compatibility ...READ MORE

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

Python request module for bitcoin json rpc

This should work: #!/usr/bin/env python import getpass import json import requests ...READ MORE

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

Bitcoinj send payment from a wallet

The problem actually was with the input ...READ MORE

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

How to call function in one contract from another contract in private blockchain?

Please check whether you have byzantiumBlock: 0 in your ...READ MORE

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

Why is (startingBalance - endBalance) > (gasUsed * gasPrice) for an Ethereum transaction?

startingBalance and endBalance are BigNumber objects. Change ...READ MORE

Oct 1, 2018 in Blockchain by digger
• 26,740 points
860 views
+5 votes
1 answer

What are the programming languages I should know to become a Blockchain Developer?

Well, what programming language you have to ...READ MORE

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

Corda: uploading a file, attach and download

Hey, i found an example that i ...READ MORE

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

Nodejs Express: Getting different output in console.log and callback

If your getOrderStatus() function is like this: function getOrderStatus(_orderId, callback) ...READ MORE

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

Truffle migration error (test rpc is running)

1) Run the following command: npm install -g ...READ MORE

Oct 3, 2018 in Blockchain by slayer
• 29,370 points
757 views
+6 votes
3 answers

Why don't we consider Git as a Blockchain?

Blockchain is not just any chain of any blocks. Blockchain is when there ...READ MORE

Sep 7, 2018 in Blockchain by Rowski
3,403 views
0 votes
1 answer

Can't install pyethereum module

The module's name is ethereum, not pyethereum. Using the ...READ MORE

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

How to connect to *coin RPC-Server with PHP

If you want to connect inside your ...READ MORE

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

Store contract results tag in a variable

then() takes a function as argument that is ...READ MORE

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

How to create an asset on Bigchaindb server using http call

You could start like this: method = POST URL ...READ MORE

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

Contract deployment is raising gas issue while transaction and issue vary on various networksbl

Starting time can't be in the past. new ...READ MORE

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

How to register a user in Hyperledger Fabric?

Best practice would be to leverage an ...READ MORE

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

Can't send transaction even if I use an example from official Ethereum webpage

As I understand your question you are ...READ MORE

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

Repeating transactions hangs - web3js, local geth

If you are sending transactions back-to-back from ...READ MORE

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

XMLHttpRequest is not defined while sending request to blockchain service via C#

use post data in url link and ...READ MORE

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

How to achieve simple OOP in Solidity?

contract A { uint public ...READ MORE

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

Testrpc Error: listen EADDRINUSE :::8545 on Mac

Another process is already using the port ...READ MORE

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

Unable to unmarshal non-string into Go struct field SendTxArgs from of common.Address

Probably you should specify the default_account for client(sender address). In my ...READ MORE

Aug 28, 2018 in Blockchain by Johnathon
• 9,090 points
2,187 views
0 votes
1 answer

How to round a number down to 8 decimal places if its over 8 decimal places in Javascript

Try it in this way: function nrOfDecimals(number) { ...READ MORE

Sep 12, 2018 in Blockchain by slayer
• 29,370 points
1,512 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
1,693 views
0 votes
1 answer

Why Gas Used By Txn is different when invoking the same function in the same smart contract?

The input data might be different, but ...READ MORE

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

Solidity, javascript Wrong format: invalid address

The contract lacks initialization, at first. var contract ...READ MORE

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

How do I compile a piece of Solidity Code using eris' javascript?

The easiest way to compile Solidity is ...READ MORE

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

How to run Meteor insert within a Fiber?

Just replace events.watch(function(error, event) { ... }); with events.watch(Meteor.bindEnvironment(function(error, event) ...READ MORE

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

Web3j: Writing operations on a contract always throw “java.lang.ArrayIndexOutOfBoundsException”

That exception is thrown when you pass ...READ MORE

Oct 1, 2018 in Blockchain by slayer
• 29,370 points
653 views
0 votes
1 answer

Web3 1.0: What does `web3.eth.call(tx)` return for a contract creation?

The returned bytestring is the deployedBytecode of the contract, ...READ MORE

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

“make” build ‘EC_GF2m_simple_method’ was not declared in this scope error in centos7

Step 1: I assume that your present ...READ MORE

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

How to generate litecoin using pycoin?

In the secret_exponent_to_wif function def secret_exponent_to_wif(se, compressed): ...READ MORE

Aug 29, 2018 in Blockchain by digger
• 26,740 points
2,035 views
+3 votes
1 answer

What is the difference between online and offline hyperledger composer?

Hey @Renu353! Well, it's good that you ...READ MORE

Sep 21, 2018 in Blockchain by Omkar
• 69,220 points
908 views
0 votes
1 answer

Access variables through auto-generated getters from a different contract

You just need to pass it in ...READ MORE

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

Getting wrong result from SHA256 than what is expected

It's just an encoding issue - don't ...READ MORE

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

Unable to enroll user in new org

The thing is by default, fabric-ca only has ...READ MORE

Aug 25, 2018 in Blockchain by Christine
• 15,790 points
2,210 views
0 votes
1 answer

ethminer failed to submit hashrate

The pool you are linking with the -F flag ...READ MORE

Sep 24, 2018 in Blockchain by digger
• 26,740 points
879 views