Docs
reference
List all accounts

List all accounts

Sub-wallets for a given Sonr Identity.

List all accounts

This endpoint allows you to retrieve a paginated list of all your groups. By default, a maximum of ten groups are shown per page.

Optional attributes

  • Name
    key
    Type
    string
    Description

    A value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

  • Name
    offset
    Type
    integer
    Description

    Offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

Request

GET
/accounts
curl -G https://core.build/accounts \
  -H "Authorization: Bearer {jwt}"
{
  "success": true,
  "accounts": [
    {
      "address": "idx1ww62uhp0y69a9cgzwwhpgg2eawdaxrpkpxj6v9",
      "did": "did:sonr:idx1ww62uhp0y69a9cgzwwhpgg2eawdaxrpkpxj6v9",
      "coin_type": "CoinType_SONR",
      "public_key": "A369J+Syr2wOZKuwlQ5QPSS7+t8X0M26+MoCeBsi1DYq",
      "type": "Sonr/ecdsa-secp256k1"
    },
  ]
}

Example in Go