Import
Usage
Parameters
None. Must be used inside a<KeystoneProvider>.
Return Type
| Property | Type | Description |
|---|---|---|
baseUrl | string | The KeyStone API base URL. |
tokenManager | SessionTokenManager | Manages session token lifecycle and auth headers. |
eventBus | EventBus | Real-time event subscription system. |
depositOrchestrator | DepositOrchestrator | Manages multi-step deposit flows. |
actionDelegates | ActionDelegates | undefined | Action delegates from the provider. |
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