You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/whats-new.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ of the [MetaMask developer page](https://metamask.io/developer/).
11
11
12
12
## May 2025
13
13
14
+
- Documented how to use the SDK CLI to set up a [JavaScript + Wagmi](/sdk/quickstart/javascript-wagmi) or [Dynamic SDK](/sdk/quickstart/javascript-dynamic) project.
Copy file name to clipboardExpand all lines: sdk/quickstart/javascript-dynamic.md
+90-7Lines changed: 90 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,15 @@ toc_max_heading_level: 2
7
7
# MetaMask SDK + Dynamic SDK integration
8
8
9
9
Get started with MetaMask SDK and [Dynamic SDK](https://docs.dynamic.xyz/introduction/welcome).
10
-
You can [use the quickstart template](#set-up-using-a-template), which automatically sets up both SDKs with a [Next.js](https://nextjs.org/docs) and [Wagmi](https://wagmi.sh/) dapp.
11
-
You can also [manually set up the SDK](#set-up-manually) in an existing dapp.
10
+
You can set up the SDKs in the following ways:
11
+
12
+
-[SDK CLI](#set-up-using-the-cli) - Use the CLI to scaffold a Next.js and Wagmi dapp with both SDKs.
13
+
-[Quickstart template](#set-up-using-a-template) - Clone the template to set up a Next.js and Wagmi dapp with both SDKs.
14
+
-[Manual setup](#set-up-manually) - Set up both SDKs in an existing dapp.
5. The CLI will take a few minutes to set up your project.
96
+
Once complete, you can run the project using the following command in `<project-name>/packages/site`:
97
+
98
+
```bash
99
+
pnpm run dev
100
+
```
101
+
102
+
You've successfully set up MetaMask SDK and Dynamic SDK.
103
+
See how to [use the combined SDKs](#usage).
36
104
37
105
## Set up using a template
38
106
@@ -54,6 +122,18 @@ The project you will set up has the following structure:
54
122
pnpm install
55
123
```
56
124
125
+
4. Create a `.env.local` file:
126
+
127
+
```bash
128
+
touch .env.local
129
+
```
130
+
131
+
5. In `.env.local`, add a `NEXT_PUBLIC_DYNAMIC_ENVIRONMENT_ID` environment variable, replacing `<YOUR-ENVIRONMENT-ID>` with your Dynamic Environment ID:
0 commit comments