Level 2 · First stepsThe village#097

Smart contract wallets: the lock becomes a rulebook, and rulebooks can have typos

A smart contract wallet replaces the single key with a small program that decides who may spend: two keys out of three, a daily limit, a recovery plan. Account abstraction is the set of Ethereum standards that makes this work. You gain flexibility and take on the risk of the code.

Most doors in the village have one lock and one key. Whoever holds the key opens the door. Lose it, and the door stays shut forever.

Anna's new door is different. Instead of a lock, there's a page of rules nailed to it: "Opens with Anna's key. If Anna loses hers, two of these three neighbours together can fit a new lock. No more than ten coins a day without a second key." And because every house keeps a copy of the notebook, every house checks those rules before accepting a payment from her door.

That's a smart contract wallet. The key becomes a rulebook. It can save you from your own mistakes. It can also carry the author's.

What it is

On Ethereum, an ordinary account is controlled by one private key. If the signature matches, the payment goes through. Nothing else can be checked, and nothing can be undone.

A smart contract wallet is an account that is itself a program. The program decides what counts as a valid instruction: several signatures, limits, recovery by trusted people, fees paid by someone else. Account abstraction is the name for letting each account bring its own rules instead of the single built-in one.

How it works: three dates

6 November 2017: the warning. Some of the first smart contract wallets were multisig contracts, needing several keys. Parity's multisig wallets relied on one shared library contract, deployed in July 2017. Someone found that it had been deployed without an owner, took ownership of it and then destroyed it. Parity's postmortem says this "blocked funds in 587 wallets holding a total amount of 513,774.16 Ether" plus tokens (Parity, 2017). Nobody stole a key. One piece of shared code broke, and every door that pointed to it stayed shut.

29 September 2021: the standard. ERC-4337 proposed account abstraction that "completely avoids the need for consensus-layer protocol changes" (ERC-4337). It works in four steps:

  1. Your wallet writes a "UserOperation", a request saying what your account should do, signed however your account's rules require.
  2. It goes to a separate waiting room, where operators called bundlers collect many such requests.
  3. A bundler packs them into one normal transaction and sends it to a shared contract, the EntryPoint, which checks each account's rules and then runs the request.
  4. Optionally, a paymaster contract pays the fee for you. The standard's own motivation mentions "custom recovery", multisig and fees paid by third parties.

7 May 2025: the shortcut. The Pectra upgrade went live on Ethereum at 10:05:11 UTC that day (Ethereum Foundation, 2025). It included EIP-7702, which lets an ordinary key-controlled account point to contract code and use it as its own (EIP-7702). Your old address can gain batching, sponsored fees or spending limits without moving your coins. The Ethereum Foundation's post adds that "choosing a delegation target hands over a great deal of control".

Why it matters

The old rule was harsh: one key, one point of failure. Lose it and you're locked out. Leak it and you're robbed. Smart contract wallets soften both. A lost phone can be replaced by the guardians in your rules. A stolen key can be stopped by a daily limit or a second signature.

What you pay is a new kind of risk. You now trust code: the wallet's contract, the libraries it relies on, and anything you allow it to delegate to. EIP-7702's authors are blunt about it: "The code specified by an authorization has unrestricted access to the account." They also write that applications "must not expect that they can suggest the user sign an authorization." A one-click "upgrade your wallet" pop-up on a random website is exactly what that sentence warns against.

Where people get it wrong

  • "Smart means safer." Smarter, yes. Safer only if the code is right. The 2017 Parity freeze came from shared code, not from a stolen key.
  • "No seed phrase means nothing to back up." You still have to protect your signing keys, guardians or recovery method. The backup moves, it doesn't disappear.
  • "My smart wallet address works on every network." A contract exists only on networks where it has been deployed. Check before you receive funds on a new one.
  • "Signing an upgrade is like signing a payment." A delegation can give code full control of your account, not just one payment.

Read what you delegate

Before you approve anything that says "upgrade", "enable smart account" or "delegate", stop and ask two questions. Did I start this from my own wallet app, or did a website ask me? Do I know whose contract I'm handing control to?

If the answer to the first is "a website" or the answer to the second is "no", close the tab. The stranger at the gate has learned to write rulebooks too.

Frequently asked questions

What is a smart contract wallet?

It's a crypto account that is a program rather than a single key. The program decides what a valid instruction is, for example two signatures out of three, a daily spending limit or recovery through trusted people.

What is account abstraction?

Account abstraction lets each account set its own rules for approving transactions, instead of relying only on one private key. On Ethereum, ERC-4337 does this with special requests and a shared EntryPoint contract, without changing the base protocol.

What did EIP-7702 change?

EIP-7702 went live with Ethereum's Pectra upgrade on 7 May 2025. It lets an ordinary key-controlled account point to contract code and use it as its own, so existing addresses can gain features such as batching or sponsored fees.

Are smart contract wallets safer than normal wallets?

They can protect against lost or stolen keys with recovery rules and limits. They add the risk of bugs in the wallet's code, as the 2017 Parity incident showed when 513,774.16 ether in 587 wallets was frozen.

Can a website upgrade my wallet to a smart account?

A website can ask you to sign a delegation, and that is the risk. The EIP-7702 text says delegated code has unrestricted access to the account. Only enable smart account features from your own wallet app.

Sources

  1. ERC-4337, Account abstraction using alt mempool (Buterin, Weiss, Tirosh and others, created 29 September 2021)
  2. EIP-7702, Set code for EOAs (Buterin, Wilson, Dietrichs, lightclient, created 7 May 2024)
  3. Ethereum Foundation blog, Pectra mainnet announcement (23 April 2025)
  4. Parity Technologies, A postmortem on the Parity multi-sig library self-destruct (November 2017)

Read next.