use-modular-wallets

Build passkey-authenticated smart contract wallets with gasless transactions using Circle Modular Wallets SDK.

1|Updated Jul 20, 2026
One-click install
npx skills add https://github.com/Lightupwrld/Cycuxio --skill use-modular-wallets-lightupwrld
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-modular-wallets
Source: https://github.com/Lightupwrld/Cycuxio/tree/main/.agents/skills/use-modular-wallets
Command: npx skills add https://github.com/Lightupwrld/Cycuxio --skill use-modular-wallets-lightupwrld

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @circle-fin/modular-wallets-core, viem, bip39, and includes references (resource) components.

What problem does it solve? Building crypto wallets traditionally requires managing private keys, paying gas fees, and handling complex onboarding. This Skill guides you through creating Modular Smart Contract Accounts (MSCAs) with passkey-based authentication, gasless transactions via Circle Gas Station, and extensible onchain modules. ## Core Features & Use Cases - Passkey Authentication: Register and log in users with WebAuthn passkeys instead of seed phrases, using toPasskeyTransport and toWebAuthnCredential. - Gasless Transactions: Sponsor user gas fees via Circle Gas Station paymaster by passing paymaster: true in user operations. - Batch Operations & Recovery: Combine multiple calls into one user operation and implement BIP-39 mnemonic-based passkey recovery. - Use Case: Build a consumer app where users sign up with a fingerprint, receive a smart account on Arc Testnet, and send USDC without ever holding gas tokens. ## Quick Start Ask the AI to create a Circle smart account with passkey login and send a gasless USDC transfer on Arc Testnet.

Frequently Asked Questions about use-modular-wallets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a smart account with passkey authentication?

Register a passkey using toWebAuthnCredential with WebAuthnMode.Register, then call toCircleSmartAccount with the credential wrapped in toWebAuthnAccount. The MSCA deploys lazily on the first outbound transaction, so no upfront deployment gas is needed.

How to send gasless USDC transactions with Circle Gas Station?

Pass paymaster: true in sendUserOperation to sponsor gas via Circle Gas Station. Encode the USDC transfer with encodeTransfer using parseUnits(value, 6) since USDC has 6 decimals, then wait for confirmation with waitForUserOperationReceipt.

Which blockchains support Circle Modular Wallets?

MSCAs are supported on Arbitrum, Avalanche, Base, Monad, Optimism, Polygon, Unichain, and Arc Testnet. They are not available on Ethereum mainnet, Solana, Aptos, or NEAR. Each chain requires a specific path segment appended to the client URL for toModularTransport.

How do I recover a wallet when the passkey is lost?

During setup, generate a BIP-39 mnemonic and register its derived EOA as a recovery address on-chain. When the passkey is lost, validate the mnemonic, create a new passkey credential, and call executeRecovery to swap the account owner to the new passkey.

Why does my user operation fail with error AA21 or 155203?

AA21 means the sender did not pay prefund, so verify paymaster: true is set or fund the account with native tokens. Error 155203 occurs when sending a nonzero nonce before the wallet is deployed; send the first user operation with nonce 0 since MSCAs deploy lazily.