Sep30AccountsResponse

Represents a SEP-30 response containing a list of accounts.

Returned by the GET /accounts endpoint. Contains all accounts that the authenticated user has permission to access. Supports cursor-based pagination via the after query parameter in the request.

Usage

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

for (account in response.accounts) {
println("Account: ${account.address}")
}

Example JSON

{
"accounts": [
{
"address": "GEAC...",
"identities": [{ "authenticated": true }],
"signers": [{ "key": "GADF..." }]
},
{
"address": "GFDD...",
"identities": [
{ "role": "sender", "authenticated": true },
{ "role": "receiver" }
],
"signers": [{ "key": "GADF..." }]
}
]
}

See also

Constructors

Link copied to clipboard
constructor(accounts: List<Sep30AccountResponse>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The list of accounts accessible by the authenticated client