@somnia-chain/markets-sdk


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

Interface: OnchainResolutionPrice

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

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:1770

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


decimals

decimals: number

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

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


voided

voided: boolean

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

The oracle voided the question rather than answering it.


adapter

adapter: `0x${string}`

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

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


oracleQuestionId

oracleQuestionId: string

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

The adapter-scoped question id the answer belongs to.