{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: RedeemDirectParams

Defined in: trade.ts:675

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:677

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


amount

amount: bigint

Defined in: trade.ts:679

Outcome-token quantity to burn.


to?

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

Defined in: trade.ts:681

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


settlement?

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

Defined in: trade.ts:686

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


outcomeToken?

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

Defined in: trade.ts:691

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


autoApprove?

optional autoApprove?: boolean

Defined in: trade.ts:693

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


gas?

optional gas?: bigint

Defined in: trade.ts:695

Gas ceiling for this tx.

Default Value

TraderConfig.gas (10,000,000)