← Back to Home

MetaMask Smart Accounts Kit

This demo showcases the implementation of MetaMask Smart Accounts using the Smart Accounts Kit. Create a smart account and send transactions using account abstraction.

MetaMask Smart Accounts Demo

Smart Account Creation

About Smart Accounts

  • Smart Accounts are programmable accounts that enable enhanced functionality beyond traditional wallets
  • This demo uses MetaMask's Smart Accounts Kit with a Hybrid implementation
  • User operations are bundled and submitted through a bundler service
  • The account is automatically deployed on the first transaction

How It Works

Smart Account Benefits

  • Batch multiple transactions in a single operation
  • Enable social recovery mechanisms
  • Implement spending limits and security policies
  • Support multiple signing methods including passkeys
  • Pay gas fees with ERC-20 tokens

Technical Implementation

  • Built on ERC-4337 standard for account abstraction
  • Uses Viem for blockchain interactions
  • Integrates with bundler services for transaction submission
  • Supports Hybrid implementation with EOA and passkey signers
  • Automatically deploys account contracts on first use