market.redeem when you already have the market handle. client.redeem({ marketAddress, indexes, amounts, owner }) is the same write if you only have the address.
redeemLp.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Cash winning outcome tokens after resolve.
market.redeem when you already have the market handle. client.redeem({ marketAddress, indexes, amounts, owner }) is the same write if you only have the address.
const summary = await market.summary()
const win = summary!.winningOutcome
await market.redeem({
indexes: [BigInt(win!)],
amounts: [amount],
owner: yourAddress,
})
redeemLp.