Interface UseAccountsArgs

Hierarchy

  • UseAccountsArgs

Properties

batchDurationMs?: number

Duration in ms in which to batch all accounts data requests. Defaults to 500ms.

disableAutoRefresh?: boolean

If true, disables periodic account refetches for subscriptions.

onError: ((err: SailError) => void)

Type declaration

    • (err: SailError): void
    • Called whenever an error occurs.

      Parameters

      Returns void

refreshIntervalMs?: number

Milliseconds between each refresh. Defaults to 60_000.

useWebsocketAccountUpdates?: boolean

If true, allows one to subscribe to account updates via websockets rather than via polling.

Generated using TypeDoc