v18

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-013469188.5 KB
Processing

Relay a Polymarket deposit-wallet withdrawal

Relay a user-signed Polymarket deposit-wallet WALLET batch (approve/unwrap pUSD or transfer USDC.e) through the Polymarket relayer using server-held builder credentials. Submitted calls must target known Polymarket contracts.

post/polymarket/withdraw

Headers

x-api-keystring required

API key for authentication

Example:your-api-key

API key for authentication

x-api-versionstring

API version identifier (e.g. "2026-04.amazon"). Optional today, will become required in a future release.

Example:2026-04.amazon

API version identifier (e.g. "2026-04.amazon"). Optional today, will become required in a future release.

Request body

depositWalletstring required

Ethereum address (0x followed by 40 hex characters)

ownerstring required

Ethereum address (0x followed by 40 hex characters)

noncestring required

Numeric string representing a bigint value

deadlinestring required

Numeric string representing a bigint value

signaturestring required

Hex-encoded string (0x followed by hex characters)

Example request

{
  "depositWallet": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
  "owner": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
  "nonce": "1000000000000000000",
  "deadline": "1000000000000000000",
  "calls": [
    {
      "target": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
      "value": "1000000000000000000",
      "data": "0x1234abcd"
    }
  ],
  "signature": "0x1234abcd"
}

Response

Withdrawal relayed successfully

messagestring required
txHashstring required

Hex-encoded string (0x followed by hex characters)

Example response

{
  "txHash": "0x1234abcd"
}