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: delegation-toolkit/get-started/quickstart.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar_label: Quickstart
6
6
7
7
# MetaMask Smart Accounts quickstart
8
8
9
-
This page demonstrates how to get started quickly with the MetaMask Smart Accounts, and send the first user operation.
9
+
This page demonstrates how to get started quickly with MetaMask Smart Accounts, and send the first user operation.
10
10
11
11
## Prerequisites
12
12
@@ -19,47 +19,47 @@ This page demonstrates how to get started quickly with the MetaMask Smart Accoun
19
19
Set up a [Viem Public Client](https://viem.sh/docs/clients/public) using Viem's `createPublicClient` function. This client will let the smart account query the signer's account state and interact with blockchain network.
20
20
21
21
```typescript
22
-
import { createPublicClient, http } from'viem'
23
-
import { sepoliaaschain } from'viem/chains'
22
+
import { createPublicClient, http } from"viem";
23
+
import { sepoliaaschain } from"viem/chains";
24
24
25
25
const publicClient =createPublicClient({
26
26
chain,
27
27
transport: http(),
28
-
})
28
+
});
29
29
```
30
30
31
31
### 2. Set up a Bundler Client
32
32
33
33
Set up a [Viem Bundler Client](https://viem.sh/account-abstraction/clients/bundler) using Viem's `createBundlerClient` function. This lets you use the bundler service to estimate gas for user operations and submit transactions to the network.
0 commit comments