Trending questions in Blockchain

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
704 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,210 points
442 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,350 points
2,715 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,210 points
374 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,360 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
662 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,210 points
434 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
733 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,191 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,350 points
623 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
705 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
605 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,210 points
342 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,200 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,210 points
332 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,350 points
842 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,210 points
880 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,350 points
4,414 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,141 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,350 points
785 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,350 points
1,427 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
659 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,210 points
507 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,350 points
2,318 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,452 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
865 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,162 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,350 points
1,637 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,350 points
1,024 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,350 points
966 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
752 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,350 points
705 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,350 points
526 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,079 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
802 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,350 points
611 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
637 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,350 points
362 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,038 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
718 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,546 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
1,910 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,350 points
1,215 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,350 points
1,899 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,015 views
0 votes
1 answer

Sawtooth Javascript SDK "Batchlist rejected" error

What you can do is use intkey-client to the ...READ MORE

Sep 19, 2018 in Blockchain by digger
• 26,740 points
898 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,210 points
674 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,445 views
0 votes
2 answers

Truffle migrate Error after run testrpc

Simple Solution: // module.exports = { // ...READ MORE

Sep 24, 2018 in Blockchain by Wasim
600 views
0 votes
2 answers

How to read CGMiner output?

the only thing that made it work ...READ MORE

Sep 17, 2018 in Blockchain by Ruby
1,007 views