SmartAccountConfig
Pass a config object to theSmartAccountKit constructor:
Options
string
required
Stellar RPC endpoint URL. Use
https://soroban-testnet.stellar.org for testnet or https://mainnet.stellar.validationcloud.io/v1/<key> for mainnet.string
required
Network passphrase. Use the
Networks enum from @stellar/stellar-sdk:- Testnet:
'Test SDF Network ; September 2015' - Mainnet:
'Public Global Stellar Network ; September 2015'
string
required
WASM hash of the uploaded smart account contract. Used to deploy new wallet instances. The testnet default is in
demo/.env.example.string
required
Contract address of the deployed WebAuthn verifier. This is the on-chain verifier used to validate passkey signatures.
StorageAdapter
Credential storage backend. Defaults to
IndexedDBStorage if not provided.number
default:"30"
Transaction timeout in seconds. Transactions that are not included in a ledger within this window will expire.
string
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.string
WebAuthn Relying Party display name. Shown to the user during passkey creation.
string
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.
string
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.