Skip to main content
Enable gasless transactions for your EIP-7702 smart accounts. Gas sponsorship works similarly to EIP-4337 but uses your EOA address.

Prerequisites

Setup 7702 Client

Gas Sponsorship Configuration

Gas sponsorship is configured during client setup. The configuration is nearly identical to EIP-4337:
Gas sponsorship uses the same policyId parameter as EIP-4337.
import { createModularAccountV2Client } from "@account-kit/smart-contracts";
import { alchemy, sepolia } from "@account-kit/infra";
import { WalletClientSigner } from "@aa-sdk/core";

const client = await createModularAccountV2Client({
  mode: "7702",
  transport: alchemy({ apiKey: ALCHEMY_API_KEY }),
  chain: sepolia,
  signer,
  policyId: GAS_POLICY_ID,
});

// Transactions are now sponsored automatically
const userOpHash = await client.sendUserOperation({
  uo: {
    target: "0x...",
    data: "0x",
    value: 0n,
  },
});

const hash = await client.waitForUserOperationTransaction(userOpHash);
Create a gas policy in the Alchemy Dashboard under Account Kit → Gas Manager. The same policy works for both 4337 and 7702.

Key Differences from 4337 Sponsorship

AspectEIP-7702EIP-4337
From AddressYour EOA addressSmart contract address
ConfigurationSame as 4337Standard paymaster setup
First TransactionMay require delegation setupDeploys smart wallet
Explorer ViewShows your addressShows smart wallet

Key Points

  • Same configuration - Paymaster setup is identical to EIP-4337
  • EOA preserved - Your address remains unchanged
  • Chain support required - Only works on chains supporting EIP-7702
  • Provider limits - Check your provider dashboard for sponsorship limits

Next Steps