Skip to main content

Try it Live

Run Authorization examples in the interactive playground

Authorization Workflows & Diagrams

Visual guides for EIP-7702 code delegation, account abstraction flows, and real-world use cases.

EIP-7702 Account Delegation Flow

High-Level Architecture

Authorization Lifecycle

Phase 1: Creation & Signing

Code:

Phase 2: Transaction Construction

Phase 3: Mempool & Inclusion

Phase 4: Execution

Authorization Processing Order

Delegation State Machine

Execution Details

Batch Operations Example

Multi-Action Transaction

Flow:

Social Recovery Flow

Recovery Module Architecture

Code Example:

Multi-Account Authorization

Using Same Relayer for Multiple Users

Gas Cost Breakdown

Authorization Gas Components

Total Transaction Cost

Comparison: Traditional vs EIP-7702

Batch Operations

Traditional Approach (4 operations):
EIP-7702 Approach (1 operation):

Real-World Examples

Example 1: Optimism Relayer Integration

Example 2: Uniswap Permit-like Approval

Example 3: Smart Wallet Features

Security Checklist

For Users

  • Verify delegation contract before signing
  • Check chain ID matches intended network
  • Confirm nonce is correct
  • Review authorization scope (address and nonce)
  • Never reuse same nonce with different auth
  • Verify relayer trustworthiness

For Relayers

  • Validate authorization signatures
  • Check nonces haven’t been used
  • Verify chain IDs match
  • Set reasonable gas price limits
  • Monitor for failed transactions
  • Handle out-of-gas gracefully

For Contract Developers

  • Validate msg.sender is expected user
  • Implement rate limiting if needed
  • Verify all operation parameters
  • Handle partial failures gracefully
  • Log all significant actions
  • Test with multiple authorizations

Implementation Timeline

Pre-EIP-7702

EIP-7702 Rollout

See Also