Most Popular

1500 questions
28
votes
2 answers

How to pass arbitrary bytes to a function in Remix (2017)

According to this question I could write a simple contract like: contract SimpleStorage { bytes input; function setInput(bytes enterBytes){ input = enterBytes; } } Using "0x1234" as a parameter in Remix "does not work" and stores…
floyd
  • 599
  • 1
  • 5
  • 9
28
votes
2 answers

What is Ethereum's inflation rate? (how quickly will new ether be created)

It seems like the answer is still in flux, but it would be nice to have a single answer to this question that we can update over time.
Brian Armstrong
  • 383
  • 1
  • 3
  • 7
28
votes
6 answers

having a problem with solc-x version "solc 0.6.0 has not been installed"

I m trying to print out the variable (compiled_sol) as you will see in the code below of the python file named deploy.py so I can deploy my smart contract, but I keep running at this error *****INFO: Could not find files for the given…
Houssam DERFOUFI
  • 383
  • 1
  • 3
  • 8
28
votes
6 answers

Is there a way to generate ethereum paper wallets?

Is it possible to store ether on paper wallets or generate printable private keys offline somehow?
q9f
  • 32,913
  • 47
  • 156
  • 395
27
votes
3 answers

How to use address.call{}() in Solidity

I have seen here and several other places that the correct way to send ether from a contract to an address is to call the .call{}() method. Then here, I have seen the method being used with arguments, like so: addr.call{value: msg.value, gas:…
YulePale
  • 1,843
  • 3
  • 19
  • 46
27
votes
2 answers

How can we integrate IPFS with ethereum in DApps?

How can integration of IPFS with ethereum be done in DApps? Which parts of a DApp will be on IPFS? Do any examples exist? If a DApp's site is hosted on github, is it not centralized?
siddesh sangodkar
  • 733
  • 1
  • 7
  • 13
27
votes
2 answers

Is block.timestamp safe for longer time periods?

I would like to set a timer like uint timeout = now + 1 year; Is it possible that a miner cheats the timestamp of the block that it's included more then let's say a month. So if I need roughly 1 year until timeout (+/- one month) would that be…
Jerry
  • 734
  • 1
  • 7
  • 14
27
votes
1 answer

Are events permanently stored and reliably available to contracts in the future?

I've seen this forum post about using Ethereum as an event store: Events in Solidity, using blockchain as eventstore. However, it doesn't seem conclusive. For instance it says: I confirmed with Vitalik and since confirmed by Chris that events are…
Noah Thorp
  • 783
  • 1
  • 7
  • 11
27
votes
2 answers

Ether Historical Prices

I am looking for historical datasets of the price of Ether. Similar to Bitcoin closing market price on blockchain.info or Coindesk OHLC dataset. Datasets in raw form are preferred (.json or .csv). Where can I find such datasets?
wacax
  • 1,388
  • 2
  • 13
  • 29
27
votes
2 answers

Why aren't Solidity sha3 hashes not matching what other sha3 libraries produce?

Solidity has a function named sha3 and I tested it with an empty string input. It is not matching what other sha3 libraries produce. I see contracts written by others using the same sha3 function in Solidity, and their hashes also do not match. …
eth
  • 85,679
  • 53
  • 285
  • 406
27
votes
5 answers

Why write uint256 instead of uint if they're the same thing?

Is uint the same as uint256 in Solidity? If this is the case, then why do a lot smart contracts make extensive use of uint256 and not just write uint instead? Is this merely to be explicit?
Elie Steinbock
  • 564
  • 1
  • 4
  • 11
27
votes
6 answers

Can I square root in Solidity?

Is it possible to square root 50 or should I use 7.071067. I'm very new in programming and I also understand that it's possible in all other languages, but I'm not able to see where the limitations are.
Sileniced
  • 537
  • 1
  • 5
  • 10
27
votes
1 answer

Geth node starts to sync from the beginning after fast sync

I have synced using the --fast command. Now how should I proceed? I tried stopping it, and then running geth --rpc but it says: Last Header #1311471 Last Block #0 Fast Block #1310224 What should I do to stay synced?
kostasps
  • 373
  • 1
  • 3
  • 5
27
votes
3 answers

Private info in an Ethereum smart contract

Is there any way to store info on a smart contract, and keep it a secret? If a contract has a state variable that is not public like: contract foo{ uint public publicVariable; uint notPublic; } is "notPublic" truly not public? what if it…
zunior
  • 1,312
  • 13
  • 18
27
votes
5 answers

Truffle does not work - could not find suitable configuration file

I have searched some answers here and on google as well but none of them actually apply to my case. I tried on console and power shell to run truffle migrate but I keep getting could not find suitable configuration file I saw that sometimes…
EAzevedo
  • 691
  • 1
  • 7
  • 11