Skill 7.1.2
Describe transactions, blocks and the transaction lifecycle
Key Concepts
A transaction is a signed instruction from an EOA: a transfer of ether, a contract call or a contract creation. Its fields include the sender's nonce (which orders transactions and prevents replay), the recipient, value, data, gas limit, fee fields and chain ID. Transaction types include legacy (type 0), access-list (type 1), EIP-1559 (type 2), blob transactions for rollups (type 3) and, since the Pectra upgrade, set-code transactions that let an EOA delegate to contract code (type 4).
After signing, the transaction is broadcast to the peer-to-peer network and waits in nodes' mempools. A block proposer selects transactions, usually by tip, and includes them in a block. Each block references its parent's hash, forming the chain, and records the transactions, their receipts (status, gas used, logs) and the resulting state root.
Inclusion in a block is the first confirmation. Each later block adds confidence, and after proof-of-stake finality the block cannot be reverted without destroying a large amount of staked ether.