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()Content copied to clipboard
Return
A new Builder instance
Parameters
rpc Url
The Soroban RPC endpoint URL
network Passphrase
The Stellar network passphrase
account Wasm Hash
The smart account contract WASM hash
webauthn Verifier Address
The WebAuthn verifier contract address