This website uses cookies

Read our Privacy policy and Terms of use for more information.

Accounts, transactions and gas

Lesson 2 of 8
By the end of this lesson you’ll be able to read an Ethereum transaction on a block explorer, work out its fee from three numbers, and explain why the amount of ether in existence has gone up since 2024 after falling for eighteen months.
A collage of a waiter walking away with a silver tray held up. On it sits one small charred square of blue paper, still smoking. Behind him the rest of the sheet has gone to a great cloud of smoke and black ash.

Two kinds of account

Everything on Ethereum belongs to an account, and there are two kinds. An externally owned account is “controlled by anyone with the private keys,” in ethereum.org’s words. That’s your wallet.

A contract account is “a smart contract deployed to the network, controlled by code.” Nobody holds a key to it; the code decides what it does, and lesson 3 is about that.

Both kinds hold four things: a balance in ether; a nonce, which for a wallet is a count of the transactions it has sent; a code hash, empty for an ordinary wallet; and a storage root, the fingerprint of any data the account keeps.

Your address is made from your public key, by taking “the last 20 bytes of the Keccak-256 hash of the public key” and putting 0x in front.

Creating a wallet account costs nothing. Deploying a contract costs gas, because it takes up space on every computer that runs the network.

Externally owned account
What it is
Your wallet
Who controls it
Anyone with the private keys
Cost to create
Nothing
Contract account
What it is
A smart contract on the network
Who controls it
Its code; nobody holds a key
Cost to create
Gas

Continue with The Crossover Pro

The rest of this story, plus two paid editions a week. $24.99 a month, or $249 a year. Already a member? Sign in above.

Subscribe to Pro