Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.startale.com/llms.txt

Use this file to discover all available pages before exploring further.

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

You should haveWhy
Node.js 18+ and a TypeScript projectThe SDK ships ES2022 output and TypeScript types.
A signer (private key, browser wallet, or social-login provider)Required by toStartaleSmartAccount. See Installation.
An SCS Portal API key and at least one paymasterIssued from the SCS Portal; covered in Portal setup.
Familiarity with viem basicsThe SDK is viem-native (Address, Chain, Transport, PublicClient).
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

PageOutcome
Portal setupBUNDLER_URL, PAYMASTER_URL, paymasterId, gas policies.
Installation@startale-scs/aa-sdk installed, signer chosen.
Smart account setupA persisted StartaleAccountClient (sponsored and/or token).
Contract interactionsSingle and batched calls with error handling.
Sponsored paymasterUserOperations that pay gas via your paymaster.
ERC-20 paymasterUserOperations paid in ASTR, USDC, or other supported tokens.
Smart sessionsScoped session keys that skip the user prompt.
Social recoveryGuardian-based key rotation.

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.