COURSE OVERVIEW
What this course covers
Learn Ethereum accounts, transactions, gas, the Ethereum Virtual Machine, smart contracts, events and the security implications of programmable assets. The course approaches the subject as a set of connected systems and decisions. Students are expected to distinguish verifiable facts from assumptions, identify where a model is incomplete and explain the operational or financial risks that follow.
This school starts with the technical and economic foundations needed to evaluate digital assets carefully. It connects protocol design, cryptography, custody and governance rather than treating cryptocurrency as a price chart.
Related topics
- Ethereum explained
- Ethereum account model
- externally owned account vs contract account
- Ethereum Virtual Machine
- Ethereum gas fees
- Solidity smart contracts
- ERC-20 and ERC-721 standards
- smart contract events
- smart contract testing
- smart contract audit risks
- EIP-7702 account delegation
- Ethereum delegated EOA
- Checks Effects Interactions pattern
- smart account security
LEARNING OUTCOMES
What you should be able to explain
- Differentiate externally owned accounts and contract accounts.
- Explain gas, execution, state changes and events.
- Identify common smart-contract failure modes and safe review practices.
CURRICULUM
Course syllabus and module outline
Ethereum execution and account model
Study the concepts, operating assumptions and failure cases behind ethereum execution and account model. Connect the topic to the wider ethereum and smart contract fundamentals framework, then record the evidence and limitations that matter in practice.
Transactions, gas, fees and the EVM
Study the concepts, operating assumptions and failure cases behind transactions, gas, fees and the evm. Connect the topic to the wider ethereum and smart contract fundamentals framework, then record the evidence and limitations that matter in practice.
Solidity contract structure and event logs
Study the concepts, operating assumptions and failure cases behind solidity contract structure and event logs. Connect the topic to the wider ethereum and smart contract fundamentals framework, then record the evidence and limitations that matter in practice.
Tokens, interfaces and composability
Study the concepts, operating assumptions and failure cases behind tokens, interfaces and composability. Connect the topic to the wider ethereum and smart contract fundamentals framework, then record the evidence and limitations that matter in practice.
Contract testing, audits and upgrade risks
Study the concepts, operating assumptions and failure cases behind contract testing, audits and upgrade risks. Connect the topic to the wider ethereum and smart contract fundamentals framework, then record the evidence and limitations that matter in practice.
LEARNING MATERIAL
Course lessons and learning activities
This is academic-draft teaching content published for curriculum review. It is not an approved or open course. Enrolment, assessment submissions and recording, completion tracking and certificates are inactive.
Estimated study time: 18 hours
MODULE 01
Ethereum execution and account model
Module objective: Explain Ethereum's account model, execution state and the authority exercised by EOAs and contract accounts.
LESSON 1.1
Ethereum as a state machine
Ethereum processes valid transactions to transform shared state. The protocol defines transaction validity, execution ordering and the resulting account and contract state.
Nodes independently execute transactions under common rules. This deterministic process is why a state-machine model is more accurate than treating Ethereum as a simple payment database.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
What does Ethereum's state-machine model describe?
Valid transactions transform shared state under protocol-defined execution rules.
LESSON 1.2
Externally owned accounts
An externally owned account (EOA) is controlled by a private key and can originate signed transactions. It has an address, balance and transaction nonce.
Wallet software manages keys and prepares transactions, but it is not itself the protocol account. A compromised key or deceptive signing prompt can expose the account's authority. The traditional EOA model is no longer the whole story: after EIP-7702, an EOA can authorize a delegation indicator that causes calls to execute code from another address in the EOA's own account context. The EOA retains its address and private-key authority; delegation does not turn it into an ordinary contract-created account.
EIP-7702 uses a signed authorization tuple and a type-4 set-code transaction. Delegation persists until it is changed or cleared; it is not merely a one-transaction permission. A delegate implementation can exercise powerful authority over the account's assets and storage, so users and wallet software must verify the delegate code, authorization scope and chain context before signing.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
A user signs an EIP-7702 authorization for a delegate implementation. Which statement best describes the resulting account?
The EOA keeps its address and private-key authority, while a delegation indicator directs execution to the selected code in the EOA's account context. The delegation persists until changed or cleared.
LESSON 1.3
Contract accounts and code execution
A contract account contains code and persistent storage at an address. Its code runs when execution reaches it through a transaction or another contract call.
Contract code can read and update state, emit logs and call other contracts. A contract address does not prove that its code is safe, audited or controlled by a trustworthy organisation. EIP-7702 adds an important distinction: an EOA may point execution to delegated code while calls still execute in the EOA's context. This is not the same as deploying a conventional contract account at a new address.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
How does an EIP-7702 delegated EOA differ from a conventional contract account?
The EOA retains its original address and key authority, but its delegation indicator causes selected code to execute in the EOA's account context; a conventional contract account has its own deployed code and storage.
LESSON 1.4
Addresses, keys and account authority
Ethereum addresses identify accounts. EOA addresses are derived from public-key material, while contract addresses identify deployed code and storage.
Users should verify the chain, address and transaction intent before signing. A valid signature proves cryptographic control for a message, not legal identity or recipient trustworthiness. With EIP-7702, signing an authorization can install or change persistent delegated code. Users must verify the exact delegate address and understand that malicious delegate code may exercise broad control over the account.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
Before signing an EIP-7702 authorization, what should a user verify?
The chain context, exact delegate address and code, authorization details, and the powers the delegated implementation can exercise over the account.
Map Ethereum account authority
Draw a transaction path from an EOA to a deployed contract and then to a second contract. Label signer, sender, execution, storage changes and logs. Identify where a wallet provider or interface is an intermediary. Include an EIP-7702 delegated EOA in the diagram. Show the authorization, delegation indicator, delegate-code execution context and the difference between the EOA's key authority and delegated execution. Identify the risks of an untrusted delegate.
Deliverable: A labelled account-and-execution diagram with a 300-word explanation of protocol authority versus application-layer trust.
MODULE 02
Transactions, gas, fees and the EVM
Module objective: Trace transaction fields, gas accounting, fee components and EVM execution outcomes.
LESSON 2.1
Anatomy of an Ethereum transaction
A transaction can include a sender signature, recipient, value, input data, nonce, gas limit and fee parameters. The exact envelope depends on the transaction type supported by the network.
The nonce orders transactions from an account and helps prevent replay. Recipient and input data determine whether the transaction transfers value, invokes contract code or performs another supported action.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
Which transaction field orders transactions from the same sender?
The account nonce.
LESSON 2.2
Gas as a resource measure
Gas measures computational and storage work charged under protocol rules. Transactions specify a gas limit that bounds the execution resources they are willing to provide.
Complex execution and storage changes can consume more gas than a simple transfer. If execution runs out of gas, state changes revert while consumed gas remains chargeable.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
What happens when EVM execution exhausts the transaction gas limit?
Execution fails and state changes revert, while consumed gas remains chargeable.
LESSON 2.3
Base fee, priority fee and fee limits
Under Ethereum's fee market, the base fee is determined by protocol rules and is burned. A priority fee can incentivise block inclusion, while a max fee per gas caps the sender's offered price.
The effective price depends on the base fee, priority fee and max-fee settings. Wallet estimates are not guarantees because demand and inclusion conditions can change before processing.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
What happens to the Ethereum base fee?
It is determined by protocol rules and burned.
LESSON 2.4
EVM execution, reverts and receipts
The Ethereum Virtual Machine executes contract bytecode using defined instructions and gas accounting. Calls may read state, update storage, transfer value or invoke other code.
A transaction receipt reports execution outcome and information such as gas used and logs. Inclusion does not mean the intended contract operation succeeded; a transaction can revert and still consume gas.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
Does transaction inclusion guarantee successful contract execution?
No. The receipt status must be checked; an included transaction can revert.
Calculate and inspect a transaction fee
Use a fictional transaction consuming 80,000 gas, with a 20 gwei base fee, 2 gwei priority fee and 30 gwei max fee. Calculate the effective price and total fee in ETH, then explain why the max fee is not necessarily paid.
Deliverable: A calculation sheet showing assumptions, units, effective price and fee-limit interpretation.
MODULE 03
Solidity contract structure and event logs
Module objective: Describe Solidity contract structure, functions, state, visibility and event logs.
LESSON 3.1
Solidity source and compiled bytecode
Solidity is a high-level language used to write contracts that compile into EVM bytecode. Source expresses data structures, functions, modifiers, events and error conditions.
Compilation does not deploy a contract. Compiler version, settings and dependencies matter when checking whether published source corresponds to deployed bytecode.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
What executes on Ethereum after a Solidity contract is deployed?
Compiled EVM bytecode.
LESSON 3.2
State variables, functions and visibility
State variables persist in contract storage, while local variables exist during execution. Functions define callable behaviour and may be marked with visibility and mutability attributes.
Visibility labels affect source-level access semantics, but private does not mean encrypted or secret on a public blockchain. Storage and transaction data may remain observable.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
Does Solidity private visibility make public-chain data secret?
No. It affects source-level access semantics; public-chain data may still be observable.
LESSON 3.3
Modifiers, errors and access control
Modifiers can enforce preconditions such as role checks or state requirements before a function body executes. Custom errors and require-style checks reject invalid operations.
Access control must cover every sensitive entry point, including minting, pausing, withdrawing and upgrading. Role administration must itself be secured.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
Why must access checks cover every sensitive entry point?
An unprotected function can bypass intended authority controls.
LESSON 3.4
Events, logs and off-chain indexing
Contracts emit events recorded in transaction logs. Applications and indexers use event signatures and indexed fields to detect and organise activity.
Events support interfaces and monitoring, but do not enforce business rules or replace contract storage. Indexers must account for reorgs, duplicate processing and delayed data.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
What is a key limitation of contract events?
They are logs for external consumers; they do not enforce rules or replace contract storage.
Review a contract interface
For a fictional token interface with balanceOf, transfer, approve, transferFrom, pause and mint, classify purpose, caller authority and state changes. Identify privileged functions and expected events.
Deliverable: A function review matrix with permission assumptions and event expectations.
MODULE 04
Tokens, interfaces and composability
Module objective: Explain token standards, interfaces, approvals and risks introduced by contract composability.
LESSON 4.1
Token contracts and shared interfaces
Token contracts represent assets or rights through application-defined rules stored in contract state. Common standards define interfaces so wallets and applications can interact predictably.
A standard interface improves interoperability but does not guarantee that an implementation is correct, honest or economically sound. Issuer controls and upgrade authority still matter.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
Does a standard token interface guarantee that a token is safe?
No. Compatibility does not establish implementation security or sound token economics.
LESSON 4.2
ERC-20 fungible token mechanics
ERC-20 defines a common interface for fungible tokens, including balances, transfers, allowances and transferFrom. Allowances let another address spend tokens on an owner's behalf.
Unlimited approvals can increase exposure if a spender contract is malicious or compromised. Users should understand the spender, amount and revocation process before approving.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
What authority does an ERC-20 allowance grant?
It permits a designated spender to transfer tokens on behalf of the owner up to the approved amount.
LESSON 4.3
NFTs and ERC-721 ownership
ERC-721 defines an interface for non-fungible tokens, where each token ID identifies a distinct token within a contract. Ownership and transfer functions track token units.
Token ownership does not automatically transfer copyright, physical possession or other legal rights. Metadata may be off-chain and can have availability or integrity dependencies.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
Does ERC-721 ownership automatically convey copyright?
No. Token ownership and intellectual-property rights are separate.
LESSON 4.4
Composability and external calls
Composability allows contracts to call other contracts and combine functions into larger application flows. Lending, exchanges, vaults and token integrations reuse common interfaces.
A defect, permission change, oracle failure or unexpected return behaviour in one component can affect connected applications. Review must consider the complete call path and its dependencies.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
Why can composability amplify smart-contract risk?
A failure or compromised dependency can propagate through connected contracts.
Assess token approval and integration risk
Review a dApp requesting unlimited ERC-20 approval before depositing into a vault that calls a price oracle and lending contract. Map dependencies, permissions and at least five failure or abuse scenarios.
Deliverable: A dependency diagram and prioritised risk register with mitigations.
MODULE 05
Contract testing, audits and upgrade risks
Module objective: Apply testing, security review and upgrade-risk controls to smart-contract systems.
LESSON 5.1
Unit, integration and invariant testing
Unit tests examine individual functions. Integration tests exercise interactions among contracts and external components. Invariant tests check properties that should remain true across many sequences.
Examples include supply constraints, solvency and role restrictions. Tests should include normal, boundary, invalid and adversarial inputs rather than only successful journeys.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
What does an invariant test seek to establish?
That a specified property remains true across tested execution paths and state transitions.
LESSON 5.2
Fuzzing and adversarial scenarios
Fuzz testing explores generated inputs and call sequences to find unexpected states or failures. Property-based approaches compare observed behaviour with specified invariants and assumptions.
Fuzzing is bounded by harness quality, input distribution and encoded properties. A passing run is evidence about tested coverage, not proof that no vulnerability exists.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
Why is a passing fuzz test not proof of security?
Assurance is limited by the harness, generated inputs, coverage and properties tested.
LESSON 5.3
Common vulnerability classes
Smart-contract failures can involve reentrancy, precision errors, access-control defects, unsafe external calls, denial of service and incorrect assumptions about transaction ordering or external data.
Mitigations depend on the design and threat model. Checks-Effects-Interactions means validate inputs and permissions, update the contract's internal state, and only then make external calls; it reduces common reentrancy exposure but is not a universal proof of safety. Developers should also consider cross-function and cross-contract reentrancy, explicit permissions, safe token-handling patterns, bounded loops and careful oracle validation.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
A withdrawal function sends ETH before reducing the user's recorded balance. What is the central risk, and how does Checks-Effects-Interactions address it?
An external recipient may re-enter before the balance is updated and repeat the withdrawal. Checks-Effects-Interactions updates internal state before making the external call, while still requiring broader reentrancy and invariant review.
LESSON 5.4
Audits, deployment and upgrade governance
A security audit is a scoped review of specified code and assumptions at a point in time. Deployment adds operational concerns such as key custody, constructor parameters, source verification and monitoring.
Upgradeable systems add privileged control over implementation changes and storage compatibility. Review who can upgrade, how approval works, whether timelocks exist and what emergency powers remain.
Key terms
- Ethereum
- Smart contract
- Execution
Knowledge check
What governance question is essential for an upgradeable contract?
Who can upgrade it, under what approval process and with what delay or emergency powers.
Prepare a smart-contract security review
Assess an upgradeable token vault with deposit, withdraw, pause and admin upgrade functions. Threat-model reentrancy, access control, oracle failure, storage compatibility, key compromise and incident response. Include delegated-account risks where relevant, including untrusted delegate code, initialization, storage compatibility and authorization revocation.
Deliverable: An audit-planning report with threat model, test plan, severity rationale and residual risks.
LEARNER ASSESSMENT
Ethereum and Smart Contract Fundamentals — Final Assessment
Total: 100 marks. Pass threshold: proposed 70%, subject to academic approval. These questions are displayed for review only; learners cannot submit or record an assessment result on this page.
Section A — Multiple choice (30 marks)
Ten questions, three marks each.
Question 1: Which statement best describes Ethereum's state transition model?
- Transactions transform shared state under protocol-defined execution rules.
- Wallet providers maintain the authoritative global state.
- Only miners decide whether contract code is valid.
- Contract storage is private to its creator.
Question 2: Under EIP-7702, what happens when an EOA authorizes code delegation?
- The EOA permanently loses control of its private key.
- A new contract address replaces the EOA address.
- A delegation indicator directs execution to selected code in the EOA's account context, while the EOA retains its address and key authority.
- The delegated code runs only in a browser wallet and never on-chain.
Question 3: What does gas measure?
- The market price of ETH
- Computational and storage work under protocol rules
- The number of accounts
- The number of validators
Question 4: What happens if a transaction runs out of gas?
- All gas is refunded
- The sender nonce is reset
- The transaction cannot be included
- Execution fails and state changes revert, but consumed gas is charged
Question 5: What happens to the Ethereum base fee?
- It is burned under protocol rules
- It is paid to the wallet provider
- It is returned to the sender
- It is stored in contract storage
Question 6: What does a transaction receipt help verify?
- The recipient's legal identity
- Execution outcome and gas used
- That the contract passed an audit
- That the transaction can be reversed
Question 7: What executes after a Solidity contract is deployed?
- A PDF syllabus
- A recovery phrase
- EVM bytecode
- A private database
Question 8: What is the purpose of an ERC-20 allowance?
- Change the chain ID
- Hide token balances
- Guarantee token value
- Delegate token spending authority up to an approved amount
Question 9: Which statement about ERC-721 is accurate?
- Each token ID identifies a distinct token within a contract
- All tokens must have identical balances
- It automatically transfers copyright
- It guarantees metadata availability
Question 10: What does a smart-contract audit guarantee?
- No vulnerabilities exist
- Nothing beyond its defined scope; residual risk remains
- Legal compliance everywhere
- The contract cannot be upgraded
Section B — Short answers (30 marks)
Six questions, five marks each. Award partial credit for technically accurate explanations.
Question 1: Compare a conventional EOA, an EIP-7702 delegated EOA and a conventional contract account.
Question 2: Explain gas limit, gas used and effective transaction fee.
Question 3: Describe how a Solidity function can modify state and emit an event.
Question 4: Explain the security implications of an unlimited token allowance.
Question 5: Identify three smart-contract testing methods and their purpose.
Question 6: Why does an audit not eliminate upgrade and operational risk?
Section C — Applied contract architecture and risk case (40 marks)
A fictional Kenyan fintech proposes an Ethereum-based token vault. Prepare an architecture and risk assessment covering account authority, transaction flow, gas and fee handling, contract functions, token approvals, external dependencies, testing, upgrade governance and incident response. Do not claim that a standard interface or audit guarantees safety or legal compliance. Include a scenario in which an administrator proposes EIP-7702 delegation for a treasury EOA. Assess delegate verification, authorization signing, execution context, storage and initialization risks, revocation, and monitoring.
- Accurate account model and transaction execution explanation — 6 marks
- Gas, fee and failure-handling analysis — 5 marks
- Contract structure, events and state-change analysis — 5 marks
- Token approval and composability risk analysis — 6 marks
- Threat model and vulnerability mitigations — 7 marks
- Testing and audit plan with residual-risk disclosure — 6 marks
- Upgrade governance and operational controls — 5 marks
COURSE COMPLETION
Learning completion requirements
- Study all five modules and their twenty lessons.
- Complete each module knowledge check.
- Submit all five practical smart-contract exercises.
- Attempt the 100-mark final assessment.
- Meet the approved pass threshold after formal academic approval.
Completion tracking and certificates are not active until the Academy learning platform is implemented and approved.
GLOSSARY
Key terminology
- Ethereum
- A blockchain platform whose protocol specifies transaction processing and EVM execution.
- EVM
- The Ethereum Virtual Machine, the protocol-defined execution environment for smart-contract bytecode.
- EOA
- An externally owned account controlled by private-key signatures.
- Contract account
- An account containing code and persistent storage that executes when invoked.
- Nonce
- A sequential transaction counter associated with an account.
- Gas
- A unit measuring computational and storage work under Ethereum execution rules.
- Gas limit
- The maximum gas a transaction is permitted to consume.
- Base fee
- The protocol-determined per-gas fee component that is burned.
- Priority fee
- A fee component that can incentivise block inclusion.
- Solidity
- A high-level programming language commonly used to write EVM smart contracts.
- Bytecode
- Compiled instructions executed by the EVM.
- Storage
- Persistent contract state recorded in Ethereum's state.
- Event
- A contract-emitted log used by external applications and indexers.
- ERC-20
- A standard interface for fungible token contracts.
- ERC-721
- A standard interface for non-fungible token contracts.
- Allowance
- Delegated authority for a spender to transfer tokens up to an approved amount.
- Reentrancy
- A control-flow risk involving re-entry through an external call before an operation is safely completed.
- Invariant
- A property intended to remain true across contract state transitions.
- Fuzz testing
- Testing that explores generated inputs or call sequences to discover unexpected behaviour.
- Upgradeability
- A design that permits a contract system's implementation or logic to be changed under defined authority.
- EIP-7702
- An Ethereum improvement proposal that lets an EOA authorize a persistent code-delegation indicator through a type-4 set-code transaction.
- Delegation indicator
- The EIP-7702 account-code marker that points execution to code at a specified address while execution occurs in the authority account's context.
- Delegated EOA
- An externally owned account whose code-delegation indicator directs execution to an authorized delegate implementation without replacing the EOA's address or key authority.
APPLIED LEARNING
Practical case exercise
Read a simple token contract interface and trace a transfer call, including caller, state change, emitted event and potential permission checks.
The exercise is educational and uses hypothetical or historical information. It does not connect to a live brokerage, exchange, customer wallet or payment account.
ASSESSMENT DESIGN
How learning will be assessed
Five module knowledge checks, five applied smart-contract exercises and a 100-mark final assessment. Proposed pass threshold: 70%, subject to academic approval.
When the assessment system is released, the approved Academy policy will allow up to three attempts per final examination. The proposed pass threshold is 70%, subject to the published syllabus and academic controls. Results are intended to be marked automatically where answers have objectively verifiable keys; assignments requiring judgement may require instructor review.
ENTRY GUIDANCE
Who this course is for
This foundation-level course is intended for learners who want a structured understanding of ethereum and smart contract fundamentals. It may be useful to students, analysts, fintech builders, operations teams and professionals who need to understand the subject's terminology and control environment.
Suggested preparation: No specialist trading experience is assumed. Familiarity with basic numeracy and reading explanatory diagrams is useful.
FURTHER READING
Primary and institutional references
Use original standards, technical documentation and institutional publications when checking details. Regulatory requirements vary by jurisdiction and may change.
COURSE QUESTIONS
Frequently asked questions
What is the Ethereum Virtual Machine?
The EVM is the execution environment specified by Ethereum's protocol for processing transactions and smart-contract code and updating network state.
What is the difference between an EOA and a contract account?
A conventional EOA is controlled by a private key, while a conventional contract account contains code and storage. EIP-7702 adds a third case: an EOA can authorize delegated code execution while retaining its address and key authority.
Why do Ethereum transactions use gas?
Gas measures computational and storage work under protocol rules and helps allocate scarce network resources and price execution.
Does a smart-contract audit guarantee security?
No. Audits can identify defects within a defined scope and time, but cannot prove the absence of vulnerabilities or eliminate operational, governance and integration risks.
Is this course currently open for enrolment?
This page contains academic-draft learning material for review, but the course is not approved or open for enrolment. Assessment questions are displayed for review only; submissions, assessment recording, completion tracking and certificates are inactive. Check the live education catalogue for courses explicitly published as available.
Does this course provide trading signals or promise profits?
No. It is an educational curriculum. It does not provide guaranteed outcomes, trading signals or personal investment recommendations.
Will I receive a NexaCrypto Academy certificate?
The approved Academy model distinguishes a Certificate of Completion from an examination-based Professional Certificate. Automated issuance will operate only after the learning, assessment and certificate systems are implemented and the learner meets the published eligibility rules.