Setup Embedded Wallets
Enable in Dashboard
Navigate to the Dynamic Dashboard > Developers and enable Embedded Wallets, then click settings and choose the chains you’d like wallets created on.
Set up Your SDK
Only only supported on react sdk v4.20.0 and later versions
Reference example: https://github.com/dynamic-labs/mpc-react-demo
Install Wallet Connectors
Note: You only need to install the connectors for the chains you want to support.
Configure Your Provider
Include the appropriate connectors inside your provider settings:
Now, once logged in, users will have an embedded wallet for each chain you have enabled. For more detailed options around wallet creation, see the Creating Wallets guide.
Use the Wallet Just Like Any Other
You can find plenty of examples in Using Wallets. Here’s a simple example of fetching the public and wallet client on Ethereum.
Access Functionality Through the Connector Directly
For certain functionality, you will need to access the connector directly and type it as a DynamicWaasEVMConnector, DynamicWaasSVMConnector or DynamicWaasSuiConnector.
Here’s an example for Ethereum.
You must also whitelist the dynamic auth URL for the iframe connection to work. Here’s how:
1. In an HTTP header (e.g., Express.js):
⚠️ If you’re already setting CSP, append https://app.dynamicauth.com to the existing frame-src list rather than replacing it.
2. In an HTML <meta> tag:
3. In NGINX config:
4. In Vercel or Netlify (via headers file):
vercel.json:
_headers (Netlify):