client.market(address), not from the package root. summary is the protocol object: name, outcomes, tokens, resolved. Metadata is a separate read.
market.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Open a market handle and read the protocol summary.
client.market(address), not from the package root. summary is the protocol object: name, outcomes, tokens, resolved. Metadata is a separate read.
const market = client.market(address)
const summary = await market.summary()
// market.summary({ rpcOnly: true })
Promise<{
address: Address
marketName: string
outcomes: string[]
resolver: Address
resolverKind: "admin" | "committee"
marketAdmin: Address
threshold: number | null
resolutionMode: number
conditionId: `0x${string}`
resolved: boolean
winningOutcome: number | null
wrappedTokens: Address[]
numOutcomes: number
outcomeStats?: Array<{
index: number
impliedPct: number | null
liquidityCollateral: bigint | null
volumeCollateral: bigint | null
}>
} | null>
market.