> ## 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.

# GetLedgerApiVersion

Ledger API

›

[gRPC API](https://docs.canton.network/reference/grpc-ledger-api-reference/overview.md)

›

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

›

GetLedgerApiVersion

com.daml.ledger.api.v2

# GetLedgerApiVersion

gRPC

RPC

`/com.daml.ledger.api.v2.VersionService/GetLedgerApiVersion`

## Protocol Details

Protocol
gRPC

Service
VersionService

RPC
GetLedgerApiVersion

Client stream
No

Server stream
No

## Inputs

### GetLedgerApiVersionRequest

Message
com.daml.ledger.api.v2.GetLedgerApiVersionRequest

Client stream
No

## Outputs

### GetLedgerApiVersionResponse

Message
com.daml.ledger.api.v2.GetLedgerApiVersionResponse

Server stream
No

`version`
string

`features`
FeaturesDescriptor

## Related Schemas

> [accordion] com.daml.ledger.api.v2.GetLedgerApiVersionRequest

> [accordion] com.daml.ledger.api.v2.GetLedgerApiVersionResponse
>
> `version`
> string
>
> `features`
> FeaturesDescriptor

> [accordion] com.daml.ledger.api.v2.FeaturesDescriptor
>
> `experimental`
> ExperimentalFeatures
>
> `user_management`
> UserManagementFeature
>
> `party_management`
> PartyManagementFeature
>
> `offset_checkpoint`
> OffsetCheckpointFeature
>
> `package_feature`
> PackageFeature

> [accordion] com.daml.ledger.api.v2.ExperimentalFeatures
>
> `static_time`
> ExperimentalStaticTime
>
> `command_inspection_service`
> ExperimentalCommandInspectionService

> [accordion] com.daml.ledger.api.v2.ExperimentalStaticTime
>
> `supported`
> bool

> [accordion] com.daml.ledger.api.v2.ExperimentalCommandInspectionService
>
> `supported`
> bool

> [accordion] com.daml.ledger.api.v2.UserManagementFeature
>
> `supported`
> bool
>
> `max_rights_per_user`
> int32
>
> `max_users_page_size`
> int32

> [accordion] com.daml.ledger.api.v2.PartyManagementFeature
>
> `max_parties_page_size`
> int32

> [accordion] com.daml.ledger.api.v2.OffsetCheckpointFeature
>
> `max_offset_checkpoint_emission_delay`
> Duration

> [accordion] com.daml.ledger.api.v2.PackageFeature
>
> `max_vetted_packages_page_size`
> int32

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.VersionService/GetLedgerApiVersion <<'EOF'
{}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "version": "string",
  "features": {
    "experimental": {
      "staticTime": {
        "supported": true
      },
      "commandInspectionService": {
        "supported": true
      }
    },
    "userManagement": {
      "supported": true,
      "maxRightsPerUser": 0,
      "maxUsersPageSize": 0
    },
    "partyManagement": {
      "maxPartiesPageSize": 0
    },
    "offsetCheckpoint": {
      "maxOffsetCheckpointEmissionDelay": "string"
    },
    "packageFeature": {
      "maxVettedPackagesPageSize": 0
    }
  }
}
```
