@somnia-chain/markets-sdk


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

Interface: SignRedeemAuthParams

Defined in: packages/sdk/src/trade.ts:1175

Inputs to Trader.signRedeemAuth — everything in the signed struct EXCEPT the signature (which the call produces). Signed by the connected signer (the position owner); the resulting RedeemAuthorization is handed to a relayer to submit via Trader.redeemFor.

Properties

marketId

marketId: `0x${string}`

Defined in: packages/sdk/src/trade.ts:1177

bytes32 marketId the redemption targets.


outcomeIdx

outcomeIdx: 0 | 1

Defined in: packages/sdk/src/trade.ts:1179

Outcome the owner holds (0 = YES, 1 = NO).


amount

amount: bigint

Defined in: packages/sdk/src/trade.ts:1181

Outcome-token amount to burn for collateral.


nonce

nonce: bigint

Defined in: packages/sdk/src/trade.ts:1183

Per-owner replay nonce; any value not yet consumed for this owner.


deadline

deadline: bigint

Defined in: packages/sdk/src/trade.ts:1185

Signature deadline (unix seconds).


operatorId?

optional operatorId?: number

Defined in: packages/sdk/src/trade.ts:1187

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


venueId?

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

Defined in: packages/sdk/src/trade.ts:1189

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


owner?

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

Defined in: packages/sdk/src/trade.ts:1194

Owner the payout is pinned to; defaults to the connected signer's address. Must be the address whose signer produces the signature.


module?

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

Defined in: packages/sdk/src/trade.ts:1199

BinaryMarketsModule address — the EIP-712 verifyingContract; resolved from config.addresses.binaryModule when omitted.