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

# FetchTime

Shared Administration

›

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

›

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

›

FetchTime

com.digitalasset.canton.time.admin.v30

# FetchTime

gRPC

RPC

`/com.digitalasset.canton.time.admin.v30.SynchronizerTimeService/FetchTime`

## Protocol Details

Protocol
gRPC

Service
SynchronizerTimeService

RPC
FetchTime

Client stream
No

Server stream
No

## Inputs

### FetchTimeRequest

Message
com.digitalasset.canton.time.admin.v30.FetchTimeRequest

Client stream
No

`synchronizer`
Synchronizer

`freshness_bound`
Duration

## Outputs

### FetchTimeResponse

Message
com.digitalasset.canton.time.admin.v30.FetchTimeResponse

Server stream
No

`timestamp`
Timestamp

## Related Schemas

> [accordion] com.digitalasset.canton.time.admin.v30.FetchTimeRequest
>
> `synchronizer`
> Synchronizer
>
> `freshness_bound`
> Duration

> [accordion] com.digitalasset.canton.topology.admin.v30.Synchronizer
>
> `id`
> string
>
> `physical_id`
> string

> [accordion] com.digitalasset.canton.time.admin.v30.FetchTimeResponse
>
> `timestamp`
> Timestamp

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.time.admin.v30.SynchronizerTimeService/FetchTime <<'EOF'
{
  "synchronizer": {
    "id": "string"
  },
  "freshnessBound": "string"
}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "timestamp": "string"
}
```
