cron
Check DRE vault upkeep and perform when needed (cron)
Expected schedule: every 10 minutes.
For each of DRE_VAULT1, DRE_VAULT2, and DRE_WITHDRAWAL_KEEPER_BOT (see src/config/addresses.ts), calls on-chain checkUpkeep('0x') via the configured RPC endpoints. When upkeepNeeded is true, signs and submits performUpkeep(performData) using UPKEEP_PRIVATE_KEY; vaults that do not need upkeep are skipped. Returns 204 with an empty body on success. Requires X-CRON-API-KEY matching CRON_API_KEY.
post/cron/check-upkeep
Request
- Base URLhttps://api.dre.app (the document declares no server; this is the origin it was published from)
- Authnone declared. Required headers: X-CRON-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-CRON-API-KEYstring required
Must match CRON_API_KEY
Response
Upkeep pass finished. Required transactions were submitted where needed; no response body.
Changes
No recorded changes to this operation across all 3 revisions of this API.