0

What does Ethereum's blockchain looks like? Are there only transactions of the states' changes, or are the accounts in every block?

Thank you

3

The transactions and their input data, and block header information such as the hash of the previous block and miner who mined it.

This is probably too much information all once. This block explorer lets you look around.

block 5,454,817: https://etherscan.io/block/5454817

There's a header and 198 transactions. The "state" is not included in every block since the bandwidth would be crushing. There's no need for it since each node can compute the state independently based on the transactions it sees.

Hope it helps.

  • I see, so how many trees are in a block? is there a contract code in every block (or only in blocks with contract creation transaction)? When are blocks include a state of accounts? – adi Apr 17 '18 at 15:01
3

To get a more visual view, you can head over to ethviewer, and here's a snap of it. http://ethviewer.live/

The dots are transactions. These transactions are validated and included in blocks by miners. Transaction contain information of

  • The value is being sent from one account. This account can be a contract or Externally owned account.
  • Transactions may include any input data, depends on the sender.

As said by @rob-hitchens states are not included in the block. The current state can be calculated on the basis of transactions and ethereum client which connects to the blockchain, does this thing for you and provides latest information.

  • I upvoted because it's such a cool visualization. Thanks. – Rob Hitchens - B9lab Apr 21 '18 at 20:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.