Sep30Request

data class Sep30Request(val identities: List<Sep30RequestIdentity>)

Represents a SEP-30 request for registering or updating account recovery identities.

Contains a list of identities with their roles and authentication methods that a recovery server uses for account recovery operations.

Usage

val emailAuth = Sep30AuthMethod(type = "email", value = "user@example.com")
val phoneAuth = Sep30AuthMethod(type = "phone_number", value = "+14155551234")

val ownerIdentity = Sep30RequestIdentity(
role = "owner",
authMethods = listOf(emailAuth, phoneAuth)
)

val request = Sep30Request(identities = listOf(ownerIdentity))

See also

Constructors

Link copied to clipboard
constructor(identities: List<Sep30RequestIdentity>)

Properties

Link copied to clipboard

The list of identities for account recovery configuration

Functions

Link copied to clipboard
fun toJson(): Map<String, Any?>

Converts this request to a JSON-compatible map.