@somnia-chain/markets-sdk / index / OnchainResolutionPrice
Interface: OnchainResolutionPrice
Defined in: packages/sdk/src/markets.ts:1746
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:1748
Raw numeric answer as the adapter posted it, at decimals scale.
decimals
decimals:
number
Defined in: packages/sdk/src/markets.ts:1750
Scale of numericValue — the adapter's PRICE_DECIMALS, or the fallback.
voided
voided:
boolean
Defined in: packages/sdk/src/markets.ts:1752
The oracle voided the question rather than answering it.
adapter
adapter:
`0x${string}`
Defined in: packages/sdk/src/markets.ts:1754
The adapter the answer was read from (markets bind to exactly one).
oracleQuestionId
oracleQuestionId:
string
Defined in: packages/sdk/src/markets.ts:1756
The adapter-scoped question id the answer belongs to.