EIPs Explained

ERC-7902 · Draft · ERC · 2025-03-01

ERC-7902: Wallet Capabilities for Account Abstraction

A set of EIP-5792 wallet capabilities that let account-abstraction-aware dApps pass paymaster data, validity windows, nonce keys, gas overrides and even EIP-7702 delegation requests to the wallet.

What problem does it solve?

ERC-4337 made smart contract accounts practical, and ERC-7769 defines a low-level RPC for bundlers. But a dApp talking to a user's wallet had no standard way to say "use this paymaster", "make this operation valid only until noon" or "use this nonce key". Each AA wallet needed custom integration.

EIP-5792 already gives dApps wallet_sendCalls with an extensible capabilities object. ERC-7902 defines a handful of AA-specific capabilities on top of it, so the same request works across AA wallets that support them.

How it works

All calls in a batch run on one chain, atomically. The proposal defines five capabilities:

Identifier What the dApp supplies
eip7702Auth An EOA account and a delegation address; the wallet produces an EIP-7702 authorization setting that account's code to the delegation
staticPaymasterConfiguration paymaster, paymasterData, and paymaster validation / post-op gas limits, for paymasters that need no dynamic lookup
validityTimeRange validAfter / validUntil timestamps (seconds); the wallet must show them to the user and the account must enforce them
multiDimensionalNonce nonceKey and nonceSequence, the two parts of the ERC-4337 semi-abstracted nonce
accountAbstractionGasParamsOverride Any of preVerificationGas, verificationGasLimit, callGasLimit, paymaster gas limits, maxFeePerGas, maxPriorityFeePerGas

All numeric values are hex strings. Gas overrides are optional field by field; the wallet should warn the user when overrides are present and may reject conflicting configurations. The spec recommends that production dApps rely on wallet defaults rather than raw gas overrides.

Paymasters that need a web service are covered separately by ERC-7677.

Sample code

A wallet_sendCalls request using two of the capabilities (addresses are placeholders):

{
  "method": "wallet_sendCalls",
  "params": [{
    "version": "2.0.0",
    "chainId": "0x1",
    "from": "0xUserAccount...",
    "atomicRequired": true,
    "calls": [{ "to": "0xTarget...", "data": "0x..." }],
    "capabilities": {
      "validityTimeRange": {
        "validAfter": "0x0",
        "validUntil": "0x6a000000"
      },
      "staticPaymasterConfiguration": {
        "paymaster": "0xPaymaster...",
        "paymasterData": "0x",
        "paymasterValidationGasLimit": "0x186a0",
        "paymasterPostOpGasLimit": "0xc350"
      }
    }
  }]
}

Before sending, a dApp should call wallet_getCapabilities (EIP-5792) to see which of these the wallet supports.

Things to know

  • Status is Draft; the Rationale section is still empty.
  • eip7702Auth is the most dangerous capability: a malicious delegation can drain the account. Wallets must restrict it to a short list of well-known, audited account implementations.
  • A malicious staticPaymasterConfiguration can also be an attack vector (for example a paymaster holding token approvals), so wallets must check the values match user intent.
  • For fine-grained session permissions, see ERC-7715.

#account-abstraction #wallet #json-rpc #paymaster #7702

Details

Authors
Yoav Weiss (@yoavw), Alex Forshtat (@forshtat), Dror Tirosh (@drortirosh), Shahaf Nacson (@shahafn)
Status
Draft
Type
Standards Track / ERC
Created
2025-03-01
Requires

Machine-readable: Markdown · JSON