Sep30Account Response
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}")
}Content copied to clipboard
Example JSON
{
"address": "GFDD...",
"identities": [
{ "role": "owner", "authenticated": true }
],
"signers": [
{ "key": "GADF..." }
]
}Content copied to clipboard
See also
Constructors
Link copied to clipboard
constructor(address: String, identities: List<Sep30ResponseIdentity>, signers: List<Sep30ResponseSigner>)