accountDetails

suspend fun accountDetails(address: String, jwt: String): Sep30AccountResponse

Retrieves the recovery details for a registered account.

Returns the account's recovery configuration including identities, their authentication status, and the signing addresses controlled by the recovery server.

Return

Sep30AccountResponse with identities and signers

Parameters

address

The Stellar account address to query

jwt

SEP-10 authentication token

Throws

If the request is malformed (HTTP 400)

If the JWT token is invalid or expired (HTTP 401)

If the account is not registered (HTTP 404)

If there is a conflict retrieving the account (HTTP 409)

If the server returns HTTP 200 with a malformed body

If the server returns an unexpected HTTP status code

Example:

val details = sep30.accountDetails("GABC...", jwtToken)
println("Account: ${details.address}")
details.identities.forEach { identity ->
println("Role: ${identity.role}, Authenticated: ${identity.authenticated}")
}
details.signers.forEach { signer ->
println("Signer: ${signer.key}")
}