DEV Community

Cover image for Wallet UX Architecture Decisions: How to Choose the Right Model for Your App
estel
estel

Posted on

Wallet UX Architecture Decisions: How to Choose the Right Model for Your App

Wallets are no longer a UI accessory — they define the UX boundary between a user and the chain.

Choosing the wrong wallet architecture early can lead to painful migrations later, especially when you move from prototype → production → scale.

This post breaks down the three dominant wallet UX architectures, how they impact onboarding, security, performance, and game-loop / automation flows — plus decision patterns for teams building real products.

🔧 The Three Common Wallet UX Architectures

There are many variants, but most real apps end up in one of these paths:

Architecture Description UX Profile Typical Use Cases
Connect-First Wallet User brings their own wallet (Metamask, Rainbow, etc.) Familiar for crypto-native, but high dropout DeFi, NFT marketplaces, power-users
Embedded / In-App Wallet App issues a wallet during onboarding Smooth UX, consumer-friendly Games, fintech, mobile apps, agents
Hybrid (Linked) Model Embedded wallet + optional external link Best of both worlds if done right Cross-audience apps, gaming → DeFi bridges

Let's examine how they change the UX, developer constraints, and long-term risk surface.

Documentation examples showing these patterns in code can be found here

1️⃣ Connect-First Wallet UX

Flow: user enters → connect button → external provider → modal → signature → state returns to app.

Strengths

  • Users retain explicit self-custody
  • Works smoothly with existing DeFi workflows
  • No custom key management or infra requirements

Limitations

  • Highest onboarding drop-off rate
  • Pop-ups interrupt interactive or real-time flows
  • Device switching requires repeated reconnect
  • Network, provider, & extension friction

Fits best when

  • users are already wallet-native
  • the app is signing-centric, not session-centric
  • transparency > continuity

2️⃣ Embedded / In-App Wallet UX

Flow: user signs up via email / passkey / OAuth → wallet is provisioned silently → signing happens inside app surfaces.

Why it’s used

  • onboarding works like a normal web or mobile app
  • avoids dependency on extensions or chrome environment
  • compatible with session-level permissions for loop-based UX

Modern implementations typically focus on client-side key generation, recoverability, and exportability, with support for session keys for actions that require continuity (e.g., gameplay turns, incremental automation, micro-transactions, or agentic tasks).

Good reference architecture + implementation examples:

Fits best when

  • the product has repeatable in-flow actions, not isolated transactions
  • UX needs to feel like a normal Web2 app
  • users may not have wallets yet
  • modal-driven interruptions harm engagement

3️⃣ Hybrid (Linked Wallet) UX

Flow: start with embedded wallet → at any time, connect a self-custodial wallet → both can co-exist or delegate.

This pattern has become increasingly relevant post-ERC-7702, which allows EOAs and smart accounts to coordinate responsibilities instead of forcing a full migration.

It’s commonly used in apps where:

  • new users shouldn’t face crypto-native friction
  • advanced users want DeFi / liquidity optionality
  • long-term identity must remain portable

Example hybrid patterns + delegation flows documentation

Architecture Decision Drivers

Ask these before choosing tools or SDKs:

Decision Factor Why it matters
Who is the primary user today vs. later? MVP audience ≠ scaled audience
What interaction loop does your UX require? Turn-based vs. real-time
Do you need session autonomy? Pop-ups break loops & agents
Do you have infra or compliance rules? May require self-hosting
Must wallets remain portable if infra changes? Avoid lock-in migrations
Are you planning future AA / 7702 support? Prevent dead-end wallet UX

Example Application Patterns

A. Real-time applications (games / agents / simulations)

Embedded wallet → session keys → frictionless in-loop UX
Enter fullscreen mode Exit fullscreen mode

B. Compliance-sensitive SaaS or fintech

Embedded wallet → self-hosted key management → auditable events → exportability
Enter fullscreen mode Exit fullscreen mode

OpenSigner architecture using self-hosted signer setup:

C. Mixed audience or multi-stage product

Embedded wallet → ability to link EOA → optional DeFi / liquidity / power features
Enter fullscreen mode Exit fullscreen mode

Quick Comparison Table

Criteria Connect-First Embedded Hybrid
Onboarding friction High Low Low
Modal interruptions Frequent None Optional
Session autonomy Weak Strong Strong
Mobile UX Medium Strong Strong
Export / portability Native Depends on infra Yes
4337 + 7702 readiness Optional Strong Strong

🙋 FAQ

Is an embedded wallet always custodial?

No — custody depends on key generation + control + export logic, not UX presentation.

Does hybrid mean double wallets?

Not necessarily — it means flexible signer routing, not duplicate assets.

Which architecture is becoming default for mainstream?

Hybrid architectures are becoming the default because they allow onboarding before making a wallet decision.

Top comments (0)