{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: RedeemManyParams

Defined in: trade.ts:562

Claim winnings from several settled markets in ONE transaction — the batch form of RedeemParams. Each entry is redeemed independently for the signer (settlement pays each straight to their wallet); all-or-nothing.

Properties

entries

entries: object[]

Defined in: trade.ts:564

Per-market redemptions. outcomeIdx is required per entry (0 = YES, 1 = NO).

marketId

marketId: `0x${string}`

bytes32 marketId of the market to redeem on.

outcomeIdx

outcomeIdx: 0 | 1

Which outcome's tokens to redeem (0 = YES, 1 = NO).

amount

amount: bigint

Outcome tokens to redeem, raw units (collateral decimals).


operatorId?

optional operatorId?: number

Defined in: trade.ts:573

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


venueId?

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

Defined in: trade.ts:575

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


outcomeToken?

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

Defined in: trade.ts:580

Outcome-token singleton to grant the module operator on (one grant covers all ids). Resolved from the settlement singleton when omitted.


module?

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

Defined in: trade.ts:582

BinaryMarketsModule address; resolved from config.addresses.binaryModule.


autoApprove?

optional autoApprove?: boolean

Defined in: trade.ts:584

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


gas?

optional gas?: bigint

Defined in: trade.ts:586

Gas ceiling for this tx.

Default Value

TraderConfig.gas (10,000,000)