Skip to main content
What is account abstraction? With account abstraction (AA), users get a smart contract wallet instead of a traditional wallet that requires a seed phrase. The wallet can be programmed to pay gas in different ways (e.g. you pay for the user).What does ZeroDev do? ZeroDev lets you sponsor gas so your users don’t pay transaction fees — your app (or a paymaster) covers the cost. Use it when you want a gasless experience for users (e.g. onboarding, free mints).When to use it: Add the ZeroDev extension when you want gasless EVM transactions and are using (or plan to use) ZeroDev in the Dynamic dashboard.
Make sure you enable ZeroDev in the Dynamic dashboard.

Installation

npm install @dynamic-labs-sdk/zerodev

Usage

Import and call addZerodevExtension after creating your Dynamic client:
import { createDynamicClient } from "@dynamic-labs-sdk/client";
import { addEvmExtension } from "@dynamic-labs-sdk/evm";
import { addZerodevExtension } from "@dynamic-labs-sdk/zerodev";

const dynamicClient = createDynamicClient({
  environmentId: "YOUR_ENVIRONMENT_ID",
});

addEvmExtension();
addZerodevExtension();