Skip to content
CCPEDIAby Unity Nodes
Canton Network docsLedger API › gRPC API › Packages › v2 › Services › StateService

GetHostedParties

Updated 03-12-2026

Ledger API›gRPC API›v2›GetHostedParties

com.daml.ledger.api.v2

GetHostedParties

RPC/com.daml.ledger.api.v2.StateService/GetHostedParties

Protocol Details

ProtocolgRPC
ServiceStateService
RPCGetHostedParties
Client streamNo
Server streamYes

Inputs

GetHostedPartiesRequest

Messagecom.daml.ledger.api.v2.GetHostedPartiesRequest
Client streamNo
hosted_at_offsetint64
filterHostedPartiesFilter
stream_continuation_tokenbytes

Outputs

GetHostedPartiesResponse

Messagecom.daml.ledger.api.v2.GetHostedPartiesResponse
Server streamYes
hosted_partyHostedParty
hosted_at_offsetint64
stream_continuation_tokenbytes

com.daml.ledger.api.v2.GetHostedPartiesRequest

hosted_at_offsetint64
filterHostedPartiesFilter
stream_continuation_tokenbytes

com.daml.ledger.api.v2.HostedPartiesFilter

party_filterrepeated string
all_participantsbool
synchronizer_id_filterrepeated string

com.daml.ledger.api.v2.GetHostedPartiesResponse

hosted_partyHostedParty
hosted_at_offsetint64
stream_continuation_tokenbytes

com.daml.ledger.api.v2.HostedParty

partystring
hosting_participantsrepeated HostingParticipant

com.daml.ledger.api.v2.HostingParticipant

participant_idstring
synchronizer_idstring
record_timeTimestamp
offsetint64
participant_permissionParticipantPermission
hosting_stateHostingState

com.daml.ledger.api.v2.ParticipantPermission

  • PARTICIPANT_PERMISSION_UNSPECIFIED
  • PARTICIPANT_PERMISSION_SUBMISSION
  • PARTICIPANT_PERMISSION_CONFIRMATION
  • PARTICIPANT_PERMISSION_OBSERVATION

com.daml.ledger.api.v2.HostingState

  • HOSTING_STATE_UNSPECIFIED
  • HOSTING_STATE_ONBOARDING
  • HOSTING_STATE_ACTIVE

History

Added3.8.0
grpcurl
grpcurl
# Add -plaintext if the server is not using TLS.
# This RPC uses streaming semantics. Send additional JSON messages on stdin as needed.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.StateService/GetHostedParties <<'EOF'
{
  "hostedAtOffset": "0",
  "filter": {
    "partyFilter": [
      "string"
    ],
    "allParticipants": true,
    "synchronizerIdFilter": [
      "string"
    ]
  },
  "streamContinuationToken": "BASE64_ENCODED_BYTES"
}
EOF
OKapplication/json
OK
{
  "hostedParty": {
    "party": "string",
    "hostingParticipants": [
      {
        "participantId": "string",
        "synchronizerId": "string",
        "recordTime": "string",
        "offset": "0",
        "participantPermission": "PARTICIPANT_PERMISSION_UNSPECIFIED",
        "hostingState": "HOSTING_STATE_UNSPECIFIED"
      }
    ]
  },
  "hostedAtOffset": "0",
  "streamContinuationToken": "BASE64_ENCODED_BYTES"
}