Book a free call

10 AA Smart Wallet Development Mistakes to Avoid

Account abstraction wallets remove seed phrases and gas pain, but small design errors can lock users out. These ten mistakes are the ones teams keep making.

Hertiv engineering teamReviewed by a senior engineer
7 min read
10 AA Smart Wallet Development Mistakes to Avoid
On this page

Short answer

An AA smart wallet is a contract wallet that uses account abstraction to replace seed phrases with passkeys, social recovery and sponsored gas. The ten mistakes in this guide cover recovery, gas, permissions, upgrades and testing, and each one can lock users out, waste funds or open a security hole. Avoiding them starts with treating the wallet as a contract that holds real money, not as a simple app screen.

Ten mistakes that cost smart wallet teams

Smart wallets built on account abstraction replace seed phrases with passkeys, social recovery and sponsored gas, which makes crypto usable for people who never want to see a private key. That ease hides a hard fact: the wallet is a smart contract that holds real money, and a small design error can lock a user out or drain the account.

Mistake What goes wrong What to do instead
No recovery path User loses access for good Add social recovery or a backup key
One key controls everything One stolen key empties the wallet Split control across keys
Unlimited session keys A stolen session key drains funds Cap amount and time
Open gas sponsorship Attackers burn your gas budget Set per-user and daily caps
Upgrade with no timelock A bad upgrade ships at once Add a delay and a pause
No audit A bug ships to mainnet Audit before launch
Blind signing Users approve what they cannot read Show the action in plain words
Testnet-only testing Mainnet behaviour differs Test on a mainnet fork
No spending limits One mistake moves everything Set daily and per-token limits
Treating it like a normal app Contract risks get missed Review it as a contract

Each mistake below has cost real teams time, money or users. The fixes are mostly simple, but they have to be built in before launch, because a wallet that is already live cannot be patched like a web app. For the background, see what account abstraction is.

Recovery mistakes

1. No recovery path: when users lose their only key

A smart wallet without recovery is a wallet with a single point of failure. If the user loses their phone or their passkey, there is no seed phrase to fall back on, and the funds sit in a contract nobody can open. Support cannot reset it, and the team cannot reach in and fix it.

Build recovery in from the start. Social recovery with two or three trusted contacts, a backup key held offline, or a time-delayed recovery request all work. Test the recovery flow with real users before launch, because a recovery path that nobody can use is the same as no recovery at all.

2. One key controls everything: when a single key is the whole wallet

When a single key can move all the funds, change the owner and upgrade the contract, that key is the whole wallet. If it is stolen, phished or lost, the attacker or the loss takes everything at once. This is the exact risk account abstraction is meant to remove.

Split control. Use one key for daily spending with a limit, another key or a set of guardians for large moves, and a separate owner key for upgrades. A key that can spend 50 dollars a day is a small loss if stolen; a key that can move everything is a disaster.

Permission and gas mistakes

3. Unlimited session keys: when a stolen key drains the wallet

Session keys let an app act for the user without asking each time, which makes games and trading apps feel smooth. Without limits, a stolen session key can move funds until the user notices and revokes it, and a compromised app can do the same.

Cap every session key by amount, by token and by time. A session key that can spend 20 dollars in one hour is useful for a game and harmless if stolen. Set the caps when the key is created, and show the user what the key can do before they approve it.

4. Open gas sponsorship: when attackers burn your budget

Sponsored gas removes the need for users to hold the chain's native token, which is one of the best parts of a smart wallet. Without limits, anyone can send transactions through your paymaster and burn your gas budget, and an attacker can do it on purpose.

Put a cap on sponsorship per user and per day, and only sponsor the actions your app needs. A paymaster that sponsors 5 dollars of gas per user per day is generous for real users and a small loss if abused. Watch the spend daily and pause sponsorship when it spikes.

Upgrade and audit mistakes

5. Upgrade with no timelock: when a bad change ships at once

Upgradeable wallets let a team fix bugs, but an upgrade with no delay ships the moment it is signed. A bad change, a compromised key or a rushed fix can then lock users out or change the rules before anyone can react.

Add a timelock of at least a day between proposing an upgrade and running it, and a pause function that stops the wallet if something goes wrong. Announce upgrades in advance so users and guardians can object. A day of delay is a small price for a chance to stop a bad change.

6. No audit: when bugs reach mainnet

A wallet contract that has never been audited is a bet that the team wrote perfect code on the first try. Audits do not catch everything, but they catch the common errors: bad access checks, rounding errors and upgrade paths that break the wallet.

Audit before mainnet, and audit again after any large change. Fix the findings and publish the report, so users can see what was checked. For the review itself, see smart contract audit. An audit is not a guarantee, but shipping without one tells users the team did not take the risk seriously.

Signing and testing mistakes

7. Blind signing: when users approve what they cannot read

When a wallet asks a user to sign a hash they cannot read, the user is trusting the app completely. A bad app can ask for a transfer while showing a harmless message, and the user has no way to tell the difference until the funds are gone.

Show the action in plain words before asking for a signature: what moves, where it goes and how much. If the action cannot be shown clearly, do not ask the user to sign it. Clear signing screens are one of the main reasons to build a smart wallet in the first place.

8. Testnet-only testing: when mainnet surprises you

Testnets are useful, but they do not behave like mainnet. Gas prices, paymaster behaviour, token contracts and third-party services all differ, and a flow that works on a testnet can fail or cost far more on mainnet.

Test on a mainnet fork with real contract addresses and real gas prices before launch. Run the full user journey: create the wallet, recover it, sponsor gas, hit the limits and upgrade it. A bug found on a fork is free; the same bug on mainnet is not.

Limits and mindset mistakes

9. No spending limits: when one mistake moves everything

A wallet with no daily limit lets one wrong tap, one bad app or one stolen key move the whole balance. Users rarely need to move everything at once, and a limit costs nothing until the day it saves them.

Set a daily limit and a per-transaction limit that fit the user's real spending, and let the user raise them with a delay. A limit of 500 dollars a day covers most users, and a large move can wait a day for the higher limit to take effect.

10. Treating it like a normal app: when contract risks get missed

A smart wallet looks like an app, but it is a contract that holds money on a public chain. Teams that treat it like a normal app skip the contract review, the key management plan and the incident plan, and then learn the difference from a real incident.

Review the wallet as a contract: who can change it, who can pause it, what happens if a key is lost and what happens if the team disappears. Write the answers down and test them. A wallet team needs a contract mindset, not just a product mindset.

How to avoid these mistakes

Avoiding these mistakes is a process, not a single review. Build the checks into the way the team works, so each release passes the same gates before it reaches users.

  1. Write the threat model first. List who can attack the wallet, what they gain and which key or contract they would target.
  2. Build recovery, limits and timelocks before the launch date. These are features, not extras, and they belong in the first version.
  3. Test the bad paths. Try to lose a key, steal a session key, burn the gas budget and break an upgrade on a fork.
  4. Audit, fix and publish. Get an outside review, fix what it finds and share the report with users.
  5. Watch it live. Track gas spend, failed transactions and recovery requests daily, and have a pause plan ready.

For the build side, see crypto wallet development.

For the wider app picture, see how to create Web3 dapps.

Key takeaways

  • A smart wallet is a contract that holds money, not a normal app screen
  • Recovery, spending limits and timelocks belong in the first version
  • Cap every session key and every gas sponsorship by amount and time
  • Show users what they sign in plain words before asking for a signature
  • Test on a mainnet fork and audit before launch, then watch it live

Frequently asked questions

What is an AA smart wallet?

An AA smart wallet is a wallet built as a smart contract using account abstraction. Instead of a seed phrase, it uses passkeys, social recovery and rules such as spending limits. The contract holds the funds and enforces the rules, so the wallet can do things a normal wallet cannot, including sponsoring gas or recovering access without a seed phrase.

Is account abstraction the same as a smart wallet?

No. Account abstraction is the standard that lets wallets be smart contracts. A smart wallet is a product built on that standard. One standard can power many wallets, and a wallet can add features such as session keys or spending limits on top of the standard.

Can a smart wallet be upgraded safely?

Yes, if the upgrade has a timelock and a pause function. The timelock gives users and guardians at least a day to see the change and object before it runs. Without a timelock, a bad or rushed upgrade ships at once and users have no chance to react.

Do smart wallets still need audits?

Yes. An audit checks the contract code for common errors such as bad access checks and broken upgrade paths. Audits do not catch everything, but shipping a wallet that holds real money without one is a risk most teams should not take. Audit again after large changes.

What happens if a user loses their phone?

A well-built smart wallet recovers through social recovery, a backup key or a time-delayed request, so losing a phone does not mean losing funds. A wallet with no recovery path cannot be recovered at all, which is why recovery is the first feature to build and test.

Should a small team build a smart wallet?

Only if the team can cover the contract risks: recovery, limits, audits and live monitoring. A small team can start with a tested wallet framework and add its own rules on top, rather than writing a contract from scratch. If the team cannot staff the security work, a simpler wallet is the safer choice.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a smart wallet for your users?

A senior engineer replies within one business day. Or see our Crypto Wallet service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call