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

# CompletionStream

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)

›

CompletionStream

com.daml.ledger.api.v2

# CompletionStream

gRPC

RPC

`/com.daml.ledger.api.v2.CommandCompletionService/CompletionStream`

## Protocol Details

Protocol
gRPC

Service
CommandCompletionService

RPC
CompletionStream

Client stream
No

Server stream
Yes

## Inputs

### CompletionStreamRequest

Message
com.daml.ledger.api.v2.CompletionStreamRequest

Client stream
No

`user_id`
string

`parties`
repeated string

`begin_exclusive`
int64

## Outputs

### CompletionStreamResponse

Message
com.daml.ledger.api.v2.CompletionStreamResponse

Server stream
Yes

`completion`
Completion

`offset_checkpoint`
OffsetCheckpoint

## Related Schemas

> [accordion] com.daml.ledger.api.v2.CompletionStreamRequest
>
> `user_id`
> string
>
> `parties`
> repeated string
>
> `begin_exclusive`
> int64

> [accordion] com.daml.ledger.api.v2.CompletionStreamResponse
>
> `completion`
> Completion
>
> `offset_checkpoint`
> OffsetCheckpoint

> [accordion] com.daml.ledger.api.v2.Completion
>
> `command_id`
> string
>
> `status`
> Status
>
> `update_id`
> string
>
> `user_id`
> string
>
> `act_as`
> repeated string
>
> `submission_id`
> string
>
> `deduplication_offset`
> int64
>
> `deduplication_duration`
> Duration
>
> `trace_context`
> TraceContext
>
> `offset`
> int64
>
> `synchronizer_time`
> SynchronizerTime
>
> `paid_traffic_cost`
> int64
>
> `transaction_hash`
> bytes

> [accordion] com.daml.ledger.api.v2.TraceContext
>
> `traceparent`
> string
>
> `tracestate`
> string

> [accordion] com.daml.ledger.api.v2.SynchronizerTime
>
> `synchronizer_id`
> string
>
> `record_time`
> Timestamp

> [accordion] com.daml.ledger.api.v2.OffsetCheckpoint
>
> `offset`
> int64
>
> `synchronizer_times`
> repeated SynchronizerTime

grpcurl

```bash grpcurl theme={"theme":{"light":"github-light","dark":"github-dark"}}
# 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.CommandCompletionService/CompletionStream <<'EOF'
{
  "userId": "string",
  "parties": [
    "string"
  ],
  "beginExclusive": "0"
}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "completion": {
    "commandId": "string",
    "status": "string",
    "updateId": "string",
    "userId": "string",
    "actAs": [
      "string"
    ],
    "submissionId": "string",
    "deduplicationOffset": "0"
  }
}
```
