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/guides/delegation/execute-on-users-behalf.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,19 +11,19 @@ import TabItem from "@theme/TabItem";
11
11
12
12
[Delegation](../../concepts/delegation/index.md) is the ability for a [MetaMask smart account](../../concepts/smart-accounts.md) to grant permission to another account to perform executions on its behalf.
13
13
14
-
This guide demonstrates how to create a *delegator account* (the account that grants the permission) and *delegate account* (the account that receives the permission), and complete the delegation lifecycle (create, sign, and redeem a delegation).
15
-
16
-
This guide will refer to the delegator account as "Alice," who grants permission to "Bob," the delegate account, to perform executions on her behalf.
14
+
In this guide, you'll create a delegator account (Alice) and a delegate account (Bob), and grant Bob permission to perform executions on Alice's behalf.
15
+
You'll complete the delegation lifecycle (create, sign, and redeem a delegation).
17
16
18
17
## Prerequisites
19
18
20
19
[Install and set up the Delegation Toolkit.](../../get-started/install.md)
21
20
22
21
## Steps
23
22
24
-
### 1. Set up a Public Client
23
+
### 1. Create a Public Client
25
24
26
-
Set up a [Viem Public Client](https://viem.sh/docs/clients/public) using Viem's `createPublicClient` function. This client will let the delegator account query the signer's account state and interact with smart contracts.
25
+
Create a [Viem Public Client](https://viem.sh/docs/clients/public) using Viem's `createPublicClient` function.
26
+
Your dapp can use the Public Client to query the signer's account state and interact with smart contracts.
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.
40
+
Create a [Viem Bundler Client](https://viem.sh/account-abstraction/clients/bundler) using Viem's `createBundlerClient` function.
41
+
Your dapp can use the bundler service to estimate gas for user operations and submit transactions to the network.
0 commit comments