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

Recompute a signed week's hash; name every match written since it was signed

GET/v1/close/weeks/{week}/verify

Key scope: read · Success: 200

Recomputes a signed week's hash from its matches now and checks the previous week still has the hash this one chained to. valid is true when both hold. Names every match written since the week was signed.

Path parameters

week stringrequired
YYYY-Www, a real ISO week such as 2026-W33. Anything else answers 404 not_found.

Notes

  • SET Close is switched on per deployment; while it is off every /v1/close/* call answers 403 close_off. Check GET /v1/capabilities (features.close).
  • Needs a key with the read scope.
  • The week must be signed: 409 week_not_signed otherwise.
  • hashMatches: the hash recomputed from the matches now equals the signed one. priorMatches: the previous week still has the hash this one chained to. valid is both.
  • changedSinceSigned lists up to 100 matches written after signedAt; changedSinceSignedShown says how many are listed.
  • countSigned and countNow are the week's match counts when it was signed and now.
  • final is true once every month the week cuts is locked.
  • 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
  • 404 not_found
  • 409 week_not_signed

All codes: Errors.