SmartAccountConfig
Pass a config object to theSmartAccountKit constructor:
Options
Stellar RPC endpoint URL. Use
https://soroban-testnet.stellar.org for testnet or https://mainnet.stellar.validationcloud.io/v1/<key> for mainnet.Network passphrase. Use the
Networks enum from @stellar/stellar-sdk:- Testnet:
'Test SDF Network ; September 2015' - Mainnet:
'Public Global Stellar Network ; September 2015'
WASM hash of the uploaded smart account contract. Used to deploy new wallet instances. The testnet default is in
demo/.env.example.Contract address of the deployed WebAuthn verifier. This is the on-chain verifier used to validate passkey signatures.
Credential storage backend. Defaults to
IndexedDBStorage if not provided.Transaction timeout in seconds. Transactions that are not included in a ledger within this window will expire.
WebAuthn Relying Party ID. Defaults to the current hostname (
window.location.hostname). Override this if your domain differs from the RP ID registered during passkey creation.WebAuthn Relying Party display name. Shown to the user during passkey creation.
URL of a relayer proxy for fee-sponsored transactions. When set, the SDK routes all submissions through the relayer instead of the RPC endpoint.See the Fee Sponsoring guide for details.
Override the default indexer URL. The SDK auto-selects a default indexer based on
networkPassphrase. Only set this if you’re running a custom indexer.Environment Variables (Demo / Vite)
If you’re using Vite, the recommended pattern is to read from environment variables:.env
Testnet Defaults
The demo.env.example ships with pre-deployed testnet contract addresses so you can get started without deploying your own contracts.
| Variable | Description |
|---|---|
VITE_ACCOUNT_WASM_HASH | Smart account WASM hash (testnet) |
VITE_WEBAUTHN_VERIFIER_ADDRESS | WebAuthn verifier contract (testnet) |
VITE_ED25519_VERIFIER_ADDRESS | Ed25519 verifier contract (testnet) |
VITE_THRESHOLD_POLICY_ADDRESS | Threshold multisig policy (testnet) |
VITE_SPENDING_LIMIT_POLICY_ADDRESS | Spending limit policy (testnet) |
VITE_NATIVE_TOKEN_CONTRACT | Native XLM SAC contract (testnet) |