client.p2p.creatorWithdraw (the on-chain creatorRefundV3 instruction).
Reclaim unmatched collateral
PublicKey | bigint | number
required
The market to withdraw from — its numeric id or PDA.
number
default:"250000"
CU limit prepended to the tx.
0 skips the compute-budget instruction.Signer must be the creator. A non-creator signer reverts on-chain. Only the unmatched
portion is refundable — collateral matched by a counterparty is locked into the market until
settlement, then paid out via redeem.
When does unmatched collateral occur?
You seed, say, 100 USDC on YES at 1:1 odds. If takers only cover 60 USDC of NO, then 40 USDC of your stake is unmatched and refundable viacreatorWithdraw. Custom oddsBps changes the
matching ratio, but the principle is the same: whatever the other side didn’t cover comes back.
