Free module
Smart accounts: account abstraction on a local chain
Learn account abstraction hands on: smart accounts, ERC-4337 UserOperations, bundlers, paymasters, session keys and EIP-7702, on a local chain.
The lessons
Each lesson is free and interactive. Press Start lab to run its commands in a live lab and to sit its quizzes and tasks, with no account needed.
1 · Container lab
EOAs and smart accounts: what goes wrong
I can explain what goes wrong with an ordinary account that a smart account can fix.
Read the lesson2 · Container lab
How ERC-4337 works: UserOperations and bundlers
I can follow one UserOperation from signing to the EntryPoint's event.
Read the lesson3 · Container lab
Paymasters: when someone else pays the gas
I can work out what a paymaster pays for an operation and when it should refuse.
Read the lesson4 · Container lab
Session keys and spending limits
I can check whether a session key may make a payment under its limits.
Read the lesson5 · Container lab
EIP-7702: delegating an ordinary account to code
I can tell a safe EIP-7702 delegation from a dangerous one.
Read the lesson6 · Container lab
ERC-4337 or EIP-7702: which to use
I can choose between an ordinary account, a smart account and a delegation for a given need.
Read the lesson
Worked in a real lab
Every lesson of this module is worked in a lab started for you alone. The labs it uses:
Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.