Skip to content

Commit e36bfcb

Browse files
authored
(Add NewTutorial) Create React dapp w/ MM SDK and Wagmi (#1659)
1 parent 46244bf commit e36bfcb

File tree

6 files changed

+384
-7
lines changed

6 files changed

+384
-7
lines changed

static/sdk-connect-extension.mp4

1.05 MB
Binary file not shown.

static/sdk-connect-mobile.mp4

818 KB
Binary file not shown.

wallet-sidebar.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,11 @@ const sidebar = {
428428
label: "Create a simple dapp",
429429
id: "tutorials/javascript-dapp-simple",
430430
},
431+
{
432+
type: "doc",
433+
label: "Create a dapp with the SDK and Wagmi",
434+
id: "tutorials/react-dapp-sdk-wagmi",
435+
},
431436
],
432437
},
433438
{

wallet/connect/metamask-sdk/javascript/react/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ Import MetaMask SDK into your React dapp to enable your users to
1515
easily connect to the MetaMask browser extension and MetaMask Mobile.
1616
The SDK for React has the [same prerequisites](../index.md#prerequisites) as for standard JavaScript.
1717

18-
:::info React UI
18+
:::info MetaMask SDK + Wagmi
1919
This page provides instructions for using the standard `@metamask/sdk-react` package.
20-
Alternatively, you can use the [`@metamask/sdk-react-ui`](react-ui.md) package to easily use
21-
[wagmi](https://wagmi.sh/) hooks and a pre-styled UI button component for connecting to MetaMask.
20+
Alternatively, you can use [wagmi](https://wagmi.sh/) hooks and follow our tutorial on setting up MetaMask SDK using Create Wagmi or our Consensys Create Web3 CLI to scaffold a project that comes configured with Viem, Wagmi and MetaMask SDK.
2221
:::
2322

2423
## Steps

wallet/how-to/make-read-only-requests.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ To use the Infura API to make read-only requests, specify your Infura API key us
6060
in your dapp.
6161

6262
```javascript
63-
infuraAPIKey: "YOUR-API-KEY"
63+
infuraAPIKey: "<YOUR-API-KEY>"
6464
```
6565

6666
## Use custom nodes
@@ -87,7 +87,7 @@ SDK in your dapp.
8787

8888
```javascript
8989
sdkOptions={{
90-
infuraAPIKey: "YOUR-API-KEY",
90+
infuraAPIKey: "<YOUR-API-KEY>",
9191
readonlyRPCMap: {
9292
"0x539": "http://localhost:8545",
9393
},
@@ -110,12 +110,12 @@ The following is an example of using both the Infura API and custom nodes with t
110110

111111
```javascript
112112
sdkOptions={{
113-
infuraAPIKey: "YOUR-API-KEY",
113+
infuraAPIKey: "<YOUR-API-KEY>",
114114
readonlyRPCMap: {
115115
// Custom node.
116116
"0x539": "http://localhost:8545",
117117
// Override Infura Mainnet.
118-
"0x1": "https://mainnet.infura.io/v3/YOUR-API-KEY",
118+
"0x1": "https://mainnet.infura.io/v3/<YOUR-API-KEY>",
119119
},
120120
defaultReadOnlyChainId: "0x1",
121121
// Other options.

0 commit comments

Comments
 (0)