> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobula.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Build Withdrawal

> Build a transaction to withdraw USDC from your Polymarket Safe back to your EOA wallet.

<Warning>**Alpha** — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.</Warning>

### Request Body

<ParamField body="address" type="string" required>
  Your EOA wallet address.
</ParamField>

<ParamField body="amount" type="number" required>
  Amount of USDC to withdraw. Must be positive.
</ParamField>

### Response

<ResponseField name="data" type="object">
  Transaction calldata to sign and submit on-chain.

  <Expandable title="Transaction Object">
    <ResponseField name="to" type="string">Target contract address.</ResponseField>
    <ResponseField name="calldata" type="string">Encoded calldata.</ResponseField>
    <ResponseField name="chainId" type="number">Chain ID (137 for Polygon).</ResponseField>
    <ResponseField name="safeAddress" type="string">Your Polymarket Safe address.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="hostname" type="string">Server node identifier.</ResponseField>
<ResponseField name="took" type="number">Request processing time in milliseconds.</ResponseField>

### Usage Example

```bash theme={null}
curl -X POST "https://api.mobula.io/api/2/pm/withdraw/build" \
  -H "Content-Type: application/json" \
  -d '{"address": "0xYourWalletAddress", "amount": 100}'
```

### Example Response

```json theme={null}
{
  "data": {
    "to": "0x...",
    "calldata": "0x...",
    "chainId": 137,
    "safeAddress": "0x..."
  },
  "hostname": "node-xyz",
  "took": 12
}
```


## OpenAPI

````yaml POST /2/pm/withdraw/build
openapi: 3.0.0
info:
  version: 1.0.0
  title: Mobula API
  description: >-
    Documentation of the Mobula API


    **Demo API**: The default server (demo-api.mobula.io) is a demo API with
    rate limits.

    For production use, please use api.mobula.io with an API key from
    https://admin.mobula.io
servers:
  - url: https://demo-api.mobula.io/api/
    description: Demo API (rate limited, for testing only)
  - url: https://api.mobula.io/api/
    description: Production API (requires API key)
security: []
tags:
  - name: V2 - Token
    description: Token details, price, security, ATH, and holder data
  - name: V2 - Market Data
    description: Market details, OHLCV history, and lighthouse metrics
  - name: V2 - Trades
    description: Token trades, enriched trades, and trade filters
  - name: V2 - Wallet
    description: Wallet positions, activity, trades, analysis, and labels
  - name: V2 - Assets
    description: Cross-chain asset details and price history
  - name: V2 - Swap
    description: Swap quoting and execution
  - name: V2 - Perps
    description: Perpetual futures quoting, execution, and positions
  - name: V2 - Bridge
    description: Cross-chain bridge quoting and intent status (Alpha Preview)
  - name: V2 - DeFi
    description: Bonding pools and pulse data
  - name: V2 - Search
    description: Universal fast search
  - name: V2 - Blockchains
    description: System metadata and chain listings
  - name: V1 - Market Data
    description: Market prices, history, sparklines, pairs, and multi-data
  - name: V1 - Wallet
    description: Wallet portfolio, transactions, history, and NFTs
  - name: V1 - Token
    description: First buyers
  - name: V1 - Trades
    description: Market trades by pair
  - name: V1 - Metadata
    description: Token metadata, categories, trendings, and news
  - name: V1 - Assets
    description: List all assets
  - name: V1 - Search
    description: Search for assets, tokens, and pairs
  - name: V1 - DeFi
    description: Bonding pool pulse data
  - name: V1 - Blockchains
    description: Blockchain listings, pairs, and stats
  - name: V1 - Webhooks
    description: Webhook management
  - name: V1 - Feed
    description: Custom feed creation
paths:
  /2/pm/withdraw/build:
    post:
      tags:
        - V2 - Prediction Markets
      summary: Build a USDC withdrawal transaction from the Safe
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                address:
                  type: string
                  minLength: 1
                amount:
                  type: number
                  minimum: 0.01
                  maximum: 1000000000
              required:
                - address
                - amount
      responses:
        '201':
          description: Prediction Markets response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    nullable: true
                    description: >-
                      See the per-endpoint reference for the exact response
                      shape.
                  hostname:
                    type: string
                  took:
                    type: number
                required:
                  - hostname
                  - took

````