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/how-to/create-smart-account.md
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,7 @@ import TabItem from "@theme/TabItem";
8
8
9
9
# Create a MetaMask smart account
10
10
11
-
The MetaMask Delegation Toolkit is embedded, meaning that the end user can instantly interact with a dapp without wallet authorization, confirmations, or corporate logos.
12
11
You can enable users to create a [MetaMask smart account](../concepts/smart-accounts.md) directly in your dapp.
13
-
The toolkit supports different [smart account types](../concepts/smart-accounts.md#smart-account-implementation-types),
14
-
each with its own configuration and support for different signing mechanisms.
15
-
16
12
This page provides examples of using [`toMetaMaskSmartAccount`](../reference/api/smart-account.md#tometamasksmartaccount) with Viem Core SDK to create different types of smart accounts with different types of signatories.
17
13
18
14
## Prerequisites
@@ -25,7 +21,7 @@ This page provides examples of using [`toMetaMaskSmartAccount`](../reference/api
25
21
A Hybrid smart account supports both an externally owned account (EOA) owner and any number of P256 (passkey) signers.
26
22
You can create a Hybrid smart account with the following types of signatories.
27
23
28
-
### Create a Hybrid smart account with an account signatory
24
+
### Create a Hybrid smart account with an Account signatory
29
25
30
26
Use [`toMetaMaskSmartAccount`](../reference/api/smart-account.md#tometamasksmartaccount) and Viem's [`privateKeyToAccount`](https://viem.sh/docs/accounts/local/privateKeyToAccount) to create a Hybrid smart account with a signatory from a private key:
Use [`toMetaMaskSmartAccount`](../reference/api/smart-account.md#tometamasksmartaccount) and Viem's [`toWebAuthnAccount`](https://viem.sh/account-abstraction/accounts/webauthn) to create a Hybrid smart account with a WebAuthn Account signatory:
148
144
149
145
:::info Installation required
150
-
To use WebAuthn, install the [Ox SDK](https://oxlib.sh/).
146
+
To work with WebAuthn, install the [Ox SDK](https://oxlib.sh/).
151
147
:::
152
148
153
149
<Tabs>
@@ -419,5 +415,5 @@ With a MetaMask smart account, you can perform the following functions:
419
415
420
416
- In conjunction with [Viem Account Abstraction clients](configure.md), deploy the smart account
421
417
and [send user operations](send-user-operation.md).
422
-
-[Sign delegations](create-delegation/index.md) that can be used to grant specific rights and permissions to other accounts.
423
-
Smart accounts that sign delegations are called *delegator accounts*.
418
+
-[Create delegations](create-delegation/index.md) that can be used to grant specific rights and permissions to other accounts.
419
+
Smart accounts that create delegations are called *delegator accounts*.
0 commit comments