Skip to main content
POST

Query a hosted parties snapshot (blocking call). Use the paged endpoint or websockets for large snapshots. After the snapshot, stream topology updates from /v2/updates starting at the hostedAtOffset of the responses. Returns a stream of the snapshot of the hosted parties at a ledger offset, which are satisfying the request’s query parameters.

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

number
OpenAPI type: integer (int64).maximum number of elements to return, this param is ignored if is bigger than server setting
number
OpenAPI type: integer (int64).timeout to complete and send result if no new elements are received (for open ended streams)

Body

application/json
number
OpenAPI type: integer (int64).The inclusive offset at which the snapshot of the hosted parties will be computed. Must be no greater than the current ledger end offset. Must be greater than or equal to the last pruning offset. Optional, if defined, it must be a valid absolute offset (positive integer) or ledger begin offset (zero). If zero, the empty set will be returned. If not defined and no stream_continuation_token is set, the current ledger end will be used and it will be populated in the responses. If not defined and a stream_continuation_token is set, the hosted_at_offset used by the request from which the stream_continuation_token originates will be used. Optional
object
OpenAPI type: HostedPartiesFilter.If not set, the default filter is used, which returns all parties hosted on any synchronizer on the local participant. Optional
string
Opaque representation of a continuation token defining a position in the hosted parties snapshot. The prefix of the hosted parties snapshot will be omitted up to and including the element from which the continuation token was read. To reuse the continuation token from a GetHostedPartiesResponse: - subsequent request must be executed on the same participant with the same version of canton, - subsequent request must have the same hosted_at_offset and filter, - and the participant must not have been pruned after the hosted_at_offset. If not specified, the whole hosted parties snapshot will be returned. Optional: can be empty

Responses

200

application/json
GetHostedPartiesResponse[]
required

400

Invalid value, Invalid value for: body, Invalid value for: query parameter limit, Invalid value for: query parameter stream_idle_timeout_ms
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