create

Creates a new OZSmartAccountKit instance.

Initializes all required components including:

  • Soroban RPC server connection

  • Storage adapter (from config, defaults to in-memory)

  • Relayer client (if relayerUrl is configured)

  • Indexer client (if indexerUrl is configured)

This factory method does not perform any network requests or load saved sessions. Call the wallet operations' connectWallet() separately if you want to restore a previous connection.

Return

A new OZSmartAccountKit instance

Parameters

config

The configuration for smart account operations

Throws

if the configuration is invalid or required fields are missing

Example:

val config = OZSmartAccountConfig(
rpcUrl = "https://soroban-testnet.stellar.org",
networkPassphrase = "Test SDF Network ; September 2015",
accountWasmHash = "abc123...",
webauthnVerifierAddress = "CBCD1234..."
)
val kit = OZSmartAccountKit.create(config)