Questions tagged [blockchain]

The Ethereum blockchain is a distributed database based on the Ethereum whitepaper specification and stores both the full transaction list and the most recent state.

Filter by
Sorted by
Tagged with
17
votes
1answer
13k views

Getting private keys of geth accounts

Just the opposite of this question How to import a plain private key into geth or Mist? I would like to know how can I obtain the private keys of the accounts created with geth in this way: $ geth --...
8
votes
2answers
1k views

What are the trade-offs between Ethereum's public chain and private, permissioned chains?

I see a large number of news stories and companies talking about the possibilities for private or permissioned blockchains. What are the key tradeoffs between using a permissioned/private chain and ...
6
votes
1answer
3k views

How many contract are currently deployed on the Ethereum blockchain?

I was recently asked what percentage of transactions represent smart contract deployments on Ethereum, and had no immediate answer. It is probably easier to ask how many contracts are currently ...
1
vote
1answer
394 views

Is it possible to embedd the UI of DApp in the blockchain?

I have read the answers for this question as well as their linked resources, but I didn't found the answer for the following question: is it possible to embedd the UI of ÐApp in the blockchain? If I ...
1
vote
1answer
2k views

Set watch for ethereum address transaction using web3js

I want to set watch for my public address. So i can get all transaction for that address. My code is: var filter = web3.eth.filter({ address: ["0x2A7146700BCe4A574eE36D5e9cd6CF7d8871aEB6"] }); ...
10
votes
1answer
5k views

How can I store big files on the blockchain?

I can hardly create transactions larger than 100kiB. I am wondering, is it possible to store huge files (several MiB or GiB) on the blockchain? If so, how?
3
votes
1answer
2k views

Difference between Dapps, digital wallets and smart contracts

What is the difference between Dapps, digital wallets and smart contracts? I have just started learning ethereum. So there is much of confusion for me. From my understanding: Dapp is an application ...
2
votes
1answer
340 views

sendTransaction from iPhone app

How do I call sendTransaction from within an iPhone app? I was thinking of running a web to Geth proxy where the iPhone app would call the Api exposed by the proxy which in turn calls my self hosted ...
1
vote
1answer
7k views

How to use web3 to send money from wallet A to wallet B?

var myContract = web3.eth.contract(abi); var address = contract address; var contract_data = myContract.at(address); var sender = '0xd3aaa525c087978133abb517593ea334f16abd1f'; var receiver = '...
14
votes
4answers
10k views

getting error on max invalid genesis file: hex string has odd length

I am trying to create a genesis block on my mac for a local ethereum network but I am getting the error: invalid genesis file: hex string has odd length when i do it. My code is the following: { ...
8
votes
1answer
612 views

Blockchain size projections [duplicate]

What are the growth projections for the size of the Ethereum blockchain? Is it too early to start talking about the need for side chains? Will economics naturally pressure DAPPS to either choose the ...
4
votes
1answer
584 views

What was the first block mined with Homestead?

What was the first Homestead mined block? 1,150,000 was planned if someone can confirm? https://ethereum.stackexchange.com/a/1834/264 can one see that its a homestead block by some property? ...
4
votes
2answers
2k views

Missing trie node only on some blocks > is it possible to resync a specific Block?

I'm trying to trace some transactions and I'm getting the "Missing trie node" warning only on some specific blocks, but not on others I've read a solution that suggests to delete the chaindata folder ...
16
votes
3answers
24k views

How to set up a Private network and connect peers in geth?

I am trying to setup a private network and trying to connect peers. Currently I'm trying it on my laptop and desktop (both of them are connected to different internet). I run the below command in ...
17
votes
2answers
12k views

In Mist browser how can I move the data (blockchain) to another drive on Mac OSX?

My Mac "System" drive is almost full. As I actually have two drives, I want to move the blockchain from the default location to the second drive. How can I do it ?
28
votes
4answers
25k views

Can I download the whole blockchain from somewhere?

Bitcoin used to offer sharing/downloading a bootstrap.dat which contains the whole blockchain. Are there alternatives to getting it trickling through the peer-to-peer network? Can I just download it ...
17
votes
4answers
17k views

How to find contract's address?

I successfully setup a private blockchain and created the "hello world" contract according to tutorial from etherium web site. One thing that I can't figure out is how to find the contract later. I ...
16
votes
7answers
16k views

Question on the terms 'distributed' and 'decentralised'

I am writing a paper on distributed ledger technologies, an umbrella term I have borrowed to put everything that has any relation to blockchains and distributed consensus. Under this umbrella term I ...
9
votes
2answers
12k views

What is the exact data structure of each block?

is there any document / diagram describing Ethereum block structure in similar way as https://en.bitcoin.it/wiki/Block? I know I can find implementation at https://github.com/ethereum/pyethereum/...
7
votes
2answers
6k views

What diagrams exist to illustrate the Ethereum blockchain creation process?

I have found the below diagram (and this explanation) useful in understanding how blockchains work in general: [Illustration by Matthäus Wander (Wikimedia)] This answer goes on to say that ...
17
votes
6answers
12k views

Best way to test a smart contract

I just want to deploy and call a simple sample smart contract only for testing purpose. Do I need to download the entire ethereum blockchain? Its too huge and takes too long to download. Can someone ...
7
votes
3answers
4k views

How can you parse blockchain files stored in a local node to get blocks and transactions details?

I want to get all details of blocks and transactions without using event logs. For example, I want to get a list of of transaction data which are sent to a specific contract. How can I parse local ...
15
votes
2answers
13k views

'authentication needed: password or unlock' Error when trying to call smart contract method via web3

I am trying to call the smart contract method (deployed on remote ethereum account) from my nodejs DAPP, and getting the following error- Error: authentication needed: password or unlock at ...
7
votes
1answer
11k views

Solidity: Is there a way to get the timestamp of a transaction that executed?

Is there a way for a contract to be able to get the exact time someone called a function in it? For example, if someone sends funds to the contract address, is there a timestamp recorded by the ...
7
votes
3answers
1k views

What is actually removed during a contract suicide, and why doesn't this cause the blockchain to change?

I'm trying to get my head around how contract suicides work, and what actually happens during them. I understand why we use them. This post states that when the SUICIDE opcode is executed, the data ...
14
votes
2answers
8k views

How to reduce chaindata database size?

Currently chaindata size is more then 10.02 GB. Is there any solution to reduce the size of stored data? Is there a way to store particular database and keep entirely the functionality of client (e.g....
12
votes
2answers
3k views

Why do we need both nonce and mixhash values in a block?

Looking over the sample genesis blocks, I notice that both nonce and mixhash values can be assigned independent values. Reading the yellow paper it's mentioned that: mixhash: is a 256 - bit hash ...
7
votes
1answer
3k views

Executing a Smart Contract in a Mobile App

I am new to the world of Blockchain and Ethereum has indeed become a second name for open source Blockchain. Right now I am trying to grasp the concepts and there are really many wonderful blogs but ...
5
votes
2answers
793 views

Is it recommended to run Ethereum supernodes?

In the early days of bitcoin there was a demand for system administrators who were able to run supernodes to support the network with stable nodes and high bandwidth. Litecoin is still recommending ...
24
votes
3answers
9k views

What is a Shard?

Proof of Stake brings new concepts to the Blockchain ecosystem. In the dictionary "Shard" is defined as "A broken piece or fragment, as of pottery or glass".
17
votes
4answers
9k views

Error “no key for given address or file” when unlocking coinbase account

Using json-rpc eth_unlockAccount() method I can unlock everyone of my node accounts except coinbase. When trying to unlock coinbase account, geth responds with the message: no key for given address ...
6
votes
2answers
1k views

How do block explorers actually work?

How do block explorers interface with a chain differently than full nodes? Would it be possible to integrate block explorer features into a full node implementation in the future?
6
votes
1answer
1k views

How can you implement two way pegged Ethereum <-> Ethereum sidechain?

If you want to create an Ethereum sidechain which is two-way pegged to main (public or private) Ethereum, how can you implement sidechain? For example, How can you lock ether? How can you verify ...
5
votes
1answer
3k views

How to query the amount of mining reward from a certain block?

I want to write a script to analyze mining rewards. What is the best way to query for the amount of mining rewards of a certain block? It seems possible to query the address of the lucky miner: web3....
5
votes
3answers
4k views

How to execute Smart contracts on a private Blockchain network

I have created a private Blockchain network on my Windows system with one node. I have created accounts and was able to transfer ethers across them. Now I want to deploy smart contracts on this ...
4
votes
2answers
849 views

what is Sha3Uncles?

What is Sha3Uncles field in the blockchain? And, why is it the same for uncles 3,4 and 7 ? And why ParentHash for these uncles is also the same ? https://etherscan.io/uncle/...
4
votes
1answer
2k views

How Ethereum estimate the gas for running a contract?

I am new to Ethereum. I know gas limit and gas price well. but still confused in when sending a transaction to run a deployed contract, does Ethereum suggest an estimation of how much gas limit is ...
3
votes
2answers
791 views

Blockchain use case in healthcare

I am new to blockchain. I am trying to understand the use cases of blockchain as a technology in healthcare. There are number of articles about different cryptocurrencies. I was going through this ...
3
votes
1answer
9k views

Account is locked. How to unlock it using json-rpc? [duplicate]

When trying to send a transaction through json-rpc interface on a geth node (version 1.4.10-stable-5f55d95a, running on testnet) using eth_sendTransaction I got this error message: -32000 [message] ...
2
votes
1answer
333 views

Can contract code query the block chain?

Is it possible to have a contract whose methods iterate through the block chain? in that they can read block/transaction related data and make transactions based on them? Or monitor the block chain ...
11
votes
2answers
4k views

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 ...
10
votes
1answer
2k views

Creating multiple contracts or Single contract with struct

I would like to understand which of the following patterns is better. Say my use case is to have two types of users in my platform buyer and seller for a product, with regard to my architecture Im ...
3
votes
0answers
449 views

Ethereum blockchain size as of March 2017 (geth --fast and others) [duplicate]

What is the size of the Ethereum blockchain as of March 2017? I am just starting with geth --fast -cache=1024, but I would also be interested in other clients or other downloading methods. I know ...
2
votes
1answer
311 views

How will the number of confirmations for security change with Casper?

How will this answer change when Casper is deployed?
2
votes
3answers
2k views

for using web3.js it is necessary to install geth into your system

for using web3.js it is necessary to install geth into your system or it automatically connect with geth or ethereum blockchain? var web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:...
1
vote
2answers
568 views

Transaction mined or not?

Several hours ago I sent the transaction 0xe9cca30f9d8d2040a3c6c5ceb6601240b0c095a47ac9117dd34e36c0d66be2f7 into Ethereum testnet. When asking a node about it, everything seems right (confirmed ...
0
votes
1answer
73 views

timed commitment using ethereum blockchain

I read this paper: https://eprint.iacr.org/2013/784.pdf that introduces the idea of Bitcoin-based time commitment scheme. In which if the commiter does not open his commitment before a specific time ...
9
votes
1answer
299 views

What is the utilisation level on the Ethereum blockchain? [duplicate]

How many transactions are currently executed on the Ethereum blockchain and how does this compare to other blockchains?
9
votes
1answer
2k views

Link solc with geth problem

After upgrading to geth 1.4.4 I am no longer able to from to reference the compiler from geth. The solc compiler is installed in /usr/local/bin but this is what I get when I check for available ...
7
votes
2answers
1k views

How can I force a redownload of the entire blockchain on the mist wallet?

I'm having an invalid date issue on mist. (https://github.com/ethereum/mist/issues/525) I'd like to just try to redownload the blockchain again. How can I do that ?