{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: RedeemDirectParams

Defined in: trade.ts:492

Low-level direct redemption against the BinarySettlement singleton — bypasses the module (no operator attribution). Burns the caller's outcome tokens and pays to. Prefer the module-routed RedeemParams for normal trading; use this for keeper/tooling paths that hold the raw outcome id.

Properties

outcomeId

outcomeId: bigint

Defined in: trade.ts:494

The ERC-6909 outcome id to redeem (encodes pool + nonce + index).


amount

amount: bigint

Defined in: trade.ts:496

Outcome-token quantity to burn.


to?

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

Defined in: trade.ts:498

Recipient of the released collateral (default: the trader's own address).


settlement?

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

Defined in: trade.ts:501

BinarySettlement address; resolved from config.addresses.binarySettlement when omitted. Throws if neither is set.


outcomeToken?

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

Defined in: trade.ts:504

Outcome-token singleton (for the operator grant). Resolved from the settlement's outcomeToken() when omitted.


autoApprove?

optional autoApprove?: boolean

Defined in: trade.ts:506

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


gas?

optional gas?: bigint

Defined in: trade.ts:507