Most Popular
1500 questions
15
votes
5 answers
How to transfer the whole balance of an account?
If I have an account with 5 ETH, can I send the full account balance of 5ETH to another account and have exactly 5ETH received on the second account ?
I understood that it will fail because I have no ether left to pay for the transaction fees.
If I…
Karel Striegel
- 298
- 1
- 2
- 9
15
votes
6 answers
Why not mine my own transactions?
I have a contract which needs to be updated occasionally.
So I create a transaction, sign it and send it to the network.
When I do that, I state a gas-price.
The higher the gas-price is, the faster the transaction should execute, since miners…
goodvibration
- 26,003
- 5
- 46
- 86
15
votes
5 answers
How to convert bytes to uint in Solidity
Hey is there a way to convert bytes to uint in Solidity?
arete
- 599
- 1
- 5
- 15
15
votes
9 answers
How to get the block number which is the closest to a given timestamp?
Is there any method(ology) in web3 which allows to get the block number at a given date?
In particular, I have two dates as an input and I want to effectively get all events between those two dates. I know that I can do this by having block…
nikitaeverywhere
- 307
- 1
- 2
- 9
15
votes
1 answer
How many transactions per second can Ethereum currently handle? What changes will allow the network to be able to handle more?
I've been searching for a more precise answer to this question, but I've seen a lot of conflicting information stating that Ethereum can currently handle anywhere from 12-45 transactions per second. What is the correct current number?
Then, also,…
CJ Jacobs
- 597
- 4
- 15
15
votes
3 answers
What does ** mean?
I noticed this code in open zepplins contract:
uint256 public constant INITIAL_SUPPLY = 10000 * (10 ** uint256(decimals));
I've never seen the double ** before. What does it mean?
user714171
- 641
- 5
- 13
15
votes
4 answers
How to add a file to IPFS using the API?
I have tried some APIs of IPFS like cat, ls. But I am not able to add the file using API. As there is no proper documentation of IPFS API calls.
How can I add a file on IPFS using API?
BlockA
- 857
- 2
- 7
- 15
15
votes
1 answer
Are light nodes possible in Casper?
My understanding of light nodes is they need PoW in the block headers. That PoW proves that $x amount of energy has gone into securing that chain.
With PoS, the proof that $y is securing the chain requires knowledge of blockchain state, namely…
Akhil F
- 1,928
- 3
- 19
- 29
15
votes
2 answers
What is the significance of making constructor payable?
Aren`t constructors used to initialize variable at the time of contract creation? In common patterns section in solidity documentation, payable constructor is used for withdrawal pattern example.
constructor() payable {
richest = msg.sender;
…
Anam Nizami
- 885
- 1
- 8
- 21
15
votes
4 answers
Convert bytes32 to bytes
Is there a simple way to convert bytes32 to bytes in Solidity?
I'm trying to get the length of the string passed in the bytes32 variable but everything gets returned 32 size which makes sense.
But explicit conversion does not seem to work:
bytes…
Ayrton Senna
- 251
- 1
- 2
- 5
15
votes
2 answers
How can I debug a truffle JS unit test with vscode?
I am using visual studio code and truffle and would like to easily debug my JavaScript tests.
A similar question has been asked here: how can I run a truffle test in a debugger?. This has been wrongly marked as a duplicated and not been released.
Sebastian Kropp
- 411
- 3
- 8
15
votes
2 answers
What the difference between Bitcoin and Ethereum private/public keys and address?
I am trying to find a library for creating Ethereum wallets in a web environment (PHP, JS). I found Keytheremjs lib, but if use it in a browser, this tool is very slow. But I found a lot of simple PHP libs for generating keys for a Bitcoin.…
vellmur
- 265
- 2
- 6
15
votes
1 answer
Is functional programming possible on the EVM?
Is there a technical limitation preventing functional programming on the EVM? For instance the cost of computation?
I have heard that FP is "too costly". Is that correct? If it is, why?
Because "functional programming" is a broad category, this is a…
Karl Floersch
- 1,691
- 3
- 19
- 24
15
votes
1 answer
How to enable and mine Testnet (Morden)?
I have installed Ethereum Wallet on Ubuntu 14.04.
After the installation was completed, I realized that my Testnet (Morden) mode was disabled.
Looking in the Develop -> Network menu, the Main network is selected and I cannot change it to Testnet.…
phuong
- 455
- 2
- 4
- 6
15
votes
1 answer
Does Ethereum Suffer From Transaction Malleability?
Does Ethereum in its current form (Homestead, specifically Geth v1.3.6) have transaction malleability issues similar to Bitcoin? If so, is there a standard method for deriving a normalized hash for Ethereum transactions?
Transaction Malleability =…
Eric Scrivner
- 253
- 1
- 6