Skip to main content
Not yet released. The packages on this page are not published to npm yet, so the install commands below will not resolve. The documented interface is stable and the code exists; only publication is outstanding. To use KeyStone from a frontend today, call the REST API or the TypeScript SDK, which is published. Contact us if you need early access.

Import

Usage

Parameters

Return Type

Behavior

  • Fetches the settlement on mount and whenever settlementId changes.
  • Subscribes to real-time updates via the event bus (polling in Phase 1, SSE in Phase 2).
  • When a state_changed event is received, the settlement object updates automatically.
  • Passing null as settlementId clears the settlement and stops subscriptions.

Settlement Object

The returned settlement includes parties and legs:
The full type definitions ship with the package’s TypeScript declarations.