Sep30Accounts Response
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}")
}Content copied to clipboard
Example JSON
{
"accounts": [
{
"address": "GEAC...",
"identities": [{ "authenticated": true }],
"signers": [{ "key": "GADF..." }]
},
{
"address": "GFDD...",
"identities": [
{ "role": "sender", "authenticated": true },
{ "role": "receiver" }
],
"signers": [{ "key": "GADF..." }]
}
]
}Content copied to clipboard