Circle Modular Wallets SDK Integration for Openclaw

A specialized toolkit for building ERC-4337 smart contract accounts with passkey authentication and gasless transaction support via Circle Modular Wallets.

mscandlen3
v0.1.0
Mar 17, 2026
0
788
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install use-modular-wallets

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install use-modular-wallets using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Circle Modular Wallets SDK Integration?

This skill empowers developers to integrate Circle Modular Wallets into their software ecosystem, utilizing the Openclaw Skills framework to streamline blockchain interactions. By leveraging ERC-4337 account abstraction and the ERC-6900 modular smart contract framework, it allows for the creation of flexible smart accounts that replace traditional private keys with WebAuthn passkeys. This approach significantly improves user onboarding by removing the friction of seed phrases while maintaining high security.

The skill provides a standardized way to handle gasless transactions through the Circle Gas Station paymaster, ensuring that end users do not need native tokens for network fees. It is optimized for several EVM-compatible networks, making it a versatile choice for modern decentralized applications that require robust account management and efficient transaction execution.

Circle Modular Wallets SDK Integration Use Cases

  • Creating crypto wallets with passkey-based (WebAuthn) registration and login for better UX.
  • Sending gasless transactions using Circle Gas Station paymaster to sponsor user fees.
  • Batching multiple transactions into a single user operation to improve efficiency.
  • Implementing passkey recovery mechanisms using BIP-39 mnemonic phrases when credentials are lost.
  • Building advanced onchain wallets with custom modules like multisig, subscriptions, or session keys.

How Circle Modular Wallets SDK Integration Works

  1. Initialize the environment by installing the Circle Modular Wallets SDK and the viem library.
  2. Configure the Circle Console to obtain a Client Key and define the specific passkey domain.
  3. Implement toPasskeyTransport to handle WebAuthn registration and login flows for user identity.
  4. Utilize toModularTransport to connect the smart account to a specific chain RPC endpoint.
  5. Construct and send User Operations using sendUserOperation, optionally enabling the paymaster for gas sponsorship.
  6. Persist P256Credential objects in secure storage to maintain the user's modular wallet session across reloads.

Circle Modular Wallets SDK Integration Setup

Installation

npm install @circle-fin/modular-wallets-core viem bip39

Environment Configuration

Set up your environment variables to link with the Circle Console:

CLIENT_KEY=your_circle_client_key
CLIENT_URL=https://modular-sdk.circle.com/v1/rpc/w3s/buidl

Before execution, ensure the passkey domain is correctly configured in the Circle developer dashboard to allow WebAuthn operations.

Circle Modular Wallets SDK Integration Data Schema & Taxonomy

Data Entity Description Storage Method
P256Credential The WebAuthn credential used for passkey ownership Secure Cookie / Local Storage
Client URL The RPC endpoint appended with chain-specific paths Environment Variable
2D Nonce Nonce key enabling parallel transaction execution Memory / State Management
User Operation The ERC-4337 compliant transaction bundle On-chain Transmission
Recovery Mnemonic BIP-39 phrase used to restore account access Secure Off-chain Backup

Circle Modular Wallets SDK Integration Advanced Features

  • Multi-chain support for Arbitrum, Avalanche, Base, Monad, Optimism, Polygon, and Unichain.
  • Native Gas Sponsorship enabling paymaster integration for zero-fee user transactions.
  • Transaction Batching capabilities to execute multiple contract interactions in a single atomic step.
  • Parallel transaction execution via 2D nonces, preventing sequential execution bottlenecks.
  • Comprehensive recovery workflows using mnemonic phrases to safeguard against lost passkeys.
  • Lazy deployment architecture where account creation costs are deferred until the first outbound transaction.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*