@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?
optionaloutcomeIdx?: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?
optionalmarket?:`0x${string}`
Defined in: trade.ts:385
BinaryMarket address — only needed to auto-look-up outcomeIdx /
outcomeToken when those are omitted.
operatorId?
optionaloperatorId?:number
Defined in: trade.ts:387
Routing operator id (uint32) for attribution; 0 = none (default).
venueId?
optionalvenueId?:`0x${string}`
Defined in: trade.ts:389
Routing venue id (bytes32 hex); 32-byte zero = none (default).
outcomeToken?
optionaloutcomeToken?:`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?
optionalmodule?:`0x${string}`
Defined in: trade.ts:395
BinaryMarketsModule address; resolved from config.addresses.binaryModule
when omitted. Throws if neither is set.
autoApprove?
optionalautoApprove?:boolean
Defined in: trade.ts:397
Ensure the module is an operator on the outcome-token singleton (default true).
gas?
optionalgas?:bigint
Defined in: trade.ts:398