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

# ListPackages

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)

›

ListPackages

com.daml.ledger.api.v2

# ListPackages

gRPC

RPC

`/com.daml.ledger.api.v2.PackageService/ListPackages`

## Protocol Details

Protocol
gRPC

Service
PackageService

RPC
ListPackages

Client stream
No

Server stream
No

## Inputs

### ListPackagesRequest

Message
com.daml.ledger.api.v2.ListPackagesRequest

Client stream
No

## Outputs

### ListPackagesResponse

Message
com.daml.ledger.api.v2.ListPackagesResponse

Server stream
No

`package_ids`
repeated string

## Related Schemas

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

> [accordion] com.daml.ledger.api.v2.ListPackagesResponse
>
> `package_ids`
> repeated string

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.PackageService/ListPackages <<'EOF'
{}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "packageIds": [
    "string"
  ]
}
```
