From 2653254b3f888b13ed1638ac5d51c702a85554cd Mon Sep 17 00:00:00 2001 From: Eiman Date: Fri, 14 Mar 2025 09:58:43 -0500 Subject: [PATCH 1/3] updated description of using session keys with Engine Signed-off-by: Eiman --- .../src/app/engine/features/account-abstraction/page.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/portal/src/app/engine/features/account-abstraction/page.mdx b/apps/portal/src/app/engine/features/account-abstraction/page.mdx index 20ae45d8cf2..742e887f5be 100644 --- a/apps/portal/src/app/engine/features/account-abstraction/page.mdx +++ b/apps/portal/src/app/engine/features/account-abstraction/page.mdx @@ -64,12 +64,12 @@ Grant & revoke admins on an account with the `/contract////account/sessions` endpoints. -## Transact with an account +## Transact with an account using session keys Make write calls with a smart account by calling a write endpoint and specify the `x-backend-wallet-address` and `x-account-address` headers. -The `x-backend-wallet-address` should be set to the engine backend wallet that is an admin over the account. +The `x-backend-wallet-address` should be set to the engine backend wallet that has been given by the user admin of the smart account signer permission via a [session key](https://portal.thirdweb.com/references/typescript/v5/erc4337/addSessionKey) -The `x-account-address` should be set to the deployed account address itself. +The `x-account-address` should be set to the deployed smart account address itself. Write calls made using these headers will initiate a `UserOperation` sent from the specified account. From b2b63e082f8a0026fe44d78da55dc96f676d0427 Mon Sep 17 00:00:00 2001 From: Joaquim Verges Date: Fri, 14 Mar 2025 20:33:07 -0700 Subject: [PATCH 2/3] Update apps/portal/src/app/engine/features/account-abstraction/page.mdx Co-authored-by: Jonas Daniels Signed-off-by: Joaquim Verges --- .../portal/src/app/engine/features/account-abstraction/page.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/portal/src/app/engine/features/account-abstraction/page.mdx b/apps/portal/src/app/engine/features/account-abstraction/page.mdx index 742e887f5be..3e98c476b4e 100644 --- a/apps/portal/src/app/engine/features/account-abstraction/page.mdx +++ b/apps/portal/src/app/engine/features/account-abstraction/page.mdx @@ -68,7 +68,7 @@ Grant & revoke sessions on an account which allow specific wallets to interact w Make write calls with a smart account by calling a write endpoint and specify the `x-backend-wallet-address` and `x-account-address` headers. -The `x-backend-wallet-address` should be set to the engine backend wallet that has been given by the user admin of the smart account signer permission via a [session key](https://portal.thirdweb.com/references/typescript/v5/erc4337/addSessionKey) +The `x-backend-wallet-address` should be set to the Engine backend wallet that has been granted signing permission by the smart account's admin through a [session key](https://portal.thirdweb.com/references/typescript/v5/erc4337/addSessionKey) The `x-account-address` should be set to the deployed smart account address itself. From b8e8462ba352ed03a3b3edc5e951e14f4ceef6f5 Mon Sep 17 00:00:00 2001 From: Joaquim Verges Date: Fri, 14 Mar 2025 20:33:56 -0700 Subject: [PATCH 3/3] Update apps/portal/src/app/engine/features/account-abstraction/page.mdx Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> Signed-off-by: Joaquim Verges --- .../portal/src/app/engine/features/account-abstraction/page.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/portal/src/app/engine/features/account-abstraction/page.mdx b/apps/portal/src/app/engine/features/account-abstraction/page.mdx index 3e98c476b4e..def918133ff 100644 --- a/apps/portal/src/app/engine/features/account-abstraction/page.mdx +++ b/apps/portal/src/app/engine/features/account-abstraction/page.mdx @@ -68,7 +68,7 @@ Grant & revoke sessions on an account which allow specific wallets to interact w Make write calls with a smart account by calling a write endpoint and specify the `x-backend-wallet-address` and `x-account-address` headers. -The `x-backend-wallet-address` should be set to the Engine backend wallet that has been granted signing permission by the smart account's admin through a [session key](https://portal.thirdweb.com/references/typescript/v5/erc4337/addSessionKey) +The `x-backend-wallet-address` should be set to the Engine backend wallet that has been granted signing permission by the smart account's admin through a [session key](https://portal.thirdweb.com/references/typescript/v5/erc4337/addSessionKey). The `x-account-address` should be set to the deployed smart account address itself.