@somnia-chain/markets-sdk / react / useLiveMarketByAddress
Function: useLiveMarketByAddress()
useLiveMarketByAddress(
addr):BinaryMarket|null
Defined in: hooks.ts:170
One binary market by its BinaryMarket contract address. NOTE: watches are pool-keyed, so this hook does not open one — it reads whatever a pool-keyed hook (or explicit watchMarket) on the same page has hydrated.
Parameters
addr
string | undefined
Returns
BinaryMarket | null