Skip to main content
GET

List accounts and their details. Accounts that were never credited or debited are not listed. Required permissions: traffic:read or CanActAsAnyParty, CanExecuteAsAnyParty or CanDebitTrafficFromAnyAccount rights. NOTE: This endpoint is exposed only when traffic enforcement feature is enabled (canton.participants.participant1.traffic-enforcement.enabled = true)

OpenAPIAdded 3.8

Authorizations

httpAuth

string
required
HTTP bearer authentication. Send the token as Authorization: Bearer <token>. Ledger API standard JWT token

apiKeyAuth

string
required
API key authentication in the header. Ledger API standard JWT token (websocket)

Query parameters

string
only list accounts whose ID starts with this prefix, leave out to list all accounts
number
OpenAPI type: integer (int32).maximum number of elements in a returned page
string
token - to continue results from a given page, leave empty to start from the beginning of the list, obtain token from the result of previous page

Responses

200

application/json
GetAccountResponse[]
List of accounts and their details, ordered lexicographically by account ID, up to the requested page size. Optional: may be empty
string
Token to fetch the next page. Not set, if there are no further results. Optional

400

Invalid value, Invalid value for: query parameter accountIdPrefix, Invalid value for: query parameter pageSize, Invalid value for: query parameter pageToken
text/plain
string
required

default

application/json
string
required
string
required
string
string
Map_String
required
Tuple2_String_String[]
integer (int32)
required
integer (int32)
string
boolean

History

Added3.8