@somnia-chain/markets-sdk / react / SomniaMarketsProvider
Function: SomniaMarketsProvider()
SomniaMarketsProvider(
__namedParameters):ReactNode
Defined in: packages/sdk/src/hooks.ts:89
Provide the SDK's engine tier to the hooks below. Build one exchange
(new SomniaMarkets(...)) near the root of your app and pass it as
exchange — every hook then accepts a chainId filter to read any chain
the exchange spans. Passing client (one engine) is the single-chain form
and keeps working unchanged.
Parameters
__namedParameters
client?
One engine. Every hook reads it, and a chainId filter must name its chain.
exchange?
A (possibly multi-chain) exchange. Hooks read its primary engine unless filtered.
chainSeedPools?
readonly object[]
Binary pools to seed from chain. Requires addresses.binaryModule on each selected chain's client. Fixed for this provider mount; remount to change it.
children
ReactNode
Returns
ReactNode