---
eip: 8141
label: EIP-8141
title: Frame Transaction
status: Draft
type: Standards Track
category: Core
created: 2026-01-29
requires: 1559, 2718, 2780, 3529, 3607, 4844, 7594, 7702, 7708, 7778, 7825, 7976, 8037
official: https://eips.ethereum.org/EIPS/eip-8141
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8141.md
canonical: https://eips.huatuo.xyz/eip-8141/
lang: en
tldr: "A new transaction type (0x06) made of 'frames' — contract calls that validate the sender, approve who pays gas, and execute the user's actions — giving Ethereum native account abstraction, sponsored gas and a path to post-quantum signatures."
tags: [account-abstraction, transactions, core, paymaster, post-quantum]
---

# EIP-8141: Frame Transaction

> Add frame abstraction for transaction validation, execution, and gas payment

**TL;DR:** A new transaction type (0x06) made of 'frames' — contract calls that validate the sender, approve who pays gas, and execute the user's actions — giving Ethereum native account abstraction, sponsored gas and a path to post-quantum signatures.

## What problem does it solve?

Today every Ethereum transaction is authenticated by one hard-coded rule: an ECDSA (secp256k1) signature from the sending account, which also pays the gas. Smart-contract wallets work around this with [ERC-4337](/eip-4337/) bundlers and an EntryPoint contract, and [EIP-7702](/eip-7702/) lets EOAs delegate to code, but the protocol itself still assumes an ECDSA key.

Frame transactions let the account's own EVM code decide what counts as a valid transaction and who pays. The stated goals: an off-ramp to post-quantum signature schemes, key rotation, native batching, and gas sponsorship without centralised relayers. In the words of the spec, an account "simply becomes an address with code."

## How it works

A new [EIP-2718](/eip-2718/) transaction type `0x06`:

```
[chain_id, nonce, sender, frames, signatures, fees, blob_versioned_hashes]
frame = [mode, flags, target, limits=[execution, state], value, data]
```

Each **frame** is a top-level call (up to 64 per transaction) in one of three modes:

| Mode | Caller | Purpose |
| --- | --- | --- |
| `VERIFY` (1) | entry point | Read-only validation; must end in `APPROVE` or the tx is invalid |
| `SENDER` (2) | `tx.sender` | Act as the account (needs prior execution approval) |
| `DEFAULT` (0) | entry point `address(0xaa)` | Generic call, e.g. deployment or paymaster logic |

A new opcode **`APPROVE`** (`0xaa`) ends a frame like `RETURN` and records approval: *execution* (the sender authorises later `SENDER` frames) and/or *payment* (this account pays). Payment approval increments the sender's nonce and collects the maximum cost from the payer. A transaction where nobody approves payment is invalid. The frames up to that point form the **validation prefix**; the rest is the **execution body**.

Other pieces:

- A `signatures` list (secp256k1, P-256, or arbitrary bytes) that the protocol validates before any frame runs, so wallets can use built-in schemes without custom code.
- Accounts with no code get **default code**: a `VERIFY` frame checks a secp256k1 signature from the account itself, so plain EOAs can use the type.
- An **atomic batch** flag makes consecutive frames all-or-nothing.
- Introspection opcodes (`TXPARAM`, `FRAMEDATALOAD`, `FRAMEPARAM`, `SIGPARAM`, …) let code read the transaction and other frames.
- Receipts record the `payer` and a status and gas usage per frame.

## Sample code

A typical sponsored transaction, illustrated as JSON:

```json
{
  "type": "0x06",
  "sender": "0xYourAccount",
  "frames": [
    { "mode": "VERIFY",  "target": "0xYourAccount", "flags": "approve execution", "data": "0x…" },
    { "mode": "VERIFY",  "target": "0xPaymaster",   "flags": "approve payment",   "data": "0x…" },
    { "mode": "SENDER",  "target": "0xToken",  "flags": "atomic batch", "data": "approve(router, amount)" },
    { "mode": "SENDER",  "target": "0xRouter", "data": "swap(...)" }
  ]
}
```

The account's validation code, conceptually:

```solidity
// pseudocode: verify the signature however the account likes (passkey, PQ scheme, multisig…)
require(isValid(TXPARAM(SIG_HASH), witness));
APPROVE(APPROVE_EXECUTION);   // or APPROVE_EXECUTION_AND_PAYMENT to self-pay
```

## Things to know

- Status is **Draft** and the spec is large and changing; it depends on several other drafts (for example the state-gas model in [EIP-8037](/eip-8037/)).
- There is no EIP-7702 authorization list and no access list in this type, by design.
- The public mempool only accepts certain validation-prefix shapes and restricts opcodes during validation, to stop one state change invalidating many pending transactions. Paymasters serving many users must use a standardised "canonical paymaster" contract; arbitrary paymasters are limited to a few pending transactions.
- Code reached via `DELEGATECALL` from the account can also call `APPROVE`, so delegatecalled libraries must be fully trusted.


---

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