builder

fun builder(rpcUrl: String, networkPassphrase: String, accountWasmHash: String, webauthnVerifierAddress: String): OZSmartAccountConfig.Builder

Creates a builder for constructing OZSmartAccountConfig with a fluent API.

Example:

val config = OZSmartAccountConfig.builder(
rpcUrl = "https://soroban-testnet.stellar.org",
networkPassphrase = "Test SDF Network ; September 2015",
accountWasmHash = "abc123...",
webauthnVerifierAddress = "CBCD1234..."
)
.rpName("My Wallet")
.sessionExpiryMs(86400000L)
.relayerUrl("https://relayer.example.com")
.storage(myPersistentStorage)
.externalWallet(freighterAdapter)
.build()

Return

A new Builder instance

Parameters

rpcUrl

The Soroban RPC endpoint URL

networkPassphrase

The Stellar network passphrase

accountWasmHash

The smart account contract WASM hash

webauthnVerifierAddress

The WebAuthn verifier contract address