Skip to main content

Creating Wallets with MetaMask (EOA)

For Web3 wallets like MetaMask, you can "wrap" them with ZeroDev to produce AA wallets. In this case, the EOA wallet will be used as the signer/owner for your AA wallet.

To wrap a EOA wallet with AA, use the enhanceConnectorWithAA function which will produce a Wagmi connector that can be used with Wagmi:

// RainbowKit
import { enhanceWalletWithAAConnector } from '@zerodev/wagmi/rainbowkit'

// Connector
import { enhanceConnectorWithAA } from '@zerodev/wagmi'

See this full example with RainbowKit:

Full Code (Editable)
Result
Loading...