If you are using our Zerodev integration to enable Smart Wallets, youโ€™ll need to already have the Ethereum chain enabled. If you donโ€™t, please refer to this guide.

You will also need to install a new package, even if you already have @dynamic-labs/ethereum installed, itโ€™s called ethereum-aa.

npm i @dynamic-labs/ethereum-aa

Then, you need to add the ZeroDevSmartWalletConnectors to the walletConnectors array in the SDK settings:

import { DynamicContextProvider } from '@dynamic-labs/sdk-react-core';
import { EthereumWalletConnectors } from '@dynamic-labs/ethereum';
import { ZeroDevSmartWalletConnectors } from '@dynamic-labs/ethereum-aa';

const App = () => (
  <DynamicContextProvider
    settings={{
      environmentId: 'XXXXX',
      walletConnectors: [ EthereumWalletConnectors, ZeroDevSmartWalletConnectors ],
      ...
    }}
  >
  </DynamicContextProvider>
);