---
eip: 7806
label: ERC-7806
title: Minimal intent-centric EOA smart account
status: Draft
type: Standards Track
category: ERC
created: 2024-11-02
requires: 7702
official: https://eips.ethereum.org/EIPS/eip-7806
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7806.md
canonical: https://eips.huatuo.xyz/eip-7806/
lang: en
tldr: "A minimal smart-account interface for EOAs that delegate code via EIP-7702: the owner signs a packed intent, any solver or relayer submits it, and a pluggable \"standard\" contract validates and unpacks it into calls."
tags: [account-abstraction, intents, eip-7702, eoa, gas-sponsorship, draft]
---

# ERC-7806: Minimal intent-centric EOA smart account

> Extensible intent-centric EOA smart account interface design to support batch execution, gas sponsorship and more other functionalities.

**TL;DR:** A minimal smart-account interface for EOAs that delegate code via EIP-7702: the owner signs a packed intent, any solver or relayer submits it, and a pluggable "standard" contract validates and unpacks it into calls.

## What problem does it solve?

Account abstraction brings batching, gas sponsorship and flexible access control. [ERC-4337](/eip-4337/) delivers this, but with many moving parts (account, EntryPoint, paymaster, bundler, plugin standards such as [ERC-6900](/eip-6900/) and [ERC-7579](/eip-7579/)), relatively high gas per `UserOperation`, coordinated upgrades, and practical reliance on paymasters and bundlers.

[EIP-7702](/eip-7702/) lets a plain EOA point to contract code. ERC-7806 uses that to give EOAs a deliberately small, **intent-centric** smart-account interface, in the spirit of [ERC-7521](/eip-7521/): the user signs *what* should happen, and an open market of solvers/relayers executes it, possibly paying gas in ETH and getting reimbursed in tokens from the account.

## How it works

**UserIntent.** A packed `bytes` blob with five logical parts:

| Field | Meaning |
| --- | --- |
| `sender` | The EOA the intent is for |
| `standard` | Address of the `IStandard` contract that knows how to read this intent |
| `header` | Metadata, e.g. a nonce or expiry, interpreted by the standard |
| `instructions` | What to do, e.g. `(to, value, calldata)` items or token spend limits |
| `signatures` | Signatures the standard checks (not necessarily all from the owner) |

The suggested encoding is `sender (20) ‖ standard (20) ‖ three uint16 lengths ‖ header ‖ instructions ‖ signatures ‖ extra`, but each standard may define its own.

**Two interfaces.**

- `IStandard.validateUserIntent(bytes) → bytes4` and `IStandard.unpackOperations(bytes) → (bytes4, bytes[])`. The standard holds the validation rules, like a slimmed-down EntryPoint.
- `IAccount.executeUserIntent(bytes) → bytes`. Implemented by the code the EOA delegates to; it asks the standard to validate/unpack, then executes the operations as the EOA, so `msg.sender` downstream is the EOA itself.

**Gas abstraction.** Anyone can submit the transaction. The intent can tell the account to pay the submitter (`tx.origin`) in any token, so the user never needs ETH for gas. Solvers may also batch many intents in one transaction.

Replay protection is **not** global: each standard decides (one-shot hashes, nonces, expiry), because some intents are meant to run repeatedly.

## Sample code

A minimal stateless account that trusts a single standard (Solidity, illustrative):

```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IStandard {
    function validateUserIntent(bytes calldata intent) external view returns (bytes4);
    function unpackOperations(bytes calldata intent) external view returns (bytes4, bytes[] memory);
}

contract MinimalIntentAccount {
    bytes4 constant APPROVED = 0x00000001;
    IStandard public immutable standard; // code is shared; no per-EOA storage

    constructor(IStandard s) { standard = s; }

    function executeUserIntent(bytes calldata intent) external returns (bytes memory) {
        require(address(bytes20(intent[0:20])) == address(this), "wrong sender");
        require(address(bytes20(intent[20:40])) == address(standard), "unknown standard");

        (bytes4 code, bytes[] memory ops) = standard.unpackOperations(intent);
        require(code == APPROVED, "rejected");

        for (uint256 i; i < ops.length; ++i) {
            (address to, uint256 value, bytes memory data) = abi.decode(ops[i], (address, uint256, bytes));
            (bool ok, ) = to.call{value: value}(data);
            require(ok, "op failed");
        }
        return "";
    }
}
```

## Things to know

- **Status: Draft.** Parts of the text are unfinished (for example, a list of recommended re-entry protections is left empty).
- Security rests on the chosen `IStandard` and `IAccount` code. Both should be public and audited, and the EOA owner must only delegate to trusted implementations.
- Stateless account code is strongly recommended: delegated EOAs share storage across whatever code they point to, so stored state can clash or be abused.
- The reference implementation in the spec is illustrative; review it carefully rather than deploying it as-is.
- The EOA's private key still has full control; un-delegating disables all smart-account behaviour.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7806
