Skip to main content

Sponsored lane: a wallet's first trade can delegate it

On the sponsored lane (priority: "speed" with execution: "user_operation"), a wallet that has never been delegated on Robinhood Chain or Base can now trade from its very first operation there. The quote is served, and that first UserOperation carries the wallet's EIP-7702 authorization as eip7702Auth, so the delegation and the trade land in the same transaction. A caller whose wallet is already delegated sees no change.

What changed​

A wallet with no code is quoted. POST /quote/buy and POST /quote/sell used to refuse any wallet not yet delegated to Modular Account v2 on the chain with 400 wallet_not_delegated. A wallet with no code there is now quoted like a delegated one. wallet_not_delegated (the 400 when pinned, the speed_route_unavailable reason when not) now means only a wallet delegated to some other code.

eip7702Auth on the first operation. POST /trade/submit takes an optional user_operation.eip7702Auth: { address, chainId, nonce, r, s, yParity }, spelled as your account SDK's bundler call spells it. Treasures passes it to the bundler, which applies the delegation in the same transaction as the operation.

It must name a Modular Account v2 implementation, carry the leg's chain_id (never 0, which would delegate the wallet on every chain), be a low-s signature and be signed by sender; anything else is invalid_signature and nothing is sent. It does not change the operation's hash.

An authorization the chain skips (a stale nonce) leaves the wallet without code, and the operation is refused as swap_reverted. Details: Buying and Selling and Routing and Priority Mode.

What to do​

  • If your wallets delegate on their first operation: send eip7702Auth with that operation on each chain (account SDKs with a 7702 mode attach it on their own), then omit it once the wallet is delegated.
  • If you delegated wallets out of band to get past wallet_not_delegated: you no longer need to, though it still works.
  • Nothing else: an already-delegated wallet's quotes and operations are unchanged.