Skip to content
CCPEDIAby Unity Nodes
Canton Network docsLedger API › AsyncAPI › v2/state/hosted-parties

Publish hosted parties

Updated 03-12-2026

/v2/state/hosted-parties

Publish hosted parties

WebSocketAdded 3.8
PUBLISH/v2/state/hosted-parties
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 GetHostedPartiesResponse.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:read

Protocol Details

ProtocolWebSocket
Channel/v2/state/hosted-parties
Actionpublish
Operation IDsendV2StateHosted-parties
Content typeapplication/json
Payloadobject

Inputs

GetHostedPartiesRequest

DirectionClient -> Server
MessageGetHostedPartiesRequest
hostedAtOffsetstring
filterobject
streamContinuationTokenstring

Outputs

GetHostedPartiesRequest

hostedAtOffsetstring
filterobject
streamContinuationTokenstring

History

Added3.8
wscat
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>"
}