From 48abff21ce01ca49869d50186df95ae35d28bea5 Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Wed, 8 Apr 2026 13:53:44 +1000 Subject: [PATCH 1/2] docs(accounts): add architecture section with SDK flow diagram Amp-Thread-ID: https://ampcode.com/threads/T-019d6b0d-7ce7-74df-ad45-64b849136885 --- public/accounts-sdk-flow-dark.svg | 1 + public/accounts-sdk-flow-light.svg | 1 + src/pages/accounts/index.mdx | 46 +++++++++++++++++++----------- 3 files changed, 32 insertions(+), 16 deletions(-) create mode 100644 public/accounts-sdk-flow-dark.svg create mode 100644 public/accounts-sdk-flow-light.svg diff --git a/public/accounts-sdk-flow-dark.svg b/public/accounts-sdk-flow-dark.svg new file mode 100644 index 00000000..2626877f --- /dev/null +++ b/public/accounts-sdk-flow-dark.svg @@ -0,0 +1 @@ +wallet.tempo.xyz or OtherAccounts SDKApplicationwallet.tempo.xyz or OtherAccounts SDKApplicationUser approves with Passkeyaction requestroutes requestresultresult \ No newline at end of file diff --git a/public/accounts-sdk-flow-light.svg b/public/accounts-sdk-flow-light.svg new file mode 100644 index 00000000..3f3189ae --- /dev/null +++ b/public/accounts-sdk-flow-light.svg @@ -0,0 +1 @@ +wallet.tempo.xyz or OtherAccounts SDKApplicationwallet.tempo.xyz or OtherAccounts SDKApplicationUser approves with Passkeyaction requestroutes requestresultresult \ No newline at end of file diff --git a/src/pages/accounts/index.mdx b/src/pages/accounts/index.mdx index 453489e5..523c3965 100644 --- a/src/pages/accounts/index.mdx +++ b/src/pages/accounts/index.mdx @@ -14,20 +14,6 @@ import IconGitHub from '~icons/simple-icons/github' The Tempo Accounts SDK is a TypeScript library for applications and wallets to create, manage, and interact with accounts on Tempo. -
- - - - GitHub - - -
- ### Demo Try sign in and make a payment on Tempo using the Accounts SDK. @@ -38,14 +24,42 @@ Try sign in and make a payment on Tempo using the Accounts SDK. -## Quick Prompt +### Quick Prompt -Prompt your agent: +You can integrate the Accounts SDK, and achieve a flow like the demo above by prompting your agent: ``` Read docs.tempo.xyz/accounts and integrate Tempo Wallet into my application ``` +### Architecture + +The Accounts SDK is a router between your application and a signing [Adapter](/accounts/api/adapters) (e.g. the Tempo Wallet dialog), exposed as an [EIP-1193 Provider](https://eips.ethereum.org/EIPS/eip-1193). + +Adapters handle where keys live and who handles signing. The Accounts SDK currently ships with two adapters: + +| Adapter | Description | +| --- | --- | +| [**Tempo Wallet**](/guide/use-accounts/embed-tempo-wallet) | Delegates signing to [`wallet.tempo.xyz`](https://wallet.tempo.xyz) via an iframe dialog or popup. One passkey, one account, portable across apps. +| [**Domain-bound Passkeys**](/guide/use-accounts/embed-passkeys) | The app (or wallet) handles passkey ceremonies and signing in-process on its own domain. + +Your application interacts with the SDK through standard JSON-RPC methods (via [Wagmi](https://wagmi.sh/) or [Viem](https://viem.sh/)). + +An example of a high-level flow of an Application requesting for a user to perform an action with their Tempo Wallet is shown below: + +```mermaid +sequenceDiagram + participant A as Application + participant S as Accounts SDK + participant W as wallet.tempo.xyz or Other + + A->>S: action request + S->>W: routes request + note over W: User approves with Passkey + W-->>S: result + S-->>A: result +``` + ## Install The Tempo Accounts SDK is available as an [NPM package](https://www.npmjs.com/package/accounts) under `accounts` From c884d82a4c3ed04d79a536fc6f82dd4f9e07a4ef Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Wed, 8 Apr 2026 13:55:06 +1000 Subject: [PATCH 2/2] remove accounts sdk flow diagrams Amp-Thread-ID: https://ampcode.com/threads/T-019d6b0d-7ce7-74df-ad45-64b849136885 --- public/accounts-sdk-flow-dark.svg | 1 - public/accounts-sdk-flow-light.svg | 1 - 2 files changed, 2 deletions(-) delete mode 100644 public/accounts-sdk-flow-dark.svg delete mode 100644 public/accounts-sdk-flow-light.svg diff --git a/public/accounts-sdk-flow-dark.svg b/public/accounts-sdk-flow-dark.svg deleted file mode 100644 index 2626877f..00000000 --- a/public/accounts-sdk-flow-dark.svg +++ /dev/null @@ -1 +0,0 @@ -wallet.tempo.xyz or OtherAccounts SDKApplicationwallet.tempo.xyz or OtherAccounts SDKApplicationUser approves with Passkeyaction requestroutes requestresultresult \ No newline at end of file diff --git a/public/accounts-sdk-flow-light.svg b/public/accounts-sdk-flow-light.svg deleted file mode 100644 index 3f3189ae..00000000 --- a/public/accounts-sdk-flow-light.svg +++ /dev/null @@ -1 +0,0 @@ -wallet.tempo.xyz or OtherAccounts SDKApplicationwallet.tempo.xyz or OtherAccounts SDKApplicationUser approves with Passkeyaction requestroutes requestresultresult \ No newline at end of file