VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Account Abstraction: Trace a Programmable Account Operation

Three students in school uniforms work through open books at a classroom table, with textbooks and stationery nearby and study notes on the whiteboard behind them.

中文版 · Blockchain learning guide · Previous article

Blockchain learning · Article BC064

Three students in school uniforms work through open books at a classroom table, with textbooks and stationery nearby and study notes on the whiteboard behind them.
Study photograph for illustration; it does not establish that the pictured students are studying blockchain.

A programmable blockchain account can apply a defined authorization policy to a proposed operation. The useful question is therefore more specific than whether someone supplied a signature: which policy checked that signature, what action did it authorize, and which other conditions still have to pass?

Account abstraction can support constrained permissions and alternative ways of paying execution costs. Those capabilities come from particular standards, account implementations and configured rules. A product label does not establish that every account has recovery, every session is narrowly limited, or every request will be sponsored.

This lesson follows a fictional museum catalogue operation through account authorization, sponsorship, bundling and application execution. It uses inert labels and invented policy times. There are no keys to generate, accounts to deploy, funds to deposit or operations to submit. The aim is to explain an evidence trail before trusting a convenient interface.

Choose your reading route

In this guide

  • Start with sections 1–3 for the actors and the complete fictional policy.
  • Work through sections 4–8 to separate permission, payment and execution.
  • Use sections 9–12 for evidence questions, exercises and the source record.

Back to contents · Next section

1. Describe the account rule before describing the interface

Consider a simple baseline account whose ordinary authorization depends on a designated signing key. Now consider an account that evaluates a configured program: perhaps one authority can change administrative settings while a second authority can update one catalogue object during a limited period. The second arrangement needs a way to express and enforce those different powers.

The important change is the rule that decides what the account may do. A polished sign-in screen is not that rule. A screen can collect a request, explain it and arrange its delivery, but the account’s actual authorization path determines whether the proposed action is permitted.

ERC-4337 describes a UserOperation processed through an EntryPoint, with account-specific validation. The UserOperation is distinct from the base-chain transaction carrying it. The specification was created on 29 September 2021 and is marked Final in the version checked for this lesson. ERC-4337 specification

Keep the comparison modest. It is not a claim that all externally owned accounts permanently lack executable behavior. EIP-7702 separately specifies persistent code delegation for EOAs; it was created on 7 May 2024 and is also marked Final. Its mechanism and ERC-4337 are distinct, although they can be used together. Neither document establishes the features of an unidentified wallet. EIP-7702 specification

Back to contents · Next section

2. Follow four responsibilities

For our trace, separate the account, the bundler, the EntryPoint and an optional paymaster.

The account applies its configured authorization conditions. The bundler receives candidate operations, performs preliminary checks and packages operations into an on-chain EntryPoint call. That collection and packaging role is described in the bundler documentation. A preliminary result is evidence about a checked context, rather than a promise about every later state. Bundler overview

The EntryPoint coordinates the relevant validation and execution path. The paymaster, when used, evaluates whether it will sponsor costs under its own conditions. The paymaster documentation identifies sponsorship as a separate service with its own criteria. We use that narrow role here without assuming a universal charging policy or interface version. Paymaster overview

Give each actor a precise question. The account asks whether this operation is authorized. The sponsor asks whether it will support the specified payment route. The bundler asks whether the operation is suitable for the context it checked and the bundle it proposes. The application later asks whether its own requested state transition is valid. Combining those questions into one green tick hides useful information.

Back to contents · Next section

3. The fictional permission card

An already-existing account, AcctQ, operates on fictional chain S and recognizes EntryPoint E. Its owner previously configured session authority K. K’s permission is exactly:

  • Target CatalogueX only.
  • Method setLabel only.
  • Object42 only.
  • No asset transfer.
  • K must still be active.
  • The account’s invented integer policy time t must satisfy 100 ≤ t ≤ 120, including both endpoints.

This is a supplied account policy, not a universal ERC-4337 session format. The session-key documentation explicitly places constrained-session enforcement in wallet-specific logic. A name such as “session key” does not itself specify the target, method, expiry or revocation rules. Session keys and delegation

For every independent case below, assume correct implementation of this policy, an authentic authorization bound to the intended operation and context, correct replay protection, sufficient execution resources and all otherwise-required checks. Change only the facts stated in that case. Our t is a teaching parameter, not a claim about a standard field’s encoding, units or boundary convention.

The operation asks CatalogueX to set Object42’s label to “Gallery North”. The application’s separate precondition requires the current catalogue revision to match the revision supplied in the request. That condition belongs to the catalogue workflow. It is not the account’s replay counter, and passing one does not prove the other.

Back to contents · Next section

4. Run the permission tests one field at a time

At t = 110, with K active and the specified target, method, object and no-transfer condition, the account authorization test passes. That is the exact conclusion. We have not yet established sponsorship, inclusion, successful application execution or finality.

Change Object42 to Object43 while keeping the same readable label. Authorization fails. The permission named an object, not any object with a similar description. Change setLabel to an administrative method and it also fails. Change CatalogueX to a different target and it fails again, even if that target exposes a method with the same name.

Now hold those fields correct and change time. At t = 120, authorization passes under our inclusive rule. At t = 121, it fails. At t = 99, it also fails. The arithmetic is simple; the discipline is to read both endpoints rather than translate “temporary” into an assumed duration.

A request with an added asset transfer fails the supplied no-transfer restriction. A request using the wrong chain or unrecognized EntryPoint also fails the supplied context checks. A valid signature over some other operation cannot repair those differences.

Notice what we did not infer. The permission to change a label does not include permission to replace the account owner, install a module or change the session’s own limits. Such powers would need their own authorized path. In this card, no such path is granted to K.

Back to contents · Next section

5. Sponsorship answers a different question

Add optional paymaster P. For this teaching route, P must approve sponsorship, and there is no fallback source of payment when P declines. This is an explicit route assumption, not a claim that all programmable accounts depend on one sponsor.

In the first variant, the account policy permits the Object42 update, but P declines. The supplied sponsored route cannot proceed. It does not follow that K lacked the specified catalogue permission. The failure concerns the chosen payment path.

In the second variant, P is willing to sponsor an Object43 update. The account policy still rejects it. Someone else’s willingness to cover a cost does not enlarge K’s authority. Saying “the sponsor approved” would be incomplete unless the report identified which approval it meant.

In the third variant, both checks pass. That removes these two obstacles under the supplied conditions. It does not make the requested new label consistent with the catalogue’s current revision, nor does it guarantee that a block will include the operation.

This distinction improves troubleshooting. If a service stops sponsoring requests, the useful question is whether another authorized and supported route exists. It is not safe to assume one. Conversely, changing the sponsor cannot cure a missing object permission. The case needs evidence from the failed stage rather than a general claim that the account is broken.

Back to contents · Next section

6. Simulation checks a context that may change

At policy time 110, a bundler simulates a request while K is active. The supplied checks pass. Before the relevant on-chain validation, a separately authorized administrator revokes K. Assume the revocation is already part of the state used for that validation.

The later account test fails because active status is required. The earlier simulation need not have been dishonest or mathematically wrong. Its result described an earlier state. Treating it as a reservation of future permission would add a guarantee absent from our policy.

A useful record therefore identifies the state and assumptions used for preliminary checking, the exact operation checked, and the later result. “Simulation succeeded” without that context cannot settle whether the account authorized execution when the request was actually processed.

Revocation timing also needs careful language. An interface showing a requested revocation is not the same as the relevant state already reflecting it. Our example expressly supplies the latter fact. Without it, the conclusion would require additional evidence about ordering and accepted state.

This is a general reason to distinguish convenience from certainty. A bundler can make submission easier without controlling all intervening application or authorization changes. Repeating a request without understanding why its conditions changed does not establish a valid path.

Back to contents · Next section

7. Account validation and application execution have separate outcomes

Return to the permitted Object42 request. K is active, t = 110 and sponsorship passes. The request expects catalogue revision 7, but the application is now at revision 8. Assume CatalogueX enforces exact revision matching and propagates this failed update as an execution failure.

The catalogue update fails under the supplied application rule. This does not retroactively mean that K’s scoped permission was absent. It means an authorized request attempted an application transition whose precondition no longer held.

Versioned EntryPoint code illustrates why stage labels matter. In the v0.8.0 implementation, validation and operation execution are distinct parts of processing, and operation-result reporting includes success information. There are also bundle-aborting failure paths. Neither “every failure reverts every operation” nor “an operation failure can never affect a bundle” is a reliable universal summary. EntryPoint v0.8.0 source

For a real interpretation, identify the deployed version, account execution behavior and exact failure category. Our exercise does not calculate fees, nonce consequences or rollback boundaries for an unspecified implementation. An outer transaction’s status alone also should not be substituted for evidence of this particular catalogue update.

Ask for the outcome at the intended application state: did Object42 receive the requested label at the identified accepted state? A record that merely shows a containing transaction was processed answers a narrower question. Finality requires its own chain-specific evidence after that.

Back to contents · Next section

8. Limited authority depends on the complete execution path

Our toy assumes that the stated target, method, object and no-transfer restrictions are correctly enforced on the actual effect. That assumption carries weight. An implementation that checks a friendly label but permits an unrestricted execution route would not satisfy the card.

When reviewing a design description, ask where each restriction is enforced and what other paths can exercise authority. Is the session confined to the declared operation? Can a different module act independently? Who can change the rules? Those are architecture questions, not reasons to accept or reject every programmable account as a class.

The same care applies to recovery. A session permission does not automatically include owner recovery. If the account offers a separate recovery route, its participants, delays and powers need a separate description. In this example, K has no recovery or administrative authority.

There is a practical tradeoff. A narrow permission can reduce the effect of losing that particular authority, provided the implementation and all reachable paths preserve the limits. Additional policy code and dependencies also need review. A feature list cannot tell us whether those conditions hold for a deployed account.

Back to contents · Next section

9. Build an operation evidence card

A concise evidence card can make a support conversation or classroom review much clearer. Record the account and chain, recognized EntryPoint and implementation version, exact requested action, applicable policy and relevant state. Then separate these observations:

  • Preliminary checking: what operation and state were examined?
  • Account authorization: which conditions passed or failed?
  • Payment route: which sponsor or other supplied arrangement was required, and what happened?
  • Processing: was the operation actually handled in the identified chain context?
  • Application effect: did the intended state transition succeed?
  • Finality: what protocol-specific evidence covers that result?

Do not invent missing entries. If the available evidence only establishes sponsor willingness, mark account authorization unknown. If execution evidence is absent, do not turn an inclusion notification into a completed catalogue update.

The card also helps assign the next question. A wrong-object rejection belongs with the permission definition. A stale revision belongs with application state and request construction. A missing sponsor decision belongs with the payment route. Those diagnoses can coexist with a functioning account and a functioning blockchain.

Back to contents · Next section

10. Exercises: identify the failed condition

Exercise 1: the last permitted time

All supplied conditions hold at t = 120. Does the account policy permit the request? What changes at t = 121?

Answer: The account policy permits it at 120 because both endpoints are included. At 121 the time condition fails. Neither answer alone establishes eventual execution or finality.

Exercise 2: generous sponsor, wrong object

P agrees to pay for a correctly signed Object43 update. K’s policy still names only Object42. Can sponsor approval make the request authorized?

Answer: No. The object restriction fails. Payment willingness and account permission are separate predicates.

Exercise 3: authorized request, unavailable route

The Object42 request passes account checks. P declines, and this case supplies no alternative payment route. What conclusion is justified?

Answer: The specified sponsored route cannot proceed. It is too broad to conclude that K has no catalogue permission or that every possible account route is unavailable.

Exercise 4: earlier simulation, later revocation

A bundler checked the exact operation while K was active. The state used for later validation already contains an authorized revocation. Which result controls the later account test?

Answer: The later state. The active-status condition fails. Earlier simulation did not reserve the permission.

Exercise 5: authorization passes, revision differs

The operation expects revision 7; CatalogueX is at revision 8 and enforces equality. All authorization and sponsorship conditions pass. Was the label update established?

Answer: No. Under the stated execution behavior, the application precondition fails and the update fails. The authorization result remains a different observation.

Exercise 6: missing field in a product description

A description says only “temporary session access”. It omits targets, methods, times and administrative paths. Can you derive the Object42 policy?

Answer: No. The phrase does not supply those restrictions. Ask for the actual configured rule and its enforcement rather than importing our fictional card into the product.

Back to contents · Next section

11. Common questions

Does account abstraction remove signatures?

It changes how authorization can be evaluated. A particular account may still use signatures and may combine them with additional conditions. The relevant issue is the implemented rule, not the disappearance of cryptography.

Is a paymaster mandatory in this lesson’s architecture?

No. P is optional in the actor map. Once a particular exercise selects P as its only supplied payment route, P’s approval becomes necessary for that exercise. Optional system features can still be required by a chosen configuration.

Does programmable mean recoverable?

Only an actual configured recovery path can support that conclusion. Our session rule supplies none. Recovery, signing permission and payment arrangements should each be explained with their own conditions.

Can the convenient interface prove the operation succeeded?

Its statement is evidence from that interface. To establish the effect, connect the exact operation to the relevant processing result and application state, then assess finality under the chain’s rules. A clear interface should help reveal those distinctions.

Back to contents · Next section

12. Sources and further reading

Sources were checked on 12 October 2026. ERC-4337 and EIP-7702 are standards documents with their own creation dates and current statuses. The documentation pages are maintained explanations; the implementation reference is pinned to v0.8.0. Their details should not be treated as interchangeable versions.

For a broader introduction, see How Blockchain Works. Continue this learning sequence by examining persistent token allowances: a different authorization mechanism whose remaining permission must be tracked after individual actions. The central habit remains the same: identify the exact rule, the state in which it was evaluated and the result that the evidence actually establishes.

Back to contents