Stable supports EIP-7702, which allows an EOA to set its account code to an existing smart contract. EOAs keep their original address and private key while executing the delegate’s logic.Documentation Index
Fetch the complete documentation index at: https://docs.stable.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Concept: For what EIP-7702 enables on Stable, the delegation model, and security considerations, see EIP-7702. For the full specification, see the EIP-7702 spec.
Transaction format
EIP-7702 uses transaction type0x04 with an authorizationList field. Each authorization designates a delegate contract whose code the EOA executes for that transaction.
chainId: must match the target chain.address: the delegate contract address.nonce: the authorization nonce (separate from the transaction nonce).
Tooling
- ethers.js:
wallet.signAuthorization({ chainId, address, nonce })produces the signed authorization for inclusion in theauthorizationList. - viem: use
signAuthorizationwith a walletClient, then pass the result tosendTransaction. - Hardhat / Foundry: standard EIP-7702 transaction format works when your toolchain version supports the Pectra hardfork.
Next recommended
EIP-7702 concept
Understand the delegation model and when to use it.
Account Abstraction (EIP-7702)
Implement batch payments, spending limits, and session keys step by step.

