side: 2.
This endpoint uses
side: 2 for selling. For buying, see Buy Tokens (Deposit).Request Body
Prediction market contract address.
Option token to sell.
Must be
2 (sell/withdraw).Price per token in base token units.
Amount of option tokens to sell.
Minimum base tokens to receive. Slippage protection — transaction reverts if actual output is below this.
Unix timestamp. Transaction reverts if not executed before this time.
Signed ERC-4337 UserOperation. See Buy Tokens for full field documentation.
Example
Response
UserOperation hash for tracking the transaction.
Internal order identifier.
Notes
- You can only sell tokens you hold. The amount cannot exceed your position.
- Selling removes tokens from the APMM pool and returns base tokens.
- Price impact depends on pool liquidity — larger sells relative to pool size will have higher slippage.
- Set
minReceiveAmountappropriately to avoid unfavorable fills. - After confirmation, an SSE event
user:position_changedis emitted.

