@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / react / HookChainOptions

Interface: HookChainOptions

Defined in: packages/sdk/src/hooks.ts:75

Chain filter every data hook accepts as its trailing options. Omit it to read the PRIMARY chain (the exchange's first binding); pass chainId to read another configured chain's engine. The four perp-plane hooks (useWatchPerpMarkets, useWatchPerpMarketsResult, useLiveLiquidations, useLiveFundingPayments) take chainId as a field of their one options object instead.

Extended by

Properties

chainId?

optional chainId?: number

Defined in: packages/sdk/src/hooks.ts:77

Numeric chain id whose engine answers this hook. Defaults to the primary chain.