Skip to main content

Embedded Wallets Overview

1Claw embedded wallets give your end-users native, multi-chain crypto wallets inside your app — without browser extensions, seed phrases, or a separate wallet provider. Keys are generated in HSM-backed infrastructure, stored in a per-org __treasury-keys vault, and surfaced through passwordless auth plus an optional React widget.

This guide series covers the full embedded-wallet flow: platform setup, authentication, transactions, spend policies, React integration, fiat ramps, and advanced treasury features.

Requirements

Embedded wallets require a Pro or higher plan for the Platform API. Treasury wallets themselves are available on all tiers and count toward your org wallet quota.

What you get​

CapabilityDescription
Passwordless authEmail OTP, Google/Apple/Discord social login, passkeys, and Sign in with 1Claw OAuth
Multi-chain walletsEthereum, Bitcoin, Solana, XRP, Cardano, Tron — one user, six addresses
Send / swap / receiveNative and token transfers, 0x DEX swaps, optional ERC-4337 gasless sends
Spend policiesApp-level defaults and per-user overrides enforced before signing
React widget@1claw/wallet-react — full UI or headless useOneclawWallet()
Platform bootstrapDeclarative templates provision vaults, agents, wallets, and policies per user
Fiat rampsCoinbase Onramp and MoonPay widget URLs
Audit & custodyHash-chained audit log, optional MPC and CMEK on paid tiers

Architecture​

Embedded wallets sit on three layers:

  1. Your app — Embeds @1claw/wallet-react or calls auth + treasury APIs from your frontend/backend.
  2. Platform API — Your plt_ key provisions users, bootstraps resources from templates, and sets spend policies. End-users authenticate with JWTs issued after OTP/social/OAuth login.
  3. Treasury wallets — HSM-generated keys in __treasury-keys at users/{user_id}/chains/{chain}/private_key. Sends and swaps require human step-up (X-Auth-Confirm password or passkey tx token).
Custody guarantee

When you bootstrap with platform_locked: true, your platform operator account cannot read end-user secret values — only lifecycle operations (create, delete, rotate). See Platform API — custody.

Embedded wallets vs agent signing keys​

Both use strong cryptography, but they serve different principals:

Embedded wallet (treasury)Agent signing key
PrincipalHuman end-userAI agent
API accessHuman JWT only (require_human)Agent JWT + Intents API
Key storage__treasury-keys → users/{id}/chains/...__agent-keys → agents/{id}/chains/...
Typical useIn-app Send/Swap/Receive for your usersAutonomous on-chain actions, Intents API
GuardrailsSpend policiesTransaction guardrails + policies
ProvisioningAuto on first login (auto_provision_chains) or POST /v1/treasury/wallets/generateHuman provisions via dashboard or POST /v1/agents/{id}/signing-keys

Agents receive 403 on all treasury wallet endpoints. If your product needs programmatic signing for bots, provision agent signing keys separately — often via Platform bootstrap templates.

End-to-end user journey​

  1. Developer registers a platform app → receives plt_ key.
  2. Developer creates a bootstrap template (optional agents + policies) and embeds the wallet widget.
  3. End-user signs in via email OTP or social login → treasury wallets auto-provision for requested chains.
  4. End-user sends, swaps, or buys crypto — subject to your spend policies and step-up auth.
  5. Platform receives webhooks (platform.user.connected, wallet.transfer.sent, etc.) if configured.

Security & trust​

Embedded wallet keys inherit 1Claw's envelope encryption, audit hash chain, and tier-aware HSM protection. For a deeper security picture:

Guide map​

#GuideTopics
1OverviewArchitecture, vs agent keys, journey
2Getting startedPlatform app, plt_ key, bootstrap, claim flow
3AuthenticationEmail OTP, social login, passkeys, Sign in with 1Claw
4Multi-chain walletsSix chains, generation, balances, import/export
5Send, swap, receiveTransfers, 0x swaps, gasless, passkey tx auth
6Spend policiesApp defaults, per-user overrides
7Wallet access policiesRole/principal grants (v0.53.1)
8React integration@1claw/wallet-react props and theming
9Platform APIUpsert, bootstrap, templates, grants
10Fiat on/off rampsCoinbase Onramp, MoonPay
11AdvancedDeposits, internal ledger, sub-orgs, CMEK/MPC
12Security and custodyHSM, platform_locked, enforcement layers
13Testing and productionStaging checklist, go-live