Most Popular

1500 questions
11
votes
1 answer

How to get raw ethereum transaction hash

I searched around for an answer to this question, however couldn't find one. So let's assume we've a raw ethereum transaction and before broadcasting we'd like to know the transaction hash. Is it possible to find out the hash before it's being…
Kristaps
  • 359
  • 1
  • 4
  • 14
11
votes
2 answers

Why can't a contract wake up and run itself?

This question is not about external solutions, but are there technical limitations to why a contract that has funds, can't schedule itself to run at a future block? Could the Ethereum protocol have been designed to include this functionality and if…
eth
  • 85,679
  • 53
  • 285
  • 406
11
votes
1 answer

Remix Warning: This looks like an address but has an invalid checksum

I have the following contract: pragma solidity ^0.4.13; contract Test { function test() public payable { address(0xCF5609B003B2776699EEA1233F7C82D5695CC9AA).call(1); } } The Remix static code analysis tool gives me a…
medvedev1088
  • 10,996
  • 5
  • 35
  • 63
11
votes
6 answers

How to decode input data with ABI using golang?

There is a tool on npm ethereum-input-data-decoder. And yes, i can read input data as hex. And i hope that i can decode transaction's inputdata using golang. For example…
hundred lee
  • 111
  • 1
  • 1
  • 3
11
votes
3 answers

TestRPC and Metamask: hanging on pending transactions

I'm using Remix and connecting to Testrpc via Metamask. I can successfully launch contracts to testrpc, but then it hangs on the subsequent calls that Remix makes to the public methods (Remix says "9 pending transactions" which never go…
will_durant
  • 1,154
  • 1
  • 9
  • 21
11
votes
1 answer

Sign raw transaction offline with C++ on arduino

I'm exploring the IoT side of the EVM. I've programmed Arduinos and ESP8266s to interact with a Geth JSON RPC. I'm trying to be minimalistic and avoid NodeJS on the Geth JSON server side. Currently the ESP8266 just unlocks the accounts via the…
GusGorman402
  • 441
  • 5
  • 15
11
votes
2 answers

Truffle — testing enum values

I am using truffle to develop a simple smart contract. I have the following contract: contract Puppy { enum State { good, bad } State public status; State public constant INITIAL_STATUS = State.good; function Puppy() { status =…
Dave Sag
  • 879
  • 1
  • 11
  • 22
11
votes
1 answer

how to produce enode from node key?

What is the algorithm to produce a bootnode's enode url ? For example, I have this data: Node key: 59233b25bfa4c214a8713e07a395a5d11478de10f36c6c80ba5369541f73bc44 IP: 127.0.0.1 Port: 30303 From these 3 fields how do I create the enode url ? What…
Nulik
  • 4,061
  • 1
  • 18
  • 30
11
votes
3 answers

Source "" not found: File outside of allowed directories. [solidity/solc]

I'm using vim with the syntastic plugin. I'm getting this message: Source "zeppelin-solidity/contracts/token/StandardToken.sol" not found: File outside of allowed directories. [solidity/solc] when editing a .sol file in /contracts (as per…
Tom Hale
  • 3,107
  • 4
  • 20
  • 37
11
votes
6 answers

Flatten Truffle Solidity Contracts for Etherscan's `Verify Contract Code` Feature

Etherscan.io has a Verify Contract Code feature that takes the inputs Solidity Contract Code and Constructor Arguments ABI-encoded. Question: Is there a tool to flatten your solidity contracts (written in conjunction with the use of Truffle), and…
Nyxynyx
  • 1,167
  • 1
  • 12
  • 30
11
votes
5 answers

Ethereum and Rails Tutorials

I am looking for some kind of walk through or tutorial about how to use ethereum with an ruby on rails application? Is there anything out there?
xpnimi
  • 723
  • 1
  • 7
  • 10
11
votes
5 answers

How to list ALL Ethereum addresses with a positive balance

Using web3 I can query the balance of any fixed account with web3.eth.getBalance. Assuming I have the entire blockchain downloaded, how can I recover the list of all addresses that have a positive balance at this moment?
Hooked
  • 412
  • 1
  • 3
  • 10
11
votes
5 answers

What are legitimate uses of tx.origin?

It is known that msg.sender must be used for authentication instead of tx.origin (the difference explained here). Some static analysis tools (e.g., in Remix) detect all usages of tx.origin as potential vulnerabilities and advise to use msg.sender…
Sergei Tikhomirov
  • 1,062
  • 8
  • 21
11
votes
1 answer

Constructor not working properly

After I mine the following contract giving the array [true, true, true] as _bools I would expect [true, true, true] to be returned by getBools(). Instead [false, true, true] is returned. Is there something obviously wrong I'm doing? contract Broken…
Ivan
  • 113
  • 4
11
votes
3 answers

Why memory arrays are unresizable?

I don't know the required length of my array before execution of the function.. why technically can't I resize my memory array? What is the common way to go around of this problem, if you are also facing it. I could make a storage array, and clear…
EralpB
  • 541
  • 5
  • 14