What actually happens on-chain
A new transaction type (0x04) carries signed authorization tuples. After a valid authorization, the account code becomes exactly:
0xef0100 || <20-byte implementation address> // 23 bytes total
0xef is a banned opcode, so clients treat this as a pointer, not executable code. When anything calls the EOA, the EVM runs the pointed-to implementation in the EOA’s own context — same address, balance, storage, nonce space. Delegating to the zero address clears the designation. Anyone may submit the transaction carrying a signed authorization, so a sponsor can pay gas — that is how gasless delegation works, and why an agent wallet can stay USDC-only.
Detection recipe (what our indexer runs)
code = eth_getCode(address)
if code starts with 0xef0100 and len == 23 bytes:
implementation = code[3:23] → DELEGATED
elif code is empty: → vanilla EOA
else: → classic contract / 4337 account
We read that for every wallet bound to a registered agent and read it again later: another pointer means the wallet runs other code, and no pointer means the delegation was taken back. Who wants more can decode the type-0x04 transactions: the authorization_list names the signer, while the sender may only be a sponsor. An authorization with chain_id = 0 is valid on every chain.
The session-key policy surface
Once delegated, the implementation issues session keys with scoped rights. The controls seen in production wallet APIs:
| Control | Example policy for an agent |
|---|---|
| Time | expires in 24h / 7d |
| Spend cap | $500 per tx · $5,000 per session |
| Function allowlist | only swap on Uniswap, deposit on a named vault |
| Asset allowlist | USDC + ETH only |
| Rate limit | ≤ 10 txs / hour |
| Target allowlist | named routers / vaults only |
| Gas cap | max gas the key may burn |
If the agent is prompt-injected, the attacker gets the valet key, not the trunk key. Coinbase CDP upgrades the existing EOA in place with sponsored delegation on Base, Arbitrum, Ethereum, Optimism, and Polygon; Alchemy’s pattern is delegate → wallet_createSession → one EIP-712 signature → the agent signs with the session key only; MetaMask’s agent wallet adds allowlists, simulation, and batch swaps via ERC-7821.
The critical security fact
Delegation is not custody transfer. The master key can always replace or clear the code, and a malicious implementation runs with the account’s full balance. Policy is only as strong as the delegate contract plus operational discipline: if the raw key lives in the same runtime as the agent, the policy is theater. Wallets are expected to whitelist audited implementations. ethereum.org names some, among them Uniswap’s calibur, Alchemy’s modular account, Ambire, and MetaMask’s delegation framework. Our own list of known code is empty on purpose: we show which contract a wallet points to and judge none of them.
What we measure on agents’ wallets
On Base, 3 December 2026:
- How many delegate. 11,426 wallets bound to registered agents (
wallet.7702.delegated.v1). Among the wallets of agents we have seen paying it is 4.4% (wallet.7702.rate.v2). - To what. 66 different contracts. The largest carries 44% of the delegations and the four largest carry 87%, so a fault in one contract would reach many wallets at once (
wallet.7702.top4share.v1). - Who can sign for the money. Of the dollars agents paid, 57% left contract accounts, 32% plain keys and 11% keys with delegated code (
controller.kind.v1). - When the code changes. A wallet that points to other code than at the last reading is logged (
detector.delegate_change.v1).
What nobody can read from the chain: the limits of a session key that a vendor’s server keeps, and where a private key lives. See the graph model →