Request Body
The wallet address (EOA). The Safe address is derived automatically.
The condition ID of the market (same as
marketId from market details).Array of index sets to redeem. For binary markets, use
[1, 2] (Yes=1, No=2).Set to
true for neg-risk (multi-outcome) markets. This routes the redemption through the NegRiskAdapter contract instead of ConditionalTokens directly.Response
Transaction calldata for the redemption.
Server node identifier.
Request processing time in milliseconds.
How Redemption Works
For standard markets (isNegRisk: false):
- Calls
ConditionalTokens.redeemPositions(USDC, 0x0, conditionId, indexSets)through the Safe. - Burns outcome tokens and returns USDC to the Safe for winning positions.
isNegRisk: true):
- Calls
NegRiskAdapter.redeemPositions(conditionId, indexSets)through the Safe.
Usage Example
Integration Example
Redemption is only possible after a market has been resolved. The transaction is wrapped in a Safe
execTransaction call because the outcome tokens are held by the Safe, not the EOA directly. The EOA (as Safe owner) can authorize this call using a pre-approved sender signature.