Canton Network docsLedger API › AsyncAPI › v2/state/hosted-parties
Publish hosted parties
Updated 03-12-2026
PUBLISH
Returns a stream of the snapshot of the hosted parties at a ledger offset, which are satisfying the
request’s query parameters.
Once the stream of GetHostedParties completes,
the client SHOULD begin streaming topology updates from the update service,
starting at the /v2/state/hosted-partiesGetHostedPartiesResponse.hosted_at_offset.
Clients SHOULD NOT assume that the set of hosted parties they receive reflects the state at the ledger end.Required permissions: ledger:readProtocol Details
ProtocolWebSocket
Channel/v2/state/hosted-parties
Actionpublish
Operation IDsendV2StateHosted-parties
Content typeapplication/json
Payloadobject
Inputs
DirectionClient -> Server
MessageGetHostedPartiesRequest
hostedAtOffsetstringfilterobjectstreamContinuationTokenstringOutputs
Related Schemas
GetHostedPartiesRequest
GetHostedPartiesRequest
hostedAtOffsetstringfilterobjectstreamContinuationTokenstringHistory
Added
3.8wscat
wscat
npx wscat \
-c <WEBSOCKET_URL> \
-x '{"hostedAtOffset": "<integer>", "filter": {"partyFilter": ["<string>"], "allParticipants": "<boolean>", "synchronizerIdFilter": ["<string>"]}, "streamContinuationToken": "<string>"}' \
-w -1
messageapplication/json
message
{
"hostedAtOffset": "<integer>",
"filter": {
"partyFilter": [
"<string>"
],
"allParticipants": "<boolean>",
"synchronizerIdFilter": [
"<string>"
]
},
"streamContinuationToken": "<string>"
}