{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: RedeemParams

Defined in: trade.ts:373

Properties

marketId

marketId: `0x${string}`

Defined in: trade.ts:377

bytes32 marketId the module keys the redemption on (settlement-extraction v2: redemption is module-routed — the module pulls the caller's winning tokens, finalizes-if-needed, and redeems through the BinarySettlement singleton).


amount

amount: bigint

Defined in: trade.ts:379

Outcome-token amount to burn for collateral.


outcomeIdx?

optional outcomeIdx?: 0 | 1

Defined in: trade.ts:382

Winning outcome (0 = YES, 1 = NO). Looked up via market.winningOutcome() when omitted (needs market set, else pass outcomeIdx explicitly).


market?

optional market?: `0x${string}`

Defined in: trade.ts:385

BinaryMarket address — only needed to auto-look-up outcomeIdx / outcomeToken when those are omitted.


operatorId?

optional operatorId?: number

Defined in: trade.ts:387

Routing operator id (uint32) for attribution; 0 = none (default).


venueId?

optional venueId?: `0x${string}`

Defined in: trade.ts:389

Routing venue id (bytes32 hex); 32-byte zero = none (default).


outcomeToken?

optional outcomeToken?: `0x${string}`

Defined in: trade.ts:392

Outcome-token singleton the winning position lives on (for the operator grant). Looked up via market.outcomeToken() when omitted.


module?

optional module?: `0x${string}`

Defined in: trade.ts:395

BinaryMarketsModule address; resolved from config.addresses.binaryModule when omitted. Throws if neither is set.


autoApprove?

optional autoApprove?: boolean

Defined in: trade.ts:397

Ensure the module is an operator on the outcome-token singleton (default true).


gas?

optional gas?: bigint

Defined in: trade.ts:398