Skip to main content

Routine commands

The API syncs on startup when SYNC_ON_START=true and schedules later runs. pnpm sync performs a one-time run and closes the database pool.

Targeted repair

Inspect before changing a cursor:
Only add --reset after verifying the chain, network, wallet, asset identity, replay boundary, and database backup. Resetting checkpoints can be expensive and can expose RPC limitations, although deterministic identities should prevent duplicate records.

API health and failures

Run/failure endpoints reveal operational state and must be restricted at the deployment boundary. A production failure reprocessor is not implemented; never delete unresolved records to make monitoring appear healthy.

Manual sync

The endpoint returns 202 with a run ID, 409 if work is already running, and 429 after excessive requests. Keep the admin key out of shell history and logs; the example variable name is intentionally not a repository configuration variable.

Release validation