Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET API

SET API · SET Close

Every ISO week from Close's first, with its state and hashes

GET/v1/close/weeks

Key scope: read · Success: 200

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.

No parameters.

Notes

  • SET Close is switched on per deployment; when it is off, every /v1/close call answers 403 close_off after the key is checked. GET /v1/capabilities shows it as features.close.
  • Needs a key with the read scope.
  • hasMore is always false and nextCreatedBefore always null; limit and createdBefore are not read.
  • counts is the count stored at prepare or sign, so it is null for an open week. Read GET /v1/close/weeks/{week} for a week's counts now.
  • preparedBy and approvedBy are API key ids. priorHash is 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

All codes: Errors.