SET API · SET Close
Every ISO week from Close's first, with its state and hashes
GET/v1/close/weeks
Lists every ISO week (YYYY-Www, Monday 00:00 UTC to the next Monday) from Close's first week to the current one, newest first, with its state, counts and hashes. Not paged: every week comes in one answer.
Notes
- SET Close is switched on per deployment; when it is off, every
/v1/closecall answers 403close_offafter the key is checked.GET /v1/capabilitiesshows it asfeatures.close. - Needs a key with the
readscope. hasMoreis always false andnextCreatedBeforealways null;limitandcreatedBeforeare not read.countsis the count stored at prepare or sign, so it is null for an open week. ReadGET /v1/close/weeks/{week}for a week's counts now.preparedByandapprovedByare API key ids.priorHashis the snapshot hash of the week before, null for Close's first week.- The example's answer held 21 weeks; it is trimmed to the two newest and the signed week
2026-W33. - The example was made with a sandbox key (
sandbox: true). - This example is a recorded run of SET's own code (wallet release
e9b03447) with a sandbox key; ids and times are that run's.
Errors
403 close_off