Crawler Summary

smart-accounts-kit answer-first brief

Web3 development using MetaMask Smart Accounts Kit. Use when the user wants to build dApps with ERC-4337 smart accounts, send user operations, batch transactions, configure signers (EOA, passkey, multisig), implement gas abstraction with paymasters, create delegations, or request advanced permissions (ERC-7715). Supports Viem integration, multiple signer types (Dynamic, Web3Auth, Wagmi), gasless transactions, and the Delegation Framework. --- name: smart-accounts-kit description: Web3 development using MetaMask Smart Accounts Kit. Use when the user wants to build dApps with ERC-4337 smart accounts, send user operations, batch transactions, configure signers (EOA, passkey, multisig), implement gas abstraction with paymasters, create delegations, or request advanced permissions (ERC-7715). Supports Viem integration, multiple signer types (Dynamic, Web3A Published capability contract available. No trust telemetry is available yet. 3 GitHub stars reported by the source. Last updated 2/24/2026.

Freshness

Last checked 2/22/2026

Best For

Contract is available with explicit auth and schema references.

Not Ideal For

smart-accounts-kit is not ideal for teams that need stronger public trust telemetry, lower setup complexity, or more explicit contract coverage before production rollout.

Evidence Sources Checked

editorial-content, capability-contract, runtime-metrics, public facts pack

Claim this agent
Agent DossierGitHubSafety: 100/100

smart-accounts-kit

Web3 development using MetaMask Smart Accounts Kit. Use when the user wants to build dApps with ERC-4337 smart accounts, send user operations, batch transactions, configure signers (EOA, passkey, multisig), implement gas abstraction with paymasters, create delegations, or request advanced permissions (ERC-7715). Supports Viem integration, multiple signer types (Dynamic, Web3Auth, Wagmi), gasless transactions, and the Delegation Framework. --- name: smart-accounts-kit description: Web3 development using MetaMask Smart Accounts Kit. Use when the user wants to build dApps with ERC-4337 smart accounts, send user operations, batch transactions, configure signers (EOA, passkey, multisig), implement gas abstraction with paymasters, create delegations, or request advanced permissions (ERC-7715). Supports Viem integration, multiple signer types (Dynamic, Web3A

OpenClawself-declared

Public facts

7

Change events

1

Artifacts

0

Freshness

Feb 22, 2026

Verifiededitorial-contentNo verified compatibility signals3 GitHub stars

Published capability contract available. No trust telemetry is available yet. 3 GitHub stars reported by the source. Last updated 2/24/2026.

3 GitHub starsSchema refs publishedTrust evidence available

Trust score

Unknown

Compatibility

OpenClaw

Freshness

Feb 22, 2026

Vendor

Smartgator

Artifacts

0

Benchmarks

0

Last release

Unpublished

Executive Summary

Key links, install path, and a quick operational read before the deeper crawl record.

Verifiededitorial-content

Summary

Published capability contract available. No trust telemetry is available yet. 3 GitHub stars reported by the source. Last updated 2/24/2026.

Setup snapshot

git clone https://github.com/smartgator/smart-accounts-kit-skills.git
  1. 1

    Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.

  2. 2

    Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Evidence Ledger

Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.

Verifiededitorial-content
Vendor (1)

Vendor

Smartgator

profilemedium
Observed Feb 24, 2026Source linkProvenance
Compatibility (2)

Protocol compatibility

OpenClaw

contractmedium
Observed Feb 24, 2026Source linkProvenance

Auth modes

api_key

contracthigh
Observed Feb 24, 2026Source linkProvenance
Artifact (1)

Machine-readable schemas

OpenAPI or schema references published

contracthigh
Observed Feb 24, 2026Source linkProvenance
Adoption (1)

Adoption signal

3 GitHub stars

profilemedium
Observed Feb 24, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance
Integration (1)

Crawlable docs

6 indexed pages on the official domain

search_documentmedium
Observed Apr 15, 2026Source linkProvenance

Release & Crawl Timeline

Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.

Self-declaredagent-index

Artifacts Archive

Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.

Self-declaredGITHUB OPENCLEW

Extracted files

0

Examples

6

Snippets

0

Languages

typescript

Parameters

Executable Examples

bash

npm install @metamask/smart-accounts-kit@0.3.0

bash

forge install metamask/delegation-framework@v1.3.0

typescript

import { Implementation, toMetaMaskSmartAccount } from '@metamask/smart-accounts-kit'
import { privateKeyToAccount } from 'viem/accounts'

const account = privateKeyToAccount('0x...')

const smartAccount = await toMetaMaskSmartAccount({
  client: publicClient,
  implementation: Implementation.Hybrid,
  deployParams: [account.address, [], [], []],
  deploySalt: '0x',
  signer: { account },
})

typescript

import { createDelegation } from '@metamask/smart-accounts-kit'
import { parseUnits } from 'viem'

const delegation = createDelegation({
  to: delegateAddress,
  from: delegatorSmartAccount.address,
  environment: delegatorSmartAccount.environment,
  scope: {
    type: 'erc20TransferAmount',
    tokenAddress: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
    maxAmount: parseUnits('10', 6),
  },
  caveats: [
    { type: 'timestamp', afterThreshold: now, beforeThreshold: expiry },
    { type: 'limitedCalls', limit: 5 },
  ],
})

typescript

const signature = await smartAccount.signDelegation({ delegation })
const signedDelegation = { ...delegation, signature }

typescript

import { createExecution, ExecutionMode } from '@metamask/smart-accounts-kit'
import { DelegationManager } from '@metamask/smart-accounts-kit/contracts'
import { encodeFunctionData, erc20Abi } from 'viem'

const callData = encodeFunctionData({
  abi: erc20Abi,
  args: [recipient, parseUnits('1', 6)],
  functionName: 'transfer',
})

const execution = createExecution({ target: tokenAddress, callData })

const redeemCalldata = DelegationManager.encode.redeemDelegations({
  delegations: [[signedDelegation]],
  modes: [ExecutionMode.SingleDefault],
  executions: [[execution]],
})

// Via smart account
const userOpHash = await bundlerClient.sendUserOperation({
  account: delegateSmartAccount,
  calls: [{ to: delegateSmartAccount.address, data: redeemCalldata }],
})

// Via EOA
const txHash = await delegateWalletClient.sendTransaction({
  to: environment.DelegationManager,
  data: redeemCalldata,
})

Docs & README

Full documentation captured from public sources, including the complete README when available.

Self-declaredGITHUB OPENCLEW

Docs source

GITHUB OPENCLEW

Editorial quality

ready

Web3 development using MetaMask Smart Accounts Kit. Use when the user wants to build dApps with ERC-4337 smart accounts, send user operations, batch transactions, configure signers (EOA, passkey, multisig), implement gas abstraction with paymasters, create delegations, or request advanced permissions (ERC-7715). Supports Viem integration, multiple signer types (Dynamic, Web3Auth, Wagmi), gasless transactions, and the Delegation Framework. --- name: smart-accounts-kit description: Web3 development using MetaMask Smart Accounts Kit. Use when the user wants to build dApps with ERC-4337 smart accounts, send user operations, batch transactions, configure signers (EOA, passkey, multisig), implement gas abstraction with paymasters, create delegations, or request advanced permissions (ERC-7715). Supports Viem integration, multiple signer types (Dynamic, Web3A

Full README

name: smart-accounts-kit description: Web3 development using MetaMask Smart Accounts Kit. Use when the user wants to build dApps with ERC-4337 smart accounts, send user operations, batch transactions, configure signers (EOA, passkey, multisig), implement gas abstraction with paymasters, create delegations, or request advanced permissions (ERC-7715). Supports Viem integration, multiple signer types (Dynamic, Web3Auth, Wagmi), gasless transactions, and the Delegation Framework. metadata: {"openclaw":{"emoji":"๐ŸฆŠ","homepage":"https://docs.metamask.io/smart-accounts-kit"}}

Quick Reference

This skill file provides quick access to the MetaMask Smart Accounts Kit v0.3.0. For detailed information, refer to the specific reference files.

๐Ÿ“š Detailed References:

Package Installation

npm install @metamask/smart-accounts-kit@0.3.0

For custom caveat enforcers:

forge install metamask/delegation-framework@v1.3.0

Core Concepts Summary

1. Smart Accounts (ERC-4337)

Three implementation types:

| Implementation | Best For | Key Feature | |---------------|----------|-------------| | Hybrid (Implementation.Hybrid) | Standard dApp users | EOA + passkey signers, most flexible | | MultiSig (Implementation.MultiSig) | Treasury/DAO operations | Threshold-based security, Safe-compatible | | Stateless7702 (Implementation.Stateless7702) | Power users with existing EOA | Keep same address, add smart account features via EIP-7702 |

Decision Guide:

  • Building for general users? โ†’ Hybrid
  • Managing treasuries or multi-party control? โ†’ MultiSig
  • Upgrading existing EOAs without address change? โ†’ Stateless7702

2. Delegation Framework (ERC-7710)

Grant permissions from delegator to delegate:

  • Scopes - Initial authority (spending limits, function calls)
  • Caveats - Restrictions enforced by smart contracts
  • Types - Root, open root, redelegation, open redelegation
  • Lifecycle - Create โ†’ Sign โ†’ Store โ†’ Redeem

3. Advanced Permissions (ERC-7715)

Request permissions via MetaMask extension:

  • Human-readable UI confirmations
  • ERC-20 and native token permissions
  • Requires MetaMask Flask 13.5.0+
  • User must have smart account

Quick Code Examples

Create Smart Account

import { Implementation, toMetaMaskSmartAccount } from '@metamask/smart-accounts-kit'
import { privateKeyToAccount } from 'viem/accounts'

const account = privateKeyToAccount('0x...')

const smartAccount = await toMetaMaskSmartAccount({
  client: publicClient,
  implementation: Implementation.Hybrid,
  deployParams: [account.address, [], [], []],
  deploySalt: '0x',
  signer: { account },
})

Create Delegation

import { createDelegation } from '@metamask/smart-accounts-kit'
import { parseUnits } from 'viem'

const delegation = createDelegation({
  to: delegateAddress,
  from: delegatorSmartAccount.address,
  environment: delegatorSmartAccount.environment,
  scope: {
    type: 'erc20TransferAmount',
    tokenAddress: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
    maxAmount: parseUnits('10', 6),
  },
  caveats: [
    { type: 'timestamp', afterThreshold: now, beforeThreshold: expiry },
    { type: 'limitedCalls', limit: 5 },
  ],
})

Sign Delegation

const signature = await smartAccount.signDelegation({ delegation })
const signedDelegation = { ...delegation, signature }

Redeem Delegation

import { createExecution, ExecutionMode } from '@metamask/smart-accounts-kit'
import { DelegationManager } from '@metamask/smart-accounts-kit/contracts'
import { encodeFunctionData, erc20Abi } from 'viem'

const callData = encodeFunctionData({
  abi: erc20Abi,
  args: [recipient, parseUnits('1', 6)],
  functionName: 'transfer',
})

const execution = createExecution({ target: tokenAddress, callData })

const redeemCalldata = DelegationManager.encode.redeemDelegations({
  delegations: [[signedDelegation]],
  modes: [ExecutionMode.SingleDefault],
  executions: [[execution]],
})

// Via smart account
const userOpHash = await bundlerClient.sendUserOperation({
  account: delegateSmartAccount,
  calls: [{ to: delegateSmartAccount.address, data: redeemCalldata }],
})

// Via EOA
const txHash = await delegateWalletClient.sendTransaction({
  to: environment.DelegationManager,
  data: redeemCalldata,
})

Request Advanced Permissions

import { erc7715ProviderActions } from '@metamask/smart-accounts-kit/actions'

const walletClient = createWalletClient({
  transport: custom(window.ethereum),
}).extend(erc7715ProviderActions())

const grantedPermissions = await walletClient.requestExecutionPermissions([
  {
    chainId: chain.id,
    expiry: now + 604800,
    signer: {
      type: 'account',
      data: { address: sessionAccount.address },
    },
    permission: {
      type: 'erc20-token-periodic',
      data: {
        tokenAddress,
        periodAmount: parseUnits('10', 6),
        periodDuration: 86400,
        justification: 'Transfer 10 USDC daily',
      },
    },
    isAdjustmentAllowed: true,
  },
])

Redeem Advanced Permissions

// Smart account
import { erc7710BundlerActions } from '@metamask/smart-accounts-kit/actions'

const bundlerClient = createBundlerClient({
  client: publicClient,
  transport: http(bundlerUrl),
}).extend(erc7710BundlerActions())

const permissionsContext = grantedPermissions[0].context
const delegationManager = grantedPermissions[0].signerMeta.delegationManager

const userOpHash = await bundlerClient.sendUserOperationWithDelegation({
  publicClient,
  account: sessionAccount,
  calls: [
    {
      to: tokenAddress,
      data: calldata,
      permissionsContext,
      delegationManager,
    },
  ],
})

// EOA
import { erc7710WalletActions } from '@metamask/smart-accounts-kit/actions'

const walletClient = createWalletClient({
  account: sessionAccount,
  chain,
  transport: http(),
}).extend(erc7710WalletActions())

const txHash = await walletClient.sendTransactionWithDelegation({
  to: tokenAddress,
  data: calldata,
  permissionsContext,
  delegationManager,
})

Key API Methods

Smart Accounts

  • toMetaMaskSmartAccount() - Create smart account
  • aggregateSignature() - Combine multisig signatures
  • signDelegation() - Sign delegation
  • signUserOperation() - Sign user operation
  • signMessage() / signTypedData() - Standard signing

Delegations

  • createDelegation() - Create delegation with delegate
  • createOpenDelegation() - Create open delegation
  • createCaveatBuilder() - Build caveats array
  • createExecution() - Create execution struct
  • redeemDelegations() - Encode redemption calldata
  • signDelegation() - Sign with private key
  • getSmartAccountsEnvironment() - Resolve environment
  • deploySmartAccountsEnvironment() - Deploy contracts
  • overrideDeployedEnvironment() - Override environment

Advanced Permissions

  • erc7715ProviderActions() - Wallet client extension for requesting
  • requestExecutionPermissions() - Request permissions
  • erc7710BundlerActions() - Bundler client extension
  • sendUserOperationWithDelegation() - Redeem with smart account
  • erc7710WalletActions() - Wallet client extension
  • sendTransactionWithDelegation() - Redeem with EOA

Supported ERC-7715 Permission Types

ERC-20 Token Permissions

| Permission Type | Description | |----------------|-------------| | erc20-token-periodic | Per-period limit that resets at each period | | erc20-token-stream | Linear streaming with amountPerSecond rate |

Native Token Permissions

| Permission Type | Description | |----------------|-------------| | native-token-periodic | Per-period ETH limit that resets | | native-token-stream | Linear ETH streaming with amountPerSecond rate |

Common Delegation Scopes

Spending Limits

| Scope | Description | | --------------------------- | ----------------------------- | | erc20TransferAmount | Fixed ERC-20 limit | | erc20PeriodTransfer | Per-period ERC-20 limit | | erc20Streaming | Linear streaming ERC-20 | | nativeTokenTransferAmount | Fixed native token limit | | nativeTokenPeriodTransfer | Per-period native token limit | | nativeTokenStreaming | Linear streaming native | | erc721Transfer | ERC-721 (NFT) transfer |

Function Calls

| Scope | Description | | ------------------- | ---------------------------------- | | functionCall | Specific methods/addresses allowed | | ownershipTransfer | Ownership transfers only |

Common Caveat Enforcers

Target & Method

  • allowedTargets - Limit callable addresses
  • allowedMethods - Limit callable methods
  • allowedCalldata - Validate specific calldata
  • exactCalldata / exactCalldataBatch - Exact calldata match
  • exactExecution / exactExecutionBatch - Exact execution match

Value & Token

  • valueLte - Limit native token value
  • erc20TransferAmount - Limit ERC-20 amount
  • erc20BalanceChange - Validate ERC-20 balance change
  • erc721Transfer / erc721BalanceChange - ERC-721 restrictions
  • erc1155BalanceChange - ERC-1155 validation

Time & Frequency

  • timestamp - Valid time range (seconds)
  • blockNumber - Valid block range
  • limitedCalls - Limit redemption count
  • erc20PeriodTransfer / erc20Streaming - Time-based ERC-20
  • nativeTokenPeriodTransfer / nativeTokenStreaming - Time-based native

Security & State

  • redeemer - Limit redemption to specific addresses
  • id - One-time delegation with ID
  • nonce - Bulk revocation via nonce
  • deployed - Auto-deploy contract
  • ownershipTransfer - Ownership transfer only
  • nativeTokenPayment - Require payment
  • nativeBalanceChange - Validate native balance
  • multiTokenPeriod - Multi-token period limits

Execution Modes

| Mode | Chains | Processing | On Failure | | --------------- | -------- | ----------- | ---------- | | SingleDefault | One | Sequential | Revert | | SingleTry | One | Sequential | Continue | | BatchDefault | Multiple | Interleaved | Revert | | BatchTry | Multiple | Interleaved | Continue |

Contract Addresses (v1.3.0)

Core

| Contract | Address | | --------------------- | -------------------------------------------- | | EntryPoint | 0x0000000071727De22E5E9d8BAf0edAc6f37da032 | | SimpleFactory | 0x69Aa2f9fe1572F1B640E1bbc512f5c3a734fc77c | | DelegationManager | 0xdb9B1e94B5b69Df7e401DDbedE43491141047dB3 | | MultiSigDeleGatorImpl | 0x56a9EdB16a0105eb5a4C54f4C062e2868844f3A7 | | HybridDeleGatorImpl | 0x48dBe696A4D990079e039489bA2053B36E8FFEC4 |

Critical Rules

Always Required

  1. Always use caveats - Never create unrestricted delegations
  2. Deploy delegator first - Account must be deployed before redeeming
  3. Check smart account status - ERC-7715 requires user has smart account

Behavior

  1. Caveats are cumulative - In delegation chains, restrictions stack
  2. Function call default - v0.3.0 defaults to NO native token (use valueLte)
  3. Batch mode caveat - No compatible caveat enforcers available

Requirements

  1. ERC-7715 requirements - MetaMask Flask 13.5.0+, smart account
  2. Multisig threshold - Need at least threshold signers
  3. 7702 upgrade - Stateless7702 requires EIP-7702 upgrade first

Advanced Patterns

Parallel User Operations (Nonce Keys)

Smart accounts use a 256-bit nonce structure: 192-bit key + 64-bit sequence. Each unique key has its own independent sequence, enabling parallel execution. This is critical for backend services processing multiple delegations concurrently.

Installation

For proper nonce handling, install the permissionless SDK alongside the Smart Accounts Kit:

npm install permissionless

How Parallel Nonces Work

ERC-4337 uses a single uint256 nonce where:

  • 192 bits = key identifier (allows parallel streams)
  • 64 bits = sequence number (increments per key)

Each key has an independent sequence, so UserOps with different keys execute in parallel without ordering constraints.

Getting Nonce with Permissionless

import { getAccountNonce } from 'permissionless'
import { entryPoint07Address } from 'viem/account-abstraction'

// Get nonce for a specific key
const parallelNonce = await getAccountNonce(publicClient, {
  address: smartAccount.address,
  entryPointAddress: entryPoint07Address,
  key: BigInt(Date.now()), // Unique key for parallel execution
})

const userOpHash = await bundlerClient.sendUserOperation({
  account: smartAccount,
  calls: [redeemCalldata],
  nonce: parallelNonce, // Properly encoded 256-bit nonce
})

Parallel Execution Pattern

import { getAccountNonce } from 'permissionless'
import { entryPoint07Address } from 'viem/account-abstraction'

// Execute multiple redemption UserOps in parallel
const redeems = await Promise.all(
  delegations.map(async (delegation, index) => {
    // Generate unique key for this operation
    const nonceKey = BigInt(Date.now()) + BigInt(index * 1000)
    
    // Get properly encoded nonce for this key
    const nonce = await getAccountNonce(publicClient, {
      address: backendSmartAccount.address,
      entryPointAddress: entryPoint07Address,
      key: nonceKey,
    })
    
    const redeemCalldata = DelegationManager.encode.redeemDelegations({
      delegations: [[delegation]],
      modes: [ExecutionMode.SingleDefault],
      executions: [[execution]],
    })
    
    return bundlerClient.sendUserOperation({
      account: backendSmartAccount,
      calls: [{ to: backendSmartAccount.address, data: redeemCalldata }],
      nonce, // Parallel execution enabled via unique key
    })
  })
)

Without Permissionless (Manual Approach)

The EntryPoint contract encodes nonce as: sequence | (key << 64)

If not using permissionless, encode manually:

// EntryPoint: nonceSequenceNumber[sender][key] | (uint256(key) << 64)
const key = BigInt(Date.now())
const sequence = 0n // New key starts at sequence 0
const nonce = sequence | (key << 64n)
// Or equivalently: (key << 64n) | sequence

However, getAccountNonce from permissionless is recommended as it:

  • Fetches the current sequence for the key from the EntryPoint
  • Properly encodes the 256-bit value
  • Handles edge cases and validation

Key Points

  • Different keys = parallel execution โ€” no ordering guarantees between different keys
  • Same key = sequential execution โ€” sequence increments monotonically per key
  • Use cases: Backend redemption services, DCA apps, high-frequency trading, batch operations
  • Nonce generation: getAccountNonce returns the full 256-bit nonce properly encoded

Common Mistakes

| Mistake | Result | |---------|--------| | Reusing same nonce key | Sequential execution (defeats purpose) | | Using Date.now() without offset | Potential collision if multiple ops fire simultaneously | | Not using getAccountNonce | May miss current sequence, causing replacement instead of new op | | Assuming ordering | Race conditions in dependent operations |

Error Handling

const results = await Promise.allSettled(redeems)

results.forEach((result, index) => {
  if (result.status === 'rejected') {
    // Check for specific errors
    if (result.reason.message?.includes('AA25')) {
      console.error(`Nonce collision for op ${index}`)
    }
    // Handle or retry
  }
})

Backend Delegation Redemption

For server-side automation (DCA bots, keeper services, automated trading):

// 1. Backend creates its own smart account as delegate
const backendAccount = await toMetaMaskSmartAccount({
  client: publicClient,
  implementation: Implementation.Hybrid,
  deployParams: [backendOwner.address, [], [], []],
  deploySalt: '0x',
  signer: { account: backendOwner },
})

// 2. Backend redeems by sending UserOp FROM its account
const userOpHash = await bundlerClient.sendUserOperation({
  account: backendAccount,
  calls: [{
    to: backendAccount.address,
    data: DelegationManager.encode.redeemDelegations({
      delegations: [[userDelegation]],
      modes: [ExecutionMode.SingleDefault],
      executions: [[swapExecution]],
    })
  }],
})

Use case: Automated dollar-cost averaging (DCA) bots that redeem swap delegations based on market signals or scheduled intervals.

Counterfactual Account Deployment

Delegator accounts must be deployed before delegations can be redeemed. The DelegationManager reverts with 0x3db6791c for counterfactual accounts.

Solution: Deploy automatically via first UserOp:

// Build redemption calldata
const redeemCalldata = DelegationManager.encode.redeemDelegations({
  delegations: [[signedDelegation]],
  modes: [ExecutionMode.SingleDefault],
  executions: [[execution]],
})

// First redemption deploys the account automatically via initCode
const userOpHash = await bundlerClient.sendUserOperation({
  account: smartAccount, // Will deploy if counterfactual
  calls: [{
    to: smartAccount.address,
    data: redeemCalldata,
    value: 0n,
  }],
})

Session Accounts for AI Agents

For automated services, session accounts act as isolated signers that can only operate within granted delegations. The private key can be generated ephemerally, stored in environment variables, or managed via HSM/server wallets:

// Session account created from various sources
const sessionAccount = privateKeyToAccount(
  process.env.SESSION_KEY || generatePrivateKey() || hsmWallet.key
)

// Request delegation from user to session account
const delegation = createDelegation({
  to: sessionAccount.address,
  from: userSmartAccount.address,
  environment,
  scope: { type: 'erc20TransferAmount', tokenAddress, maxAmount: parseUnits('100', 6) },
  caveats: [
    { type: 'timestamp', afterThreshold: now, beforeThreshold: expiry },
    { type: 'limitedCalls', limit: 10 },
  ],
})
// Session account can only act within delegation constraints

Common Patterns

Pattern 1: ERC-20 with Time Limit

const delegation = createDelegation({
  to: delegate,
  from: delegator,
  environment,
  scope: {
    type: 'erc20TransferAmount',
    tokenAddress,
    maxAmount: parseUnits('100', 6),
  },
  caveats: [
    { type: 'timestamp', afterThreshold: now, beforeThreshold: expiry },
    { type: 'limitedCalls', limit: 10 },
    { type: 'redeemer', redeemers: [delegate] },
  ],
})

Pattern 2: Function Call with Value

const delegation = createDelegation({
  to: delegate,
  from: delegator,
  environment,
  scope: {
    type: 'functionCall',
    targets: [contractAddress],
    selectors: ['transfer(address,uint256)'],
    valueLte: { maxValue: parseEther('0.1') },
  },
  caveats: [{ type: 'allowedMethods', selectors: ['transfer(address,uint256)'] }],
})

Pattern 3: Periodic Native Token

const delegation = createDelegation({
  to: delegate,
  from: delegator,
  environment,
  scope: {
    type: 'nativeTokenPeriodTransfer',
    periodAmount: parseEther('0.01'),
    periodDuration: 86400,
    startDate: now,
  },
})

Pattern 4: Redelegation Chain

// Alice โ†’ Bob (100 USDC)
const aliceToBob = createDelegation({
  to: bob,
  from: alice,
  environment,
  scope: { type: 'erc20TransferAmount', tokenAddress, maxAmount: parseUnits('100', 6) },
})

// Bob โ†’ Carol (50 USDC, subset of authority)
const bobToCarol = createDelegation({
  to: carol,
  from: bob,
  environment,
  scope: { type: 'erc20TransferAmount', tokenAddress, maxAmount: parseUnits('50', 6) },
  parentDelegation: aliceToBob,
  caveats: [{ type: 'timestamp', afterThreshold: now, beforeThreshold: expiry }],
})

Troubleshooting Quick Fixes

| Issue | Solution | | ------------------------ | ------------------------------------------------------------ | | Account not deployed | Use bundlerClient.sendUserOperation() to deploy | | Invalid signature | Verify chain ID, delegation manager, signer permissions | | Caveat enforcer reverted | Check caveat parameters match execution, verify order | | Redemption failed | Check delegator balance, calldata validity, target contracts | | ERC-7715 not working | Upgrade to Flask 13.5.0+, ensure user has smart account | | Permission denied | Handle gracefully, provide manual fallback | | Threshold not met | Add more signers for multisig | | 7702 not working | Confirm EOA upgraded via EIP-7702 first |

Error Code Reference

Error codes from the MetaMask Delegation Framework contracts. Use a decoder like calldata.swiss-knife.xyz to identify error signatures.

DelegationManager Errors

| Error Code | Error Name | Meaning | |------------|-----------|---------| | 0x005ecddb | AlreadyDisabled() | Delegation has already been disabled | | 0xf2a5f75a | AlreadyEnabled() | Delegation is already enabled | | 0x1bcaf69f | BatchDataLengthMismatch() | Mismatch in batch array lengths | | 0x05baa052 | CannotUseADisabledDelegation() | Attempting to redeem a disabled delegation | | 0xf645eedf | ECDSAInvalidSignature() | Invalid ECDSA signature format | | 0xfce698f7 | ECDSAInvalidSignatureLength(uint256) | Signature length is incorrect | | 0xd78bce0c | ECDSAInvalidSignatureS(bytes32) | Signature S value is invalid | | 0xac241e11 | EmptySignature() | Signature is empty | | 0xd93c0665 | EnforcedPause() | Contract is paused | | 0xded4370e | InvalidAuthority() | Delegation chain authority validation failed | | 0xb5863604 | InvalidDelegate() | Caller is not the delegate โ€” Most common error | | 0xb9f0f171 | InvalidDelegator() | Caller is not the delegator | | 0x3db6791c | InvalidEOASignature() | EOA signature verification failed | | 0x155ff427 | InvalidERC1271Signature() | Smart contract signature failed | | 0x118cdaa7 | OwnableUnauthorizedAccount(address) | Unauthorized account attempted owner-only action | | 0x1e4fbdf7 | OwnableInvalidOwner(address) | Invalid owner address in ownership transfer |

DeleGatorCore Errors

| Error Code | Error Name | Meaning | |------------|-----------|---------| | 0xd663742a | NotEntryPoint() | Caller is not the EntryPoint contract | | 0x0796d945 | NotEntryPointOrSelf() | Caller is neither EntryPoint nor this contract | | 0x1a4b3a04 | NotDelegationManager() | Caller is not the DelegationManager | | 0x29c3b7ee | NotSelf() | Caller is not this contract itself | | 0xb96fcfe4 | UnsupportedCallType(CallType) | Execution call type not supported | | 0x1187dc06 | UnsupportedExecType(ExecType) | Execution type not supported |

Common Caveat Enforcer Errors (Revert Strings)

| Error String | Meaning | |--------------|---------| | AllowedTargetsEnforcer:target-address-not-allowed | Target contract not in allowed list | | AllowedTargetsEnforcer:invalid-terms-length | Terms length not multiple of 20 bytes | | ERC20TransferAmountEnforcer:invalid-terms-length | Terms must be 52 bytes | | ERC20TransferAmountEnforcer:invalid-contract | Target doesn't match allowed token | | ERC20TransferAmountEnforcer:invalid-method | Method is not transfer | | ERC20TransferAmountEnforcer:allowance-exceeded | Transfer exceeds delegated limit | | CaveatEnforcer:invalid-call-type | Must use single call type | | CaveatEnforcer:invalid-execution-type | Must use default execution type |

Most Common Errors in Production

0xb5863604 โ€” InvalidDelegate

  • Cause: Caller doesn't match the delegate address in delegation
  • Fix: Verify msg.sender equals the to address in the delegation

0xb9f0f171 โ€” InvalidDelegator (counterfactual account)

  • Cause: Delegator smart account not yet deployed
  • Fix: First UserOp will auto-deploy via initCode

0x05baa052 โ€” CannotUseADisabledDelegation

  • Cause: Delegation was disabled by delegator
  • Fix: Ask delegator to re-enable, or use different delegation

0xded4370e โ€” InvalidAuthority

  • Cause: Broken delegation chain (redelegation parent mismatch)
  • Fix: Ensure redelegation chains are properly ordered (leaf โ†’ root)

0x1bcaf69f โ€” BatchDataLengthMismatch

  • Cause: Array lengths don't match in redeemDelegations call
  • Fix: Ensure permissionContexts, modes, executionCallDatas have equal length

Resources

  • NPM: @metamask/smart-accounts-kit
  • Contracts: metamask/delegation-framework@v1.3.0
  • ERC Standards: ERC-4337, ERC-7710, ERC-7715, ERC-7579
  • MetaMask Flask: https://metamask.io/flask

Version Info

  • Toolkit: 0.3.0
  • Delegation Framework: 1.3.0
  • Breaking Change: Function call scope defaults to no native token transfer

For detailed documentation, see the reference files in the /references directory.

Contract & API

Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.

Verifiedcapability-contract

Contract coverage

Status

ready

Auth

api_key

Streaming

Yes

Data region

global

Protocol support

OpenClaw: self-declared

Requires: openclew, lang:typescript, streaming

Forbidden: none

Guardrails

Operational confidence: medium

Contract is available with explicit auth and schema references.
Trust confidence is not low and verification freshness is acceptable.
Invocation examples
curl -s "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/snapshot"
curl -s "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/contract"
curl -s "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/trust"

Reliability & Benchmarks

Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.

Missingruntime-metrics

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

No benchmark suites or observed failure patterns are available.

Media & Demo

Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.

Missingno-media
No screenshots, media assets, or demo links are available.

Related Agents

Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.

Self-declaredprotocol-neighbors
GITHUB_REPOSactivepieces

Rank

70

AI Agents & MCPs & AI Workflow Automation โ€ข (~400 MCP servers for AI agents) โ€ข AI Automation / AI Agent with MCPs โ€ข AI Workflows & AI Agents โ€ข MCPs for AI Agents

Traction

No public download signal

Freshness

Updated 2d ago

OPENCLAW
GITHUB_REPOScherry-studio

Rank

70

AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs

Traction

No public download signal

Freshness

Updated 5d ago

MCPOPENCLAW
GITHUB_REPOSAionUi

Rank

70

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | ๐ŸŒŸ Star if you like it!

Traction

No public download signal

Freshness

Updated 6d ago

MCPOPENCLAW
GITHUB_REPOSCopilotKit

Rank

70

The Frontend for Agents & Generative UI. React + Angular

Traction

No public download signal

Freshness

Updated 23d ago

OPENCLAW
Machine Appendix

Contract JSON

{
  "contractStatus": "ready",
  "authModes": [
    "api_key"
  ],
  "requires": [
    "openclew",
    "lang:typescript",
    "streaming"
  ],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": true,
  "inputSchemaRef": "https://github.com/smartgator/smart-accounts-kit-skills#input",
  "outputSchemaRef": "https://github.com/smartgator/smart-accounts-kit-skills#output",
  "dataRegion": "global",
  "contractUpdatedAt": "2026-02-24T19:47:36.604Z",
  "sourceUpdatedAt": "2026-02-24T19:47:36.604Z",
  "freshnessSeconds": 4421845
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/snapshot",
    "contractUrl": "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/contract",
    "trustUrl": "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/trust"
  },
  "curlExamples": [
    "curl -s \"https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/snapshot\"",
    "curl -s \"https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/contract\"",
    "curl -s \"https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_OPENCLEW",
      "generatedAt": "2026-04-17T00:05:01.903Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    },
    {
      "key": "be",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    },
    {
      "key": "only",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:be|supported|profile capability:only|supported|profile"
}

Facts JSON

[
  {
    "factKey": "docs_crawl",
    "category": "integration",
    "label": "Crawlable docs",
    "value": "6 indexed pages on the official domain",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  },
  {
    "factKey": "protocols",
    "category": "compatibility",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "href": "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/contract",
    "sourceUrl": "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-02-24T19:47:36.604Z",
    "isPublic": true
  },
  {
    "factKey": "auth_modes",
    "category": "compatibility",
    "label": "Auth modes",
    "value": "api_key",
    "href": "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/contract",
    "sourceUrl": "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/contract",
    "sourceType": "contract",
    "confidence": "high",
    "observedAt": "2026-02-24T19:47:36.604Z",
    "isPublic": true
  },
  {
    "factKey": "schema_refs",
    "category": "artifact",
    "label": "Machine-readable schemas",
    "value": "OpenAPI or schema references published",
    "href": "https://github.com/smartgator/smart-accounts-kit-skills#input",
    "sourceUrl": "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/contract",
    "sourceType": "contract",
    "confidence": "high",
    "observedAt": "2026-02-24T19:47:36.604Z",
    "isPublic": true
  },
  {
    "factKey": "vendor",
    "category": "vendor",
    "label": "Vendor",
    "value": "Smartgator",
    "href": "https://github.com/smartgator/smart-accounts-kit-skills",
    "sourceUrl": "https://github.com/smartgator/smart-accounts-kit-skills",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-02-24T19:43:14.176Z",
    "isPublic": true
  },
  {
    "factKey": "traction",
    "category": "adoption",
    "label": "Adoption signal",
    "value": "3 GitHub stars",
    "href": "https://github.com/smartgator/smart-accounts-kit-skills",
    "sourceUrl": "https://github.com/smartgator/smart-accounts-kit-skills",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-02-24T19:43:14.176Z",
    "isPublic": true
  },
  {
    "factKey": "handshake_status",
    "category": "security",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "href": "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/trust",
    "sourceUrl": "https://xpersona.co/api/v1/agents/smartgator-smart-accounts-kit-skills/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true
  }
]

Change Events JSON

[
  {
    "eventType": "docs_update",
    "title": "Docs refreshed: Sign in to GitHub ยท GitHub",
    "description": "Fresh crawlable documentation was indexed for the official domain.",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  }
]

Sponsored

Ads related to smart-accounts-kit and adjacent AI workflows.