Skip to main content
Cyber Defense StudioIoT Security and PrivacyExperimentsWorkspaces
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
BLOCKCHAIN FOR IoT · BC-M12
Blockchain for IoT

Ethereum whitepaper: account state transitions

Dr. Mohammad Alja’afreh · Princess Sumaya University for Technology

NonceExecutionState
Design experiment & verify evidence →
BC-M12 · Laboratory mentorAsk about the current experiment, its algorithms or Python notebook.
Ask Dr. MohammadAdaptive practice

← Lecture-aligned module experiments · All blockchain labs · Setup wizard

Introduction

Ethereum account-state transition

Transaction validity, execution and fee accounting are separate
Transaction validity, execution and fee accounting are separate

Scientific architecture · Ethereum account and transaction state transition

Ethereum transaction accounting — Sender / balance and nonce; Validate / nonce, gas budget, funds; Execute / value and state transition; Fee / gas used × effective price; Receipt / success or revert status
Scientific concept map: Sender account — Balance and nonce; Transaction — Value + fee limits; Validation — Nonce and funds; Execution — State change / revert; Receipt — Gas and updated state.

Scientific foundations and analytical reasoning

Ethereum transactions require correct nonce, sufficient funds and fee parameters. Effective price is min(max fee, base fee+priority cap) when valid.

Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.

BC-M12 · Academic orientation

Scope and objectives

Scope of the experiment

Explore nonce, balance, gas and deterministic transition using a simplified account ledger. Separate the 2014 whitepaper from post-Merge Ethereum.

The focus of this experiment is to trace account balance, nonce and transaction state changes. Students then interpret successful execution, fees and reversion, and verify the resulting state using the specified account model. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.

Learning objectives

  • Trace account balance, nonce and transaction state changes.
  • Interpret successful execution, fees and reversion.
  • Verify the resulting state using the specified account model.
  • Identify the configured inputs (Transaction type; Sender balance (gwei); Transferred value (gwei); Current account nonce; Submitted nonce) and record the corresponding observed outputs with units where applicable.
  • Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.

Expected learning outcomes

On completion, students can trace account balance, nonce and transaction state changes, interpret successful execution, fees and reversion, and verify the resulting state using the specified account model.

Required deliverables

Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing verify the resulting state using the specified account model. Separate predicted values from observations.

Prerequisite knowledge and related learning

Review the foundational terminology in Concepts and confirm readiness using the existing setup instructions. After completion, continue to Hyperledger: permissioned transactions and world state.

Environment and experimental methodology

The listed browser model and experiment-specific local Python, Solidity or EVM workflow, where provided. Do not treat a model as a deployed ledger.

Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.

Scientific theory · Ethereum account-state accounting

Ethereum accounts maintain balances and nonces. A submitted transaction must satisfy nonce, funding and fee constraints before state transition. Under EIP-1559-style fees, effective price is min(maxFee, baseFee+priorityCap) when valid; actual cost uses gas used. Reversion can preserve the fee and nonce effects while undoing execution writes.

Worked example and engineering interpretation

For gas used 21000, base fee 20 gwei, tip cap 2 and max fee 30, effective price is 22 gwei and fee is 462000 gwei = 0.000462 ETH. A sender nonce mismatch can prevent valid admission. Distinguish fee cap, gas limit and charged fee.

Engineering principles · additional worked teaching example

An account nonce orders transactions from a sender. Gas fee is separate from transferred value. In a simplified transfer of 5 units with fee 2 from balance 12, balance becomes 5 and nonce increments once on inclusion.

From theory to experiment

Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.

Worked engineering reasoning and boundary conditions

Engineering reference configuration: Transaction type = transfer; Sender balance (gwei) = 2000000000; Transferred value (gwei) = 1000000000; Current account nonce = 3; Submitted nonce = 3; Gas limit = 50000; Contract execution gas = 42000; Base fee (gwei/gas) = 15; Max priority fee = 2; Max total fee (gwei/gas) = 20; Contract execution reverts = false. In the classroom model, Receipt = Success; Next nonce = 4; Gas used = 21000; Sender final balance = 999643000 gwei; Recipient credit = 1000000000 gwei. Gas and balances are calculated in integer gwei. A failed execution after inclusion is not the same as an invalid transaction rejected before inclusion. Simplified integer-gwei account transition with EIP-1559-style fee cap arithmetic, not a complete EVM or live Ethereum client.

Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.

Concept animation · independent state notebook

Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.

Ethereum whitepaper: account state transitions: independent state notebook12345Calculated state 1ConditionCorrect nonceResultYes

Step 1 of 5 · Calculated state 1

Calculated state 1

Condition
Correct nonce
Result
Yes

Teaching example only; inspect live calculations or real practical evidence separately.

How to investigate Ethereum whitepaper: account state transitions

Explore nonce, balance, gas and deterministic transition using a simplified account ledger. Separate the 2014 whitepaper from post-Merge Ethereum.

Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.

Experiment-specific guided practice

Objective: Explore nonce, balance, gas and deterministic transition using a simplified account ledger. Separate the 2014 whitepaper from post-Merge Ethereum.

  1. Use transfer, 2 ETH balance represented as 2,000,000,000 gwei, 1 ETH value, nonce 3 and base/tip/cap 15/2/20 gwei. Verify effective gas price 17 and used gas 21,000.
  2. Calculate sender final balance 999,643,000 gwei, recipient credit 1,000,000,000, base-fee burn 315,000 and proposer tip 42,000 gwei. Confirm conservation including burned fees.
  3. Submit nonce 2; verify rejection before inclusion and unchanged balance/nonce. Repeat with max fee below base fee.
  4. Select contract call, then explicit revert and out-of-gas. Compare charged gas, unchanged recipient state and incremented nonce.

Reference check: Valid included transaction consumes fee and increments nonce; revert leaves transfer unapplied. Invalid prechecks do not change state in this model.

Model boundary: Toy account arithmetic, fixed fee 2, no actual EVM or EIP-1559 fee market. Ethereum Mainnet uses PoS since September 2022.

Independent task and submission evidence

2. Calculate sender final balance 999,643,000 gwei, recipient credit 1,000,000,000, base-fee burn 315,000 and proposer tip 42,000 gwei. Confirm conservation including burned fees. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.

Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.

TrialChanged settingFixed settingsPredicted resultActual observation / unitsEvidence / uncertainty
A: baselineReferenceRecordPredictRecordRecord
B: one changeRecordSame as APredictRecordRecord
A: repeatRestoreSame as APredictRecordRecord

Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.

Explore nonce, balance, gas and deterministic transition using a simplified account ledger. Separate the 2014 whitepaper from post-Merge Ethereum.

Learning goals

  1. Explain the mechanism using the actual intermediate states in this experiment.
  2. Predict and verify the reference and modified conditions described below.
  3. Interpret the acceptance criteria and identify the limits of the model.

Module flashcards · 12 questions

Browse all 12 questions and explanations
What is an account nonce?

A transaction-ordering counter used to validate submissions from an account.

What is an EOA?

An externally controlled account rather than a contract code account.

What happens to an included reverted transfer?

The transfer is unapplied, while the fee and nonce can still change.

What consensus does Ethereum Mainnet use after the Merge?

Proof of stake.

What distinguishes contract accounts from externally owned accounts?

Contract accounts execute code when invoked; EOAs initiate signed transactions.

Why check available balance before inclusion in the toy model?

The sender must cover both the transfer and the stated fee.

What distinguishes invalid prechecks from included execution revert?

In the toy model precheck rejection changes nothing; included revert consumes fee and nonce.

Why distinguish the 2014 paper from current Ethereum?

The paper describes source-era proposals, while the operational protocol has evolved.

What happens to the account nonce after a valid included transaction?

It increments.

What happens to the transfer value on an included reverted transaction?

The transfer is not applied, but the fee and nonce effects remain.

What happens when the submitted nonce fails the precheck?

The transaction is rejected without state change in this model.

Why test an amount that exceeds the available balance?

To verify the balance precheck prevents an invalid state transition.

Shared research workbenches · network designer & advanced studies
Concurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery research