Most Popular

1500 questions
11
votes
6 answers

Are there any alternative programmable networks to Ethereum?

Are there any alternative networks to Ethereum which are also being developed (which can compete) and can work in similar way in terms of storing and executing decentralized programmable code blocks? Which may for example deal with certain…
kenorb
  • 1,171
  • 1
  • 12
  • 28
11
votes
2 answers

Debugging JS unit tests with truffle framework in VS code

Is there a way to debug JS unit tests for smart contracts? I use VS Code for development, and when I try to run a Mocha debugger it complains that artifacts is not defined. I briefly looked at truffle code, it looks like it adds artifacts, contract…
Andrey
  • 1,147
  • 1
  • 12
  • 19
11
votes
2 answers

Is it possible to call another contract from a contract maintaining the msg.sender of the original caller?

Imagine that Alice calls a contract method C1 and that method calls another method in contract C2. Regularly msg.sender equals the Alice Account in the C1 method. And msg.sender equals the C1 contract address in the C2 method. I would like to know…
jbaylina
  • 775
  • 5
  • 12
11
votes
1 answer

Getting complete state of a smart contract

From the yellow paper, I figured out that a contract has 4 components 1. nonce, 2. balance, 3. code, 4. storage. To know about the current state of a smart contract we need to know the all these components of a smart contract. If I am using a geth…
sourav
  • 347
  • 2
  • 11
11
votes
2 answers

How is the Two Generals Problem solved with proof of work?

Here is an email where Satoshi Nakamoto explains how PoW solves the Byzantine Generals' problem http://satoshi.nakamotoinstitute.org/emails/cryptography/11/ The proof-of-work chain is a solution to the Byzantine Generals' Problem. I'll try to…
medvedev1088
  • 10,996
  • 5
  • 35
  • 63
11
votes
4 answers

Is it possible to implement decentralized autonomous organization in Ethereum?

Is it possible to implement a DAO (Decentralized Autonomous Organization) with Ethereum? If so, has it been done in an effective way? Are there any examples?
high110
  • 4,756
  • 1
  • 21
  • 43
11
votes
1 answer

Error: personal_unlockAccount method not implemented

Using web3 under nodejs I suddenly want to unlock my account before calling a DAO contract function: var Web3 = require('./node_modules/web3/lib/web3'); // dont override global variable if (typeof window !== 'undefined' && typeof window.Web3 ===…
knocte
  • 1,929
  • 1
  • 16
  • 28
11
votes
4 answers

Ethereum private chain resets back to block 0 when restarted

I am currently running the latest geth 1.8.1 Iceberg version. I set up a private ethereum network as per tutorial and everything including mining works fine, but every time I restart geth - the chain resets back to block number 0, all the mining…
Saliya Perera
  • 113
  • 1
  • 4
11
votes
6 answers

Cant get address balance using web3js

I am trying to write a function to get the ethereum balance of a wallet address via web3js. Problem is I am unable to make it work for some reason. Here is my code running in VSCode: const testnet = 'https://ropsten.etherscan.io/'; const…
Zaid Amir
  • 312
  • 1
  • 3
  • 15
11
votes
2 answers

What is the maximum input value for function uint256 parameter?

folks! I am new to Solidity, and have a question, that may sound silly, but I can't really figure it out. So, I have this simple function: function uintTest(uint256 n) returns (uint256) { return n; } I thought, the max value for uint256…
Ruham
  • 963
  • 2
  • 12
  • 34
11
votes
2 answers

How to access files hosted on swarm?

The swarm roadmap suggests that the orange paper series and a landing page is released on swarm. There is also an internet gateway for swarm: http://swarm-gateways.net/bzz:/theswarm.eth/ But how to access content hosted on swarm using the bzz://…
q9f
  • 32,913
  • 47
  • 156
  • 395
11
votes
3 answers

How is Rinkeby different from mainnet?

What makes Rinkeby a "testnet"? I understand it's a parallel network so my ether there has no effect on the mainnet ether. But how is it different technically? But does it still run on miners? What incentive would miners have to maintain the…
Nathan H
  • 243
  • 1
  • 2
  • 8
11
votes
3 answers

How can all transactions sent to an address be found?

Currently it is possible to see only the last 100 transactions from sites like etherchain (link to TheDAO contract transactions), how can all transactions sent to an address be seen?
Valentin
  • 123
  • 1
  • 5
11
votes
2 answers

How to run a multiline script in truffle console?

I'm following truffle tutorial to interact with a deployed contract and have a naive question. How do I run this block of multiline scripts in truffle(development)> without collapsing it into a single line? var account_one = "0x1234..."; // an…
sinoTrinity
  • 377
  • 2
  • 8
11
votes
4 answers

A list of token holders at a specific time

What's the best way to get the list of token(ERC20) holders with their balance at a specific time? Thank you.
HungryBear
  • 111
  • 1
  • 1
  • 4