---
title: "Snapshot dreUSD and dreUSDs ERC-20 totalSupply (cron)"
method: POST
path: "/cron/total-supply"
tags: ["cron"]
---

# Snapshot dreUSD and dreUSDs ERC-20 totalSupply (cron)

`POST /cron/total-supply`

Expected schedule: **every 5 minutes**.

Calls `totalSupply()` on `DREUSD_ADDRESS` and `DREUSDS_ADDRESS` via the configured RPC endpoints, then inserts a row into `total_supplies` (`dre_usd`, `dre_usds`, `recorded_at`). Returns **204** with an empty body on success. Requires `X-CRON-API-KEY` matching `CRON_API_KEY`.

## Headers

- `X-CRON-API-KEY` string, required

## Response `204`

Snapshot persisted. Matching on-chain reads succeeded; no response body.

## Other responses

- `401` — Missing or invalid `X-CRON-API-KEY`.

---

[API](https://skmtc.dev/dre/apis/dre-api.md) · [All operations](https://skmtc.dev/dre/apis/dre-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dre/dre-api/revisions/5d14beb9482b/schema)
