@somnia-chain/markets-sdk / index / marketKey
Function: marketKey()
marketKey(
outcomeId):bigint
Defined in: ids.ts:70
The settlement marketKey for any outcome id of a market: id >> 8. Both the
YES id and the NO id of the same market map to the SAME key (they differ only
in the low 8 idx bits), so this keys the per-market BinarySettlement record
regardless of which side's id you pass. Named marketKey(yesId) for the
canonical YES-id caller, but any outcome id of the market works.
Parameters
outcomeId
bigint
Returns
bigint