Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Use one term for one concept. Adapted from the [Design System word list](https:/
| swap | trade, exchange (as a verb) | Through the Stablecoin DEX. |
| sign in | log in, login | "Sign-in" as a noun or adjective. |
| onchain, offchain | on-chain, on chain | |
| mainnet, testnet, devnet | Mainnet, Testnet (mid-sentence) | Configurable accounts run on testnet now, and on mainnet from T14. |
| mainnet, testnet, devnet | Mainnet, Testnet (mid-sentence) | Configurable accounts run on mainnet and testnet since T14. |
| Zone | zone, private chain, rollup | Capitalized, as in "Tempo Zones" and "Zone A". |
| Tempo (the public chain) | public chain, L1, parent chain (in prose) | Say "public Tempo" only to contrast with a Zone's private ledger. Write "Tempo Mainnet" only for mainnet itself. |
| Zone RPC, authorization token | zone endpoint, auth header, API key | The authenticated endpoint and the signed credential it requires (`X-Authorization-Token`). |
Expand Down
8 changes: 4 additions & 4 deletions src/pages/docs/accounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,18 @@ A Tempo account is an address that holds stablecoins. Its rules live onchain, an

## Start Building

On mainnet, [create a single-key account](/docs/accounts/create#create-a-single-key-account) or support the [wallets your users already have](/docs/accounts/wallets). To try several signers and recovery, [create a configurable account](/docs/accounts/create#create-a-configurable-account) on testnet. Then [add funds](/docs/accounts/fund).
For several signers and recovery, [create a configurable account](/docs/accounts/create#create-a-configurable-account). Otherwise, [create a single-key account](/docs/accounts/create#create-a-single-key-account) or support the [wallets your users already have](/docs/accounts/wallets). Then [add funds](/docs/accounts/fund).

<ConfigurableAccountsT14 />

<Cards>
<Card title="Set Up a Self-Custodial Wallet With a Provider" description="Your provider's key and the user's passkey approve together, and only the user can recover or leave without you. Testnet until T14 reaches mainnet." to="/docs/accounts/apps/self-custodial-wallets" />
<Card title="Recover a User's Account" description="Replace a lost passkey with the signers the user still has, at the same address. Testnet until T14 reaches mainnet." to="/docs/accounts/apps/recover-an-account" />
<Card title="Set Up a Self-Custodial Wallet With a Provider" description="Your provider's key and the user's passkey approve together, and only the user can recover or leave without you." to="/docs/accounts/apps/self-custodial-wallets" />
<Card title="Recover a User's Account" description="Replace a lost passkey with the signers the user still has, at the same address." to="/docs/accounts/apps/recover-an-account" />
<Card title="Pay Out From a Backend" description="Your backend pays approved payees, up to a daily limit, with a key in your KMS." to="/docs/accounts/automations/pay-out-from-a-backend" />
<Card title="Pay From a User's Embedded Wallet" description="A user's Privy or Turnkey wallet authorizes a key once, so your card or subscription backend pays within limits." to="/docs/accounts/automations/pay-from-an-embedded-wallet" />
<Card title="Give an Agent a Wallet" description="An AI agent's own key, with a budget, an expiry, and only the calls it needs." to="/docs/accounts/automations/give-an-agent-a-wallet" />
<Card title="Hold Customer Funds in an Omnibus Account" description="A deposit address per customer, paying into one account that accepts only the stablecoins you list." to="/docs/accounts/custodians/omnibus-accounts" />
<Card title="Set Up a Team Multisig" description="Any two of three approvers sign each payment, so no one moves funds alone. Testnet until T14 reaches mainnet." to="/docs/accounts/custodians/team-multisig" />
<Card title="Set Up a Team Multisig" description="Any two of three approvers sign each payment, so no one moves funds alone." to="/docs/accounts/custodians/team-multisig" />
<Card title="Add Tempo to Your Wallet" description="Add the networks, show stablecoin balances, and send Tempo Transactions from your wallet." to="/docs/accounts/wallets/add-tempo-to-your-wallet" />
</Cards>

Expand Down
6 changes: 3 additions & 3 deletions src/pages/docs/accounts/access-keys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ An access key signs transactions from an account's address and pays from its bal

An access key holds no funds itself. The account stores only the key's address, type, and bounds, never its private key.

Access keys work on mainnet and testnet with a [single-key account](/docs/accounts/how-it-works#address). Access keys on a configurable account run on testnet now and reach mainnet with [T14](/docs/protocol/upgrades/t14) on December 8, 2026.
Access keys work on mainnet and testnet with a [single-key account](/docs/accounts/how-it-works#address). Since [T14](/docs/protocol/upgrades/t14), they also work with a configurable account.

<span id="access-keys-and-signers" />
<span id="choose-the-authority-to-delegate" />
Expand Down Expand Up @@ -84,7 +84,7 @@ Give each device, service, agent, or team its own key, so you can revoke one wit
| A customer's browser or phone | A P-256 [device key](/docs/accounts/authentication/device-keys) the device can't export, or a WebAuthn [passkey](/docs/accounts/authentication/passkeys) |
| Your backend or an [AI agent](/docs/accounts/automations/give-an-agent-a-wallet) | A P-256 key it generates, or a secp256k1 key in your [KMS or HSM](/docs/accounts/automations/pay-out-from-a-backend#keep-the-key-in-your-kms) |
| A wallet | A secp256k1 key |
| A [team](/docs/accounts/custodians/team-multisig) | A configurable account, whose own signers and threshold approve as the key. Testnet until [T14](/docs/protocol/upgrades/t14) reaches mainnet. |
| A [team](/docs/accounts/custodians/team-multisig) | A configurable account, whose own signers and threshold approve as the key. |

## Try It

Expand All @@ -106,7 +106,7 @@ Enough signers to reach the threshold sign a key authorization. It's a message t

This example takes the first path. A new account's signer gives a payout key 10 OUSD for one hour, payable to one recipient.

`account.ts` is the configurable account with one signer from [Create an account](/docs/accounts/create#create-an-account-in-code). The [testnet faucet](/docs/accounts/create#fund-an-account-on-testnet) funds it. `client.ts` connects to [testnet](/docs/accounts/create#connect-to-testnet). To run the example with a single-key account, set `account` to that signer. It also runs on mainnet when you connect `client` to [mainnet](/docs/quickstart/connection-details#mainnet).
`account.ts` is the configurable account with one signer from [Create an account](/docs/accounts/create#create-an-account-in-code). The [testnet faucet](/docs/accounts/create#fund-an-account-on-testnet) funds it. `client.ts` connects to [testnet](/docs/accounts/create#connect-to-testnet). To run the example with a single-key account, set `account` to that signer. Either account runs on mainnet when you connect `client` to [mainnet](/docs/quickstart/connection-details#mainnet).

::::code-group

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ An account upgrade turns a single-key account into a configurable account at the

<ConfigurableAccountsT14 />

On mainnet, until T14 activates there on December 8, 2026, the upgrade transaction does nothing. It succeeds and charges its fee, but the original key still approves alone. Tempo rejects transactions from the configurable account.

<UpgradeAccountDemo />

<span id="make-a-single-key-account-recoverable" />
Expand Down Expand Up @@ -53,21 +51,17 @@ In any setup, the signers left after losing any one must still reach the thresho

## Send the Upgrade

The original key signs a transaction with a top-level `upgradeAccount(threshold, owners)` call on Tempo's built-in multisig contract. Call it with `writeContractSync`, and stop unless the client is on testnet. Set `feeToken` to the stablecoin that pays the fee. Without it, Viem sends a standard Ethereum transaction, and the upgrade reverts with `PrimitiveRootRequired`.
The original key signs a transaction with a top-level `upgradeAccount(threshold, owners)` call on Tempo's built-in multisig contract. Call it with `writeContractSync`. Set `feeToken` to the stablecoin that pays the fee. Without it, Viem sends a standard Ethereum transaction, and the upgrade reverts with `PrimitiveRootRequired`.

`client.ts` connects to [testnet](/docs/accounts/create#connect-to-testnet).

::::code-group

```ts [upgrade.ts]
import { concat, keccak256, parseAbi, toHex } from 'viem'
import { tempoModerato } from 'viem/chains'
import { Account, Addresses } from 'viem/tempo'
import { client } from './client'

// Until T14 activates on mainnet, mainnet accepts the transaction but doesn't upgrade the account.
if (client.chain.id !== tempoModerato.id) throw new Error('Account upgrades run on testnet until T14 reaches mainnet.') // [!code hl]

// The key that controls the account today
const original = Account.fromSecp256k1(process.env.PRIVATE_KEY as `0x${string}`)
// The backup signer's address. Its key stays on the user's device or with your recovery provider.
Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/accounts/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A signing method is the kind of key that approves an account's transactions.

A signing method is a passkey, a device key, or a private key. Choose one by who should hold it. A passkey or device key stays with the customer. A private key on your server or with a wallet provider lets that party sign too.

Every method works on mainnet and testnet today. Each can be the one key of a [single-key account](/docs/accounts/how-it-works#address) or an [access key](/docs/accounts/access-keys).
Every method works on mainnet and testnet. Each can be the one key of a [single-key account](/docs/accounts/how-it-works#address) or an [access key](/docs/accounts/access-keys).

Tempo verifies three kinds of signature onchain:

Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/accounts/authentication/device-keys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The demo makes the device key its own account on testnet to show signing without

In your app, add the key to the customer's account as an access key instead. The device creates the key. The customer's passkey authorizes it for up to 500 OUSD a day for 30 days. The first payment carries that authorization.

On mainnet and testnet today, a device key can be an access key on a single-key account. That account's one key is the customer's passkey.
On mainnet and testnet, a device key can be an access key on a single-key account. That account's one key is the customer's passkey.

<ConfigurableAccountsT14 />

Expand Down
4 changes: 2 additions & 2 deletions src/pages/docs/accounts/authentication/passkeys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ Your servers and wallet providers never hold the passkey. Its security rests on

<PasskeyAccountDemo />

The demo creates a passkey and shows the single-key account it signs for. On mainnet and testnet today, a passkey can be a single-key account's one key. Losing it loses the account.
The demo creates a passkey and shows the single-key account it signs for. On mainnet and testnet, a passkey can be a single-key account's one key. Losing it loses the account.

<ConfigurableAccountsT14 />

On testnet, make the passkey the first signer of a configurable account instead. It approves alone.
Make the passkey the first signer of a configurable account instead. It approves alone.

```ts [passkey.ts]
import { Account, WebAuthnP256 } from 'viem/tempo'
Expand Down
4 changes: 2 additions & 2 deletions src/pages/docs/accounts/authentication/private-keys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ Anyone who can make the key sign approves at its weight, including anyone with s

## Add a Private Key

On mainnet and testnet today, a private key can be a single-key account's one key. That works like a standard Ethereum account. It can also be an access key on that account.
On mainnet and testnet, a private key can be a single-key account's one key. That works like a standard Ethereum account. It can also be an access key on that account.

<ConfigurableAccountsT14 />

Signers need a configurable account, so this example runs only on testnet. Give each key a weight below the threshold, so no single holder can pay alone. Keep each approver's key in its own wallet or HSM. Here both signers must approve.
Signers need a configurable account. This example runs on testnet. Give each key a weight below the threshold, so no single holder can pay alone. Keep each approver's key in its own wallet or HSM. Here both signers must approve.

```ts [treasury.ts]
import { Account } from 'viem/tempo'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Tempo enforces those bounds on every transaction, whatever the agent decides to
<span id="ai-agents" />
<span id="authorize-the-agents-task" />

The demo and the code run on testnet and pay in a test stablecoin. The demo's account is a single-key account. An agent key works the same way from one on mainnet and testnet. A configurable account can authorize an agent key on testnet now, and on mainnet once [T14](/docs/protocol/upgrades/t14) activates there on December 8, 2026. The demo uses smaller bounds than the code: 10 a day, a one-hour expiry, and `transfer` to any address.
The demo and the code run on testnet and pay in a test stablecoin. The demo's account is a single-key account. An agent key works the same way from one on mainnet and testnet. A configurable account authorizes an agent key on both networks too. The demo uses smaller bounds than the code: 10 a day, a one-hour expiry, and `transfer` to any address.

<AccessKeyDemo />

Expand Down
4 changes: 2 additions & 2 deletions src/pages/docs/accounts/create.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ A single-key Tempo account's address comes from the key that approves its paymen

## Create a Single-Key Account

On mainnet and testnet today, an account is a [single-key account](/docs/development/single-key-accounts) (EOA). One key, such as a passkey, approves its payments and authorizes its [access keys](/docs/accounts/access-keys).
A [single-key account](/docs/development/single-key-accounts) works like a standard Ethereum account (an EOA). One key, such as a passkey, approves its payments and authorizes its [access keys](/docs/accounts/access-keys).

Create one on Moderato testnet from a passkey, a device key, or a private key.

Expand Down Expand Up @@ -94,7 +94,7 @@ For a passkey or device key, use [that signer](/docs/accounts/authentication) in

## Connect to Testnet

The Accounts examples and demos run on testnet, where [T14](/docs/protocol/upgrades/t14) is live. Configurable accounts reach mainnet with T14 on December 8, 2026. Testnet's public RPC needs no key. Your own app connects with the `tempoModerato` chain from Viem and a default `http()` transport, as in `client.ts` below.
The Accounts examples and demos run on testnet. Configurable accounts run on mainnet and testnet since [T14](/docs/protocol/upgrades/t14). Testnet's public RPC needs no key. Your own app connects with the `tempoModerato` chain from Viem and a default `http()` transport, as in `client.ts` below.

<span id="fund-an-account-on-devnet" />
<span id="fund-an-account-on-testnet" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/accounts/custodians.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Start here if any of these describe you:

Plain stablecoin transfers from a custody address work as on any EVM chain. Fee tokens, fee sponsorship, and access keys need your custodian to send [Tempo Transactions](/docs/guide/tempo-transaction). Ask your custodian which it supports before you plan on them for a custody address.

A team multisig keeps its address when its approvers change. It runs on [testnet](/docs/accounts/create#connect-to-testnet) now and reaches mainnet with [T14](/docs/protocol/upgrades/t14) on December 8, 2026.
A team multisig keeps its address when its approvers change. It runs on mainnet and testnet since [T14](/docs/protocol/upgrades/t14).

For customer deposits, an [omnibus account](/docs/accounts/custodians/omnibus-accounts) gives each customer a deposit address that pays into one account. [Custody partners](/docs/partners/wallets#custodial--institutional), such as Fireblocks, support Tempo.

Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/accounts/custodians/omnibus-accounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Virtual addresses and receive policies are live on mainnet and testnet. The code
Registering an account binds every deposit address you derive from it to that account permanently. Pick one whose keys you can change without changing its address.

- **Single-Key Account:** On mainnet and testnet, its deposit addresses work only while you keep that one key. If you expect to rotate keys, register a multisig or upgradeable contract instead.
- **Configurable Account:** [Add](/docs/accounts/account-configuration/configuration-updates#add-a-signer) and [remove signers](/docs/accounts/account-configuration/configuration-updates#remove-a-signer) at the same address. It runs on [testnet](/docs/accounts/create#connect-to-testnet) now and reaches mainnet with T14 on December 8, 2026.
- **Configurable Account:** [Add](/docs/accounts/account-configuration/configuration-updates#add-a-signer) and [remove signers](/docs/accounts/account-configuration/configuration-updates#remove-a-signer) at the same address. It runs on mainnet and testnet.

<span id="register-and-derive" />
<span id="register-the-account-and-derive-deposit-addresses" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/accounts/fees.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Pays each Tempo transaction's network fee in a USD stablecoin, with no separate

Fee management decides who pays each transaction's network fee and which stablecoin pays it. Every Tempo transaction pays its fee in a USD stablecoin, so accounts need no separate gas token.

Fee tokens and fee sponsorship work on mainnet and testnet. Configurable accounts can't sponsor other accounts, and run on [testnet](/docs/accounts/create#connect-to-testnet) until T14 reaches mainnet.
Fee tokens and fee sponsorship work on mainnet and testnet. Configurable accounts can't sponsor other accounts.

<span id="sponsor-an-accounts-fees" />
<span id="sponsor-fees-with-a-fee-payer" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/accounts/fees/fee-sponsorship.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Your own fee payer is an account funded with stablecoins. Its key stays on your

### When Your Backend Signs

`client.ts` connects to [testnet](/docs/accounts/create#connect-to-testnet). Configurable accounts run on testnet until T14 reaches mainnet, so these examples can sponsor either kind of account. To sponsor single-key accounts on mainnet, connect `client` to mainnet instead.
`client.ts` connects to [testnet](/docs/accounts/create#connect-to-testnet). These examples sponsor either kind of account. To sponsor accounts on mainnet, connect `client` to mainnet instead.

In `sponsored-transfer.ts`, `account` is the paying account with the keys that approve the payment attached. It can be the account from [Create an account](/docs/accounts/create#create-an-account-from-a-signing-key) or an [access key](/docs/accounts/access-keys) your backend holds for it. `recipient` is the payee's address. Fund the fee payer's address from the [testnet faucet](/docs/accounts/create#fund-an-account-on-testnet) first, so it can pay fees:

Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/accounts/fees/fee-tokens.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The default covers every transaction the account pays the fee for. That includes

Its final fallback tries pathUSD, then OUSD. OUSD is tried only when pathUSD cannot cover the maximum fee. This fallback does not override an explicit token, a stored preference, or a token inferred from the transaction.

In the code, `account` is a funded configurable account from [Create an account](/docs/accounts/create#create-an-account-from-a-signing-key). Configurable accounts run on testnet until T14 reaches mainnet. `client.ts` connects to [testnet](/docs/accounts/create#connect-to-testnet). The examples pay fees in its faucet's test stablecoins. A single-key account on mainnet or testnet sets and overrides its fee token the same way, with that network's stablecoins.
In the code, `account` is a funded configurable account from [Create an account](/docs/accounts/create#create-an-account-from-a-signing-key). `client.ts` connects to [testnet](/docs/accounts/create#connect-to-testnet). The examples pay fees in its faucet's test stablecoins. Either kind of account on mainnet or testnet sets and overrides its fee token the same way, with that network's stablecoins.

::::code-group

Expand Down
Loading
Loading