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

# TrafficControlState

Participant Administration

›

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

›

[com.digitalasset.canton.admin.participant.v30](https://docs.canton.network/reference/admin-api/protobuf/packages/com-digitalasset-canton-admin-participant-v30.md)

›

TrafficControlState

com.digitalasset.canton.admin.participant.v30

# TrafficControlState

gRPC

RPC

`/com.digitalasset.canton.admin.participant.v30.TrafficControlService/TrafficControlState`

## Protocol Details

Protocol
gRPC

Service
TrafficControlService

RPC
TrafficControlState

Client stream
No

Server stream
No

## Inputs

### TrafficControlStateRequest

Message
com.digitalasset.canton.admin.participant.v30.TrafficControlStateRequest

Client stream
No

`synchronizer_id`
string

## Outputs

### TrafficControlStateResponse

Message
com.digitalasset.canton.admin.participant.v30.TrafficControlStateResponse

Server stream
No

`traffic_state`
TrafficState

## Related Schemas

> [accordion] com.digitalasset.canton.admin.participant.v30.TrafficControlStateRequest
>
> `synchronizer_id`
> string

> [accordion] com.digitalasset.canton.admin.participant.v30.TrafficControlStateResponse
>
> `traffic_state`
> TrafficState

> [accordion] com.digitalasset.canton.admin.participant.v30.TrafficState
>
> `extra_traffic_purchased`
> int64
>
> `extra_traffic_consumed`
> int64
>
> `base_traffic_remainder`
> int64
>
> `last_consumed_cost`
> uint64
>
> `timestamp`
> int64
>
> `serial`
> uint32

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.digitalasset.canton.admin.participant.v30.TrafficControlService/TrafficControlState <<'EOF'
{
  "synchronizerId": "string"
}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "trafficState": {
    "extraTrafficPurchased": "0",
    "extraTrafficConsumed": "0",
    "baseTrafficRemainder": "0",
    "lastConsumedCost": "0",
    "timestamp": "0",
    "serial": 0
  }
}
```
