Sep30AccountResponse

data class Sep30AccountResponse(val address: String, val identities: List<Sep30ResponseIdentity>, val signers: List<Sep30ResponseSigner>)

Represents a SEP-30 account recovery response.

Returned when registering, updating, querying, or deleting an account on a recovery server. Contains the account's Stellar address, registered identities with their authentication status, and the signing addresses that the recovery server controls.

The signers correspond to the registered identities and represent the Stellar addresses that the recovery service can use to sign recovery transactions on behalf of authenticated identities.

Usage

val json = Json.parseToJsonElement(responseBody).jsonObject
val response = Sep30AccountResponse.fromJson(json)

println("Account: ${response.address}")
for (identity in response.identities) {
println("Role: ${identity.role ?: "not specified"}, Authenticated: ${identity.authenticated}")
}
for (signer in response.signers) {
println("Signer: ${signer.key}")
}

Example JSON

{
"address": "GFDD...",
"identities": [
{ "role": "owner", "authenticated": true }
],
"signers": [
{ "key": "GADF..." }
]
}

See also

Constructors

Link copied to clipboard
constructor(address: String, identities: List<Sep30ResponseIdentity>, signers: List<Sep30ResponseSigner>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The Stellar account ID or address of the account

Link copied to clipboard

The list of recovery identities with roles and authentication status

Link copied to clipboard

The list of signing keys the recovery server can use for this account