Builder
class Builder(rpcUrl: String, networkPassphrase: String, accountWasmHash: String, webauthnVerifierAddress: String)
Builder for creating 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
Constructors
Functions
Link copied to clipboard
Builds the OZSmartAccountConfig.
Link copied to clipboard
Sets the deployer keypair.
Link copied to clipboard
Sets the external wallet adapter.
Link copied to clipboard
Sets the indexer URL.
Link copied to clipboard
Sets the maximum context rule ID to scan when iterating rules.
Link copied to clipboard
Sets the relayer URL.
Link copied to clipboard
Sets the WebAuthn Relying Party ID.
Link copied to clipboard
Sets the WebAuthn Relying Party name.
Link copied to clipboard
Sets the session expiry in milliseconds.
Link copied to clipboard
Sets the signature expiration in ledgers.
Link copied to clipboard
Sets the storage adapter.
Link copied to clipboard
Sets the operation timeout in seconds.
Link copied to clipboard
Sets the WebAuthn provider.