> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# GetHostedPartiesPage

Ledger API

›

[Protobuf](https://docs.canton.network/reference/protobuf/overview.md)

›

[com.daml.ledger.api.v2](https://docs.canton.network/reference/protobuf/packages/com-daml-ledger-api-v2.md)

›

GetHostedPartiesPage

com.daml.ledger.api.v2

# GetHostedPartiesPage

gRPC

[Added 3.8.0](#history-added-3-8-0)

RPC

`/com.daml.ledger.api.v2.StateService/GetHostedPartiesPage`

## Protocol Details

Protocol
gRPC

Service
StateService

RPC
GetHostedPartiesPage

Client stream
No

Server stream
No

## Inputs

### GetHostedPartiesPageRequest

Message
com.daml.ledger.api.v2.GetHostedPartiesPageRequest

Client stream
No

`hosted_at_offset`
int64

`filter`
HostedPartiesFilter

`page_token`
bytes

`max_page_size`
int32

## Outputs

### GetHostedPartiesPageResponse

Message
com.daml.ledger.api.v2.GetHostedPartiesPageResponse

Server stream
No

`hosted_parties`
repeated HostedParty

`hosted_at_offset`
int64

`next_page_token`
bytes

## Related Schemas

> [accordion] com.daml.ledger.api.v2.GetHostedPartiesPageRequest
>
> `hosted_at_offset`
> int64
>
> `filter`
> HostedPartiesFilter
>
> `page_token`
> bytes
>
> `max_page_size`
> int32

> [accordion] com.daml.ledger.api.v2.HostedPartiesFilter
>
> `party_filter`
> repeated string
>
> `all_participants`
> bool
>
> `synchronizer_id_filter`
> repeated string

> [accordion] com.daml.ledger.api.v2.GetHostedPartiesPageResponse
>
> `hosted_parties`
> repeated HostedParty
>
> `hosted_at_offset`
> int64
>
> `next_page_token`
> bytes

> [accordion] com.daml.ledger.api.v2.HostedParty
>
> `party`
> string
>
> `hosting_participants`
> repeated HostingParticipant

> [accordion] com.daml.ledger.api.v2.HostingParticipant
>
> `participant_id`
> string
>
> `synchronizer_id`
> string
>
> `record_time`
> Timestamp
>
> `offset`
> int64
>
> `participant_permission`
> ParticipantPermission
>
> `hosting_state`
> HostingState

> [accordion] com.daml.ledger.api.v2.ParticipantPermission
>
> <ul>
>   <li>`PARTICIPANT_PERMISSION_UNSPECIFIED`</li>
>
>   <li>`PARTICIPANT_PERMISSION_SUBMISSION`</li>
>
>   <li>`PARTICIPANT_PERMISSION_CONFIRMATION`</li>
>
>   <li>`PARTICIPANT_PERMISSION_OBSERVATION`</li>
> </ul>

> [accordion] com.daml.ledger.api.v2.HostingState
>
> <ul>
>   <li>`HOSTING_STATE_UNSPECIFIED`</li>
>
>   <li>`HOSTING_STATE_ONBOARDING`</li>
>
>   <li>`HOSTING_STATE_ACTIVE`</li>
> </ul>

## History

Added
`3.8.0`

grpcurl

```bash grpcurl theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.StateService/GetHostedPartiesPage <<'EOF'
{
  "hostedAtOffset": "0",
  "filter": {
    "partyFilter": [
      "string"
    ],
    "allParticipants": true,
    "synchronizerIdFilter": [
      "string"
    ]
  },
  "pageToken": "BASE64_ENCODED_BYTES",
  "maxPageSize": 0
}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "hostedParties": [
    {
      "party": "string",
      "hostingParticipants": [
        {
          "participantId": "string",
          "synchronizerId": "string",
          "recordTime": "string",
          "offset": "0",
          "participantPermission": "PARTICIPANT_PERMISSION_UNSPECIFIED",
          "hostingState": "HOSTING_STATE_UNSPECIFIED"
        }
      ]
    }
  ],
  "hostedAtOffset": "0",
  "nextPageToken": "BASE64_ENCODED_BYTES"
}
```
