Skip to main content

/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
Variants

GetHostedPartiesResponse

object

hostedPartyobjectrequired
hostedAtOffsetstringrequired
streamContinuationTokenstringrequired

JsCantonError

object

codestringrequired
causestringrequired
contextobjectrequired
errorCategorystringrequired

History

Added3.8