Canton Network docsLedger API › AsyncAPI › v2/state/hosted-parties
Subscribe hosted parties
Updated 03-12-2026
SUBSCRIBE
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
Actionsubscribe
Operation IDonV2StateHosted-parties
Content typeapplication/json
PayloadoneOf
Inputs
Outputs
DirectionServer -> Client
MessageEither_JsCantonError_GetHostedPartiesResponse
Related Schemas
Either_JsCantonError_GetHostedPartiesResponse
Either_JsCantonError_GetHostedPartiesResponse
Variants
GetHostedPartiesResponse
object
hostedPartyobjectrequiredhostedAtOffsetstringrequiredstreamContinuationTokenstringrequiredJsCantonError
object
codestringrequiredcausestringrequiredcontextobjectrequirederrorCategorystringrequiredHistory
Added
3.8wscat
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>"
}