@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / preflightChain

Function: preflightChain()

preflightChain(connectedChainId, expectedChainId): PreflightResult

Defined in: packages/sdk/src/preflight.ts:341

Validate the wallet is on the expected chain (a machinery write on the wrong chain either reverts or lands on the wrong deployment). A standalone gate the wizard runs before any step.

Parameters

connectedChainId

number

expectedChainId

number

Returns

PreflightResult