Most Popular
1500 questions
14
votes
2 answers
Is there a way to detect which compiler version produced a contract binary?
Given the compiled bytecode on the blockchain, is there a way to detect which compiler version is being used in order to verify source matches bytecode without having to bruteforce all available compiler versions / outputs?
tayvano
- 15,961
- 4
- 45
- 74
14
votes
2 answers
Truffle's Ganache VS Testrpc
Is there any major difference between Truffle's Ganache and TestRPC? Do they run irrespective of each other as test blockchains, are there any side effects running both at same time? Is the only improvement that Ganache has a more handy ui?
jamarcus_13
- 247
- 2
- 12
14
votes
6 answers
How to create a temporary account for testnet with funds?
I'm a newbie in using the ethereum wallet.
After I completely installed and downloaded data for the testnet I create a new account but my new account has nothing (0.00 Eth).
It lead to I can't do anything by this account. I try to create a new…
phuong
- 455
- 2
- 4
- 6
14
votes
5 answers
How to Compile and Deploy a Smart Contract without running a full node?
I'm new to solidity and smart contract programming. I have already made and deploy smart contracts successfully, but always using Mist.
Now I'm not able to do so, because I can't complete a node update with the full blockchain, and now I feel that…
Moisés Briseño Estrello
- 869
- 2
- 12
- 25
14
votes
2 answers
Is address(this) a valid address in a contract's constructor?
When does a smart contract's address first become valid? Is the address during the execution of the contract, or only after it's been fully instantiated and initialized?
In other words, is a contract's address valid in its own constructor?
Thomas Jay Rush
- 9,943
- 4
- 31
- 72
14
votes
3 answers
How to create an iterable key->value structure in Solidity?
I am trying to create a framework for users to offer generic goods for sale. For example, a single generic item (a Gizmo) might have 14 people selling it for different prices and from different parts of the world. To enable this, I need to manage a…
PANDA Stack
- 353
- 2
- 7
14
votes
5 answers
Where can I find some Solidity / Smart Contract source code examples?
Is there an easy to access list of Solidity / Smart Contracts / Dapps source code examples?
Related information:
Is there a list of DAPPS that are already useable?
Where can I learn how to develop DApps using the solidity programming language?
BokkyPooBah
- 40,274
- 14
- 123
- 193
14
votes
1 answer
How can I reliably induce a blockchain fork for testing purposes?
I would like to reliably induce a fork on a private testnet so that I can test the behavior of off-blockchain code that interacts with contracts. (see related questions as to why I would want to do that). Would probably useful for automated…
Paul S
- 4,271
- 1
- 22
- 48
14
votes
2 answers
Why does a simple function returning a 'string', call another contract?
This trivial contract:
contract Test {
function test() returns (string) {
return "foobar";
}
}
Results in assembly code output (in the solidity web compiler) for the function 'test' that looks like this:
tag 2 function…
Nick Johnson
- 8,144
- 1
- 28
- 35
14
votes
2 answers
Max/min values of standard data types
Where can I find the maximum and minimum values that various types can store? And an epsilon value for floats?
I'm looking for something like C's limits.h, but for Solidity / EVM.
Tom Hale
- 3,107
- 4
- 20
- 37
14
votes
2 answers
what does `wad`stand for
in many token contracts the amount parameter is called wad
I was not able to make sense what this means or where it comes from. Does someone have a clue?
Micha Roon
- 2,203
- 21
- 36
14
votes
4 answers
Solidity/Remix Error : The constructor should be payable if you send value. How to solve this?
pragma solidity ^0.4.16;
contract MyToken {
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
// Initializes contract with initial supply tokens to the creator of the contract
function MyToken (
…
ragingpanda
- 141
- 1
- 1
- 3
14
votes
1 answer
geth init, what are the arguments?
this command works but yields a warning of future removal so I'd like to use new option init :
➜ ~ go-ethereum/build/bin/geth --datadir="~/testgeth/" --genesis ~/testgeth/customgenesis.json --port "30304" --networkid 6776 --rpc…
euri10
- 4,640
- 5
- 24
- 55
14
votes
5 answers
REST-Like API for Ethereum
I'm researching REST-Like API services for Ethereum in order to use it on our service. However, there are only a few services I could find. I'd very grateful if you could share the other services.
REST-Like API (I'm looking for these kind of…
zono
- 1,473
- 5
- 17
- 30
14
votes
3 answers
Multiple transactions from same address
I would like to create multiple transaction from the same address at the same time. Since every transaction needs nonce (tx count of the sender address) I can ask geth for the current count and create first tx, then increment nonce and create the…
Ales
- 915
- 1
- 7
- 10