The SDK source is at
StartaleGroup/scs-aa-sdk and the published package is @startale-scs/aa-sdk.Install the SDK
The minimum runtime dependencies are the SDK itself plusviem:
@startale-scs/aa-sdk:
Configure runtime credentials
The SDK takes the bundler URL, paymaster URL, andpaymasterId at call time. Where you store them is up to your framework. A plain .env file works for any Node-based runtime:
.env
Pick a signer
toStartaleSmartAccount accepts any of the signer types below. The choice is yours and depends on how your app already manages keys.
- Viem LocalAccount (server / scripts)
- Viem WalletClient (browser, raw viem)
- EIP-1193 provider (Privy, Dynamic, MetaMask)
- Ethers Wallet (legacy code)
A
LocalAccount holds a private key directly. Best for backend services, scheduled jobs, or developer scripts.Optional: wagmi alongside the SDK
If your app already uses wagmi for connection state, you can keep wagmi for connection management and feed itsWalletClient into toStartaleSmartAccount as a signer. wagmi is not required by the SDK.
Sanity check
Before moving on, confirm you can read your smart account address on Soneium Minato:Next steps
Smart account setup
Wrap the account in a React provider and initialise sponsored and ERC-20 clients.
Contract interactions
Send single and batched calls through the smart account.
Auth providers
Plug Dynamic or Privy into the signer slot for social login.
Portal setup
If you have not provisioned a paymaster yet, do that first.