@somnia-chain/markets-sdk


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

Interface: OnchainResolutionPrice

Defined in: packages/sdk/src/markets.ts:1703

A market's resolution price, read from the oracle adapter it was bound to — what client.getOnchainResolutionPrice(marketId) resolves.

Properties

numericValue

numericValue: string

Defined in: packages/sdk/src/markets.ts:1705

Raw numeric answer as the adapter posted it, at decimals scale.


decimals

decimals: number

Defined in: packages/sdk/src/markets.ts:1707

Scale of numericValue — the adapter's PRICE_DECIMALS, or the fallback.


voided

voided: boolean

Defined in: packages/sdk/src/markets.ts:1709

The oracle voided the question rather than answering it.


adapter

adapter: `0x${string}`

Defined in: packages/sdk/src/markets.ts:1711

The adapter the answer was read from (markets bind to exactly one).


oracleQuestionId

oracleQuestionId: string

Defined in: packages/sdk/src/markets.ts:1713

The adapter-scoped question id the answer belongs to.