Skip to content

EIP-8141Frame Transaction

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

How It Works

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, must 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 verify signatures (ECDSA or P256) and call APPROVE natively, while SENDER frames decode frame data as a list of calls. No code is ever deployed to the EOA. With bit 11 (atomic batch flag) set on consecutive SENDER 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 without paying gas:

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
4SENDERUSDCtransfer(sponsor, fee) — pay sponsor in USDC
5DEFAULTsponsorPost-op: refund overcharged fees

Example B: Gasless Liquidity Rebalance

An EOA at address A rebalances a Uniswap v4 liquidity position without paying gas:

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

New Opcodes

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

OpcodePurpose
APPROVETerminates a VERIFY frame and sets transaction-scoped approval flags. Scope 0x1 approves execution, 0x2 approves payment, 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 signatures and calldata passed to a frame.
FRAMEDATACOPYCopies frame data to memory. Bulk version of FRAMEDATALOAD for larger payloads.

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