Loading...
Loading...
Build crypto wallets using Circle Modular Wallets SDK with passkey authentication, gasless transactions, and extensible module architecture. Use when: creating crypto wallets with passkey-based (WebAuthn) registration and login, sending gasless transactions using Circle Gas Station paymaster, batching multiple transactions into a single user operation, implementing passkey recovery using BIP-39 mnemonic phrases, building advanced onchain wallets with custom modules (multisig, subscriptions, session keys). Triggers on: modular wallet, smart account, MSCA, passkey authentication, WebAuthn, gasless, paymaster, Gas Station, bundler client, user operation, userOp, ERC-4337, ERC-6900, account abstraction, toCircleSmartAccount, toPasskeyTransport, toModularTransport, sendUserOperation, batch transactions, 2D nonce, passkey recovery, EIP-1193 provider.
npx skill4agent add circlefin/skills use-modular-walletsnpm install @circle-fin/modular-wallets-core viemnpm install bip39CLIENT_KEY= # Circle Console client key for app identification
CLIENT_URL= # Circle Client URL (e.g., https://modular-sdk.circle.com/v1/rpc/w3s/buidl)| Chain | Mainnet | Testnet |
|---|---|---|
| Arbitrum | Yes | Yes |
| Avalanche | Yes | Yes |
| Base | Yes | Yes |
| Monad | Yes | Yes |
| Optimism | Yes | Yes |
| Polygon | Yes | Yes |
| Unichain | Yes | Yes |
toModularTransport| Chain | Path Segment |
|---|---|
| Arc Testnet | |
| Polygon Amoy | |
toPasskeyTransporttoModularTransportpaymaster: truecallssendUserOperationparseUnits(value, 6)Note: The reference code snippets useto achieve a quick working example only. Do not uselocalStoragein production.localStorage
references/circle-smart-account.mdreferences/passkey-recovery.md.gitignore.env*toModularTransport${clientUrl}/polygonAmoyparseUnits(value, 6)paymaster: trueuse-developer-controlled-walletsuse-user-controlled-wallets