This guide expands on the integrating chains section, and shows you what SDK setup you need to have to enable embedded wallets for your users.

Prerequisites

You have enabled embedded wallets in the dashboard already, for more information on that, check out the embedded wallets guide.

Initial setup

You can use embedded wallets with Ethereum, Solana or both! Therefore, whichever one you choose, you need to make sure you have the correct walletConnectors are installed and added to the walletConnectors array in the SDK settings.

For Ethereum, you need to install the @dynamic-labs/ethereum package:

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

import { DynamicContextProvider } from '@dynamic-labs/sdk-react-core';

import { EthereumWalletConnectors } from '@dynamic-labs/ethereum';

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

That’s it! You’ve set up your chains correctly in order to create embedded wallets for your users.

What next?

Click here to learn how to enable chains for account abstraction!