ERC-8286 · Draft · ERC · 2026-06-04
ERC-8286: Modular Accounts for Frame Transactions
Extends ERC-7579 modular smart accounts to EIP-8141 frame transactions: validator modules return an approval mode that the account applies with the protocol's APPROVE instruction.
What problem does it solve?
ERC-7579 gives smart accounts a shared module system: validators, executors and hooks written once can be installed in many wallets. Its validation flow, though, is built around ERC-4337 and its validateUserOp call.
EIP-8141 proposes native account abstraction through frame transactions: a transaction is split into frames, a VERIFY frame lets the account check the transaction and call a new APPROVE instruction, and SENDER frames then act on the account's behalf. Without a common standard, every wallet would need a separate module ecosystem for this. ERC-8286 adds just the EIP-8141 validation flow on top of ERC-7579, so the same module ecosystem can serve both.
How it works
- Approval mode. Validation produces a
uint8matching EIP-8141'sAPPROVEscope: bit 0 = pay gas, bit 1 = let later frames execute as the account. That givesAPPROVE_NONE(0),APPROVE_PAYMENT(1),APPROVE_EXECUTION(2) andAPPROVE_EXECUTION_AND_PAYMENT(3). - Frame validator module. A new ERC-7579 module type (id
11, still marked TBD) implementingvalidateFrame(bytes data) view returns (uint8). Context such as the signing hash and frame index must be read with EIP-8141 introspection opcodes, not taken as arguments, so a caller cannot fake it. It returnsAPPROVE_NONEon failure. - Account flow in a
VERIFYframe (verify(bytes)): read the frame's allowed scope, pick an installed frame validator, call it, mask the result with the allowed scope, drop the execution bit if theSENDERframes use an unsupported execution mode, then callAPPROVE, or do nothing so the transaction is invalid. - Execution route. The account declares one route via
executionRoute(): protocol-dispatched (SENDERframes call targets directly, so all policy must be enforced during validation) or contract-dispatched (everySENDERframe must target the account itself, which runs ERC-7579executeand its hooks). - New
callTypevalues (also TBD) describe single vs. batched and atomic vs. independentSENDERframes forsupportsExecutionMode. supportsApprovalMode(uint8)advertises which modes the account can grant.
Sample code
The new interfaces (simplified):
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.24;
interface IFrameValidator /* is IERC7579Module */ {
// Reads tx/frame context via EIP-8141 introspection; MUST NOT modify state.
function validateFrame(bytes calldata data) external view returns (uint8 approvalMode);
}
interface IERC8286FrameAccount /* is IERC7579AccountConfig, IERC7579ModuleConfig */ {
function verify(bytes calldata data) external returns (uint8 approvalMode);
function supportsApprovalMode(uint8 approvalMode) external view returns (bool);
function executionRoute() external view returns (uint8); // 0 = protocol, 1 = contract
}
The account's verify logic as pseudocode (EIP-8141 opcodes are not yet available in Solidity):
frameIndex = TXPARAM(0x0A)
allowedScope = FRAMEPARAM(frameIndex, 0x06)
validator = selectInstalledFrameValidator(data) // type id 11
mode = validator.validateFrame(validatorData) & allowedScope
if mode has EXECUTION bit:
if any SENDER frame mode unsupported: mode &= APPROVE_PAYMENT
if route == CONTRACT and any SENDER target != self: mode &= APPROVE_PAYMENT
if mode == APPROVE_NONE: revert // tx invalid
APPROVE(mode)
Things to know
- Status: Draft, and it builds on EIP-8141 and ERC-7579, which are both drafts too. Module type id and
callTypevalues are explicitly TBD. - Approving execution is a one-shot, transaction-wide grant: every later
SENDERframe runs as the account without further checks. Spending limits, allow-lists and similar policy must be checked before approving. - A
DEFAULTframe can call the account withmsg.sender == ENTRY_POINTwithout any approval, so that caller alone must never authorizeverifyorexecute. - An installed validator is fully trusted; installing one should be protected like any other critical account change.