ERC-4337 Account Abstraction: Foundry, Next.js, Wagmi, and Account Kit Tutorial

Added:

Project Setup
Frontend Foundation
UI Polish
Goerli Deployment
AA Concepts Review
Stackup Integration
Gas & Verification
Candide Deep Dive
Alchemy Account Kit
Advanced AA Usage

Project Setup

2:00
Playing Section
  • 1

    Establishes a Foundry project and writes a Chatter contract emitting message events.

  • 2

    Writes and runs a unit test verifying the contract's event emission.

  • 3

    Deploys the contract to a local Anvil node using a Foundry script.

Understanding Ethereum account types: specifically the difference between Externally Owned Accounts (EOAs) and Smart Contract Accounts.
Basic proficiency in Solidity and Ethereum smart contract development workflow using Foundry.
Fundamentals of React and Next.js, including hooks, state management, and basic routing.
Familiarity with Web3 frontend libraries like Wagmi and Viem for standard wallet connections and blockchain interaction.
Implementing advanced Smart Account features, such as social recovery, multi-signature authentication, and session keys.
Designing and deploying custom Paymasters to sponsor gas fees or allow users to pay gas in ERC-20 tokens.
Optimizing gas consumption and transaction batching mechanics specifically tailored for Layer 2 (L2) EVM networks.
Conducting security audits on custom smart contract wallets, focusing on EntryPoint contract interactions and signature validation security.
3.5K views133likes1:58:10@TomsCoursesOriginal Release: 2024-01-22

ERC-4337 Account Abstraction is an Ethereum standard that enables gasless transactions by using onchain wallets (smart contracts) instead of externally owned accounts. In this system, users sign 'user operations' (structured data containing sender, init code, and call data) which are bundled by services like StackUp, Candide, or Alchemy Account Kit, and executed through an entry point smart contract. The entry point validates the operation, executes the call data on the onchain wallet, and handles reimbursement to bundlers and paymasters. This architecture allows users to interact with dApps without holding gas tokens in their accounts, as paymasters can cover transaction costs.