MetaMask Smart Accounts Kit for Openclaw

A comprehensive SDK for building next-generation Web3 applications using MetaMask Smart Accounts, ERC-4337, and the Delegation Framework.

ayushbherwani1998
v1.0.0
Feb 5, 2026
0
2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install metamask-smart-accounts-kit

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 metamask-smart-accounts-kit 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 MetaMask Smart Accounts Kit?

The MetaMask Smart Accounts Kit is a robust development toolset designed to simplify the creation of decentralized applications (dApps) leveraging Account Abstraction. This skill, as part of the Openclaw Skills library, enables developers to implement sophisticated Web3 features such as gas abstraction (paymasters), passkey-based authentication, and multi-signature security. It bridges the gap between traditional wallet interactions and programmable smart accounts, providing a streamlined interface for sending user operations and managing account implementations like Hybrid and Stateless7702 accounts.

In addition to account management, the kit provides native support for the Delegation Framework (ERC-7710) and Advanced Permissions (ERC-7715). This allows for the creation of granular, time-bound, and scope-restricted permissions, enabling session keys and automated transactions without compromising security. By integrating with Viem and MetaMask Flask, it provides a cutting-edge environment for developers within the Openclaw Skills ecosystem to build high-performance, user-friendly blockchain applications.

MetaMask Smart Accounts Kit Use Cases

  • Implementing gasless transaction flows where the dApp pays for user gas fees via a paymaster.
  • Setting up session keys for Web3 games to allow frictionless gameplay without constant wallet prompts.
  • Creating complex multisig account structures with custom thresholds and multiple signers.
  • Enabling biometric authentication for blockchain accounts using the Hybrid implementation and passkeys.
  • Automating periodic token transfers or streaming payments with advanced permission scopes.

How MetaMask Smart Accounts Kit Works

  1. Account Initialization: Create a smart account using toMetaMaskSmartAccount by specifying an implementation (Hybrid, Multisig, or Stateless7702) and a signer.
  2. Delegation Setup: Define the scope of authority (e.g., erc20TransferAmount) and attach specific caveats like timestamp or limitedCalls to restrict the delegate's power.
  3. Signing & Storage: Generate a signature for the delegation using the smart account's authority to authorize the delegate's actions.
  4. Redemption: The delegate executes the authorized actions by encoding calldata and submitting it as a user operation through a bundler or directly via an EOA.

MetaMask Smart Accounts Kit Setup

Install the core library using npm:

npm install @metamask/[email protected]

For developers creating custom caveat enforcers, install the delegation framework contracts:

forge install metamask/[email protected]

MetaMask Smart Accounts Kit Data Schema & Taxonomy

The kit organizes its operations around core ERC standards and smart contract deployments. The following table summarizes the primary data components:

Component Description
Implementation Defines account logic: Hybrid (EOA+Passkey), Multisig, or Stateless7702.
EntryPoint The singleton contract (0x000...032) used for processing ERC-4337 user operations.
DelegationManager The central contract (0xdb9...dB3) for creating and redeeming ERC-7710 delegations.
Caveat Enforcers Logical units that validate restrictions like allowedMethods, valueLte, and timestamp.
Execution Modes Defines how calls are processed: SingleDefault, SingleTry, BatchDefault, or BatchTry.

MetaMask Smart Accounts Kit Advanced Features

  • Advanced Permissions (ERC-7715): Request and manage human-readable permissions in MetaMask Flask for token streaming and periodic limits.
  • EIP-7702 Integration: Utilize the Stateless7702 implementation to upgrade existing EOAs into smart accounts for enhanced functionality.
  • Redelegation Chains: Support for complex permission hierarchies where a delegate can sub-delegate a subset of their authority to another party.
  • Multi-Token Period Limits: Sophisticated caveat enforcers that manage spending limits across multiple assets simultaneously.
  • Viem Extension Actions: Custom actions like erc7710BundlerActions and erc7715ProviderActions to extend standard wallet clients within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*