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

Subscribe hosted parties

Updated 03-12-2026

/v2/state/hosted-parties

Subscribe hosted parties

WebSocketAdded 3.8
/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
Actionsubscribe
Operation IDonV2StateHosted-parties
Content typeapplication/json
PayloadoneOf

Inputs

Outputs

Either_JsCantonError_GetHostedPartiesResponse

DirectionServer -> Client
MessageEither_JsCantonError_GetHostedPartiesResponse
Variants

GetHostedPartiesResponse

object

hostedPartyobjectrequired
hostedAtOffsetstringrequired
streamContinuationTokenstringrequired

JsCantonError

object

codestringrequired
causestringrequired
contextobjectrequired
errorCategorystringrequired

Either_JsCantonError_GetHostedPartiesResponse

Variants

GetHostedPartiesResponse

object

hostedPartyobjectrequired
hostedAtOffsetstringrequired
streamContinuationTokenstringrequired

JsCantonError

object

codestringrequired
causestringrequired
contextobjectrequired
errorCategorystringrequired

History

Added3.8
wscat
wscat
npx wscat -c <WEBSOCKET_URL>
messageapplication/json
message
{
  "hostedParty": {
    "party": "<string>",
    "hostingParticipants": [
      {
        "participantId": "<string>",
        "synchronizerId": "<string>",
        "recordTime": "<string>",
        "offset": "<integer>",
        "participantPermission": "<string>",
        "hostingState": "<string>"
      }
    ]
  },
  "hostedAtOffset": "<integer>",
  "streamContinuationToken": "<string>"
}