Withdraw
Withdraws the user’s Polymarket proxy-wallet collateral to an arbitrary dstWalletAddress. Optional dstToken swaps the proxy collateral into a different token (and/or chain) before delivery.
Unlike /withdrawToEoa, this endpoint always requires an EIP-712 signatureByEvmEoa produced by the user’s EOA over { dstToken, dstWalletAddress, expiration } — see the Polymarket Signing Guide. The signature is what authorizes funds being sent to a wallet other than the EOA.
The endpoint awaits successful execution of the withdrawal transaction before returning the transaction hash.
Documentation Index
Fetch the complete documentation index at: https://docs.swaps.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Limited demo key for API Reference: 5c951bc81da566bbd030ba8e20724063.
Body
User's EVM wallet address (the signer)
^0x[a-fA-F0-9]{40}$Wallet address that receives the withdrawn funds
^0x[a-fA-F0-9]{40}$Unix timestamp (seconds) when the signature expires. Must be within the next ~300 seconds.
EIP-712 signature by the EOA over the Withdraw typed data.
^0x[a-fA-F0-9]*$Optional destination token (address + chainId). When set, the proxy collateral is swapped into this token before delivery.