Skip to main content
These tutorials build on each other. If you follow them in order, you will end with a smart account, a sponsored or token-paid paymaster, batched contract calls, scoped session keys, and a guardian-based recovery flow, all wired through the same StartaleAccountClient.

Prerequisites

1

Portal setup

Provision an API key, create a paymaster, and configure gas policies. → Portal setup
2

Installation and setup

Install dependencies and pick a signer (viem LocalAccount, viem WalletClient, EIP-1193 provider, or ethers.Wallet). → Installation and setup
3

Smart account setup

Build the smart account, the sponsored client, and (optionally) the token-paymaster client; persist them in your app state. → Smart account setup
4

Contract interactions

Encode calldata, send single and batched calls, handle errors. → Contract interactions
5

Pick a paymaster mode

Sponsored paymaster for gasless flows; ERC-20 paymaster to charge users in tokens.
6

Add advanced UX

Smart sessions for scoped, signature-free flows; Social recovery for guardian-based key rotation.

What each page leaves you with

Reference material

Auth providers

Plug Dynamic, Privy, or any EIP-1193 wallet into the signer slot.

EIP-7702

Upgrade existing EOAs to delegated smart accounts.

Networks and contracts

Chain IDs, deployed contract addresses, and supported tokens.