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

None. Must be used inside a <KeystoneProvider>.

Return Type

When to Use

Most integrations should use the higher-level hooks (useSettlement, useDeposit, etc.). Use useKeystone when you need:
  • Direct API calls not covered by existing hooks
  • Custom event subscriptions on the event bus
  • Access to the token manager for auth headers
  • Building your own hooks on top of the core primitives

Example: Custom API Call

Example: Custom Event Subscription