Canton Network docsLedger API › gRPC API › Packages › v2 › Services › StateService
GetHostedParties
Updated 03-12-2026
RPC
/com.daml.ledger.api.v2.StateService/GetHostedPartiesProtocol Details
ProtocolgRPC
ServiceStateService
RPCGetHostedParties
Client streamNo
Server streamYes
Inputs
Messagecom.daml.ledger.api.v2.GetHostedPartiesRequest
Client streamNo
hosted_at_offsetint64filterHostedPartiesFilterstream_continuation_tokenbytesOutputs
Messagecom.daml.ledger.api.v2.GetHostedPartiesResponse
Server streamYes
hosted_partyHostedPartyhosted_at_offsetint64stream_continuation_tokenbytesRelated Schemas
com.daml.ledger.api.v2.GetHostedPartiesRequest
com.daml.ledger.api.v2.GetHostedPartiesRequest
hosted_at_offsetint64filterHostedPartiesFilterstream_continuation_tokenbytescom.daml.ledger.api.v2.HostedPartiesFilter
com.daml.ledger.api.v2.HostedPartiesFilter
party_filterrepeated stringall_participantsboolsynchronizer_id_filterrepeated stringcom.daml.ledger.api.v2.GetHostedPartiesResponse
com.daml.ledger.api.v2.GetHostedPartiesResponse
hosted_partyHostedPartyhosted_at_offsetint64stream_continuation_tokenbytescom.daml.ledger.api.v2.HostedParty
com.daml.ledger.api.v2.HostedParty
partystringhosting_participantsrepeated HostingParticipantcom.daml.ledger.api.v2.HostingParticipant
com.daml.ledger.api.v2.HostingParticipant
participant_idstringsynchronizer_idstringrecord_timeTimestampoffsetint64participant_permissionParticipantPermissionhosting_stateHostingStatecom.daml.ledger.api.v2.ParticipantPermission
com.daml.ledger.api.v2.ParticipantPermission
PARTICIPANT_PERMISSION_UNSPECIFIEDPARTICIPANT_PERMISSION_SUBMISSIONPARTICIPANT_PERMISSION_CONFIRMATIONPARTICIPANT_PERMISSION_OBSERVATION
com.daml.ledger.api.v2.HostingState
com.daml.ledger.api.v2.HostingState
HOSTING_STATE_UNSPECIFIEDHOSTING_STATE_ONBOARDINGHOSTING_STATE_ACTIVE
History
Added
3.8.0grpcurl
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"
}