Skip to content

EIP-8141Frame Transaction

Native account abstraction and post-quantum readiness for Ethereum. One transaction type, multiple frames, programmable validation.

What to read first?

Pick the route that matches why you're here.

How does it work?

A frame transaction (0x06) consists of multiple frames, each with a mode that tells the protocol what the frame does:

ModeNamePurpose
DEFAULTDeploymentDeploy accounts, run post-operation hooks
VERIFYVerificationAuthenticate the sender, authorize payment. Read-only; approval-bearing validation frames call APPROVE.
SENDERExecutionExecute the user's intended operations (calls, transfers, contract interactions)

No bundler, no EntryPoint contract, no off-chain infrastructure. The protocol handles validation, gas payment, and execution natively through frames. SENDER frames execute with msg.sender = tx.sender, so existing contracts see the original account as the caller. Token approvals, NFT ownership, and all on-chain state work as-is.

EOAs benefit directly without EIP-7702. The protocol has built-in fallback behavior for codeless accounts: VERIFY frames use the secp256k1 signature at tx.signatures[0] and call APPROVE natively. P256/passkeys are supported as protocol-validated outer signatures, but account code is needed to authorize with them. Multi-call sequences come from the frame list (one SENDER frame per call) instead of a payload inside a single frame, with native ETH transfers via frame.value. No code is ever deployed to the EOA. With the atomic batch flag set in the flags field on consecutive frames, they become all-or-nothing, protecting users from partial execution.

Example A: Gasless Approve + Swap

A user approves and swaps tokens in a single atomic transaction. The sponsor pays all gas; the user pays nothing:

FrameModeTargetWhat it does
0VERIFYsenderVerify sender signature, approve execution
1VERIFYsponsorVerify sponsor, approve payment
2SENDERERC-20approve(DEX, amount) — allow DEX to spend tokens
3SENDERDEXswap(...) — execute the swap
4DEFAULTsponsorPost-op: refund overcharged gas fees to sponsor

Example B: Liquidity Rebalance & Pay Gas in USDC

An EOA at address A rebalances a Uniswap v4 liquidity position, paying for gas in USDC instead of ETH:

FrameModeTargetWhat it does
0VERIFYAProtocol verifies ECDSA signature, approves execution
1VERIFYsponsorSponsor authorizes gas payment
2SENDERPosition ManagerdecreaseLiquidity(...) — remove from old range
3SENDERPosition Managercollect(...) — collect tokens
4SENDERUSDCtransfer(sponsor, fee) — pay sponsor in USDC
5SENDERPosition ManagerincreaseLiquidity(...) — add to new range
6DEFAULTsponsorPost-op: refund overcharged gas fees

In the current public-mempool shape, the sponsor checks authorization data and frame structure rather than the user's token balance. That propagates as a non-canonical paymaster, but the sponsor accepts frontrunning risk if the user drains USDC before inclusion. A trustless balance-checking sponsor remains consensus-valid, but it reads external token storage and routes through the expansive tier, a private mempool, or direct-to-builder. See Mempool Strategy → ERC-20 gas repayment.

What are the new opcodes?

EIP-8141 introduces six new opcodes that give frame transactions their power:

OpcodePurpose
APPROVETerminates a VERIFY frame and sets transaction-scoped approval flags. Scope 0x1 approves payment, 0x2 approves execution, 0x3 approves both.
TXPARAMReads transaction parameters (sender, nonce, fees) from inside a frame. Replaces ORIGIN for introspection.
FRAMEDATALOADLoads 32 bytes from the current frame's data field. How account code reads frame calldata.
FRAMEDATACOPYCopies frame data to memory. Bulk version of FRAMEDATALOAD for larger payloads.
FRAMEPARAMReads frame-level metadata (mode, flags, resolved target). Enables frame code to introspect its own execution context.
SIGPARAMReads signature-list metadata and copies ARBITRARY witness bytes for custom verifiers.

APPROVE is the central innovation: it's how account code tells the protocol "I've verified this transaction, proceed." The other opcodes give frame code access to transaction, frame, and signature context it needs to make that decision.