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: wallet/how-to/use-non-evm-networks/starknet/create-a-simple-starknet-dapp.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ sidebar_position: 6
5
5
6
6
# Create a simple Starknet dapp
7
7
8
-
In this tutorial, you'll learn how to set up a React TypeScript dapp that uses the `get-starknet` library to connect to MetaMask and display the user's wallet address.
8
+
In this tutorial, you'll learn how to set up a React TypeScript dapp that uses the [`get-starknet`](https://github.com/starknet-io/get-starknet) library to connect to MetaMask and display the user's wallet address.
9
9
You'll also display the balance of an ERC-20 token and perform a token transfer.
10
10
11
11
## Prerequisites
@@ -69,6 +69,8 @@ get-starknet-dapp/
69
69
70
70
## 2. Configure the wallet connection
71
71
72
+
Use the `connect` function to link your dapp with a user’s MetaMask wallet.
73
+
72
74
### 2.1. Connect to MetaMask
73
75
74
76
The `connect` function from `get-starknet` is the primary way to connect your dapp to a user's MetaMask wallet.
@@ -155,7 +157,7 @@ function App() {
155
157
156
158
### 2.5. Full example
157
159
158
-
The following a full example of configuring the wallet connection:
160
+
The following is a full example of configuring the wallet connection:
159
161
160
162
```typescript title="App.tsx"
161
163
import"./App.css"
@@ -249,8 +251,7 @@ export default App
249
251
250
252
## 3. Display the balance of and transfer an ERC-20 token
251
253
252
-
Now that you have set up the basics, you can display the balance of a specific ERC-20 token, such as
253
-
STRK, and perform a transfer using the `WalletAccount` instance.
254
+
Now that you have set up the basic interaction, you can display the balance of a specific ERC-20 token, such as STRK, and perform a transfer using the `WalletAccount` instance.
0 commit comments