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

# Get withdrawal

> Fetch a withdrawal's executable calldata by index.

 Public lookup — no auth. Returns the vault address and ABI-encoded
 `executeWithdrawal(...)` calldata for a previously-initiated
 `withdrawal_index`. The calldata is bound to the fixed
 (index, metadata, owner, destination, token, amount) tuple persisted for
 the withdrawal, so re-fetching it cannot redirect funds. Returns 409 while
 the withdrawal's root has not been confirmed on-chain yet (proof not
 available) — clients poll this endpoint until it succeeds.



## OpenAPI

````yaml /proto-openapi/api/openapi.yaml get /api/v1/withdrawals/{withdrawalIndex}
openapi: 3.0.3
info:
  title: Monaco Protocol API
  description: REST API for the Monaco Protocol hybrid CLOB exchange.
  version: 1.0.0
servers:
  - url: https://staging.apimonaco.xyz
    description: Staging server (Testnet)
security: []
tags:
  - name: AccountsService
  - name: ApplicationsService
  - name: AuthService
  - name: BuildercodeRewardsService
  - name: CopyTradingService
  - name: DelegatedAgentsService
  - name: FaucetService
  - name: FeesService
  - name: HealthService
  - name: ManagedMarketsService
    description: |-
      Wallet-authenticated maker assignments. The signed session must match both
       configured maker user and application. Owner IDs are process fences, never auth.
       Only wallet sessions are supported; delegated-agent sessions receive 403.
  - name: MarginAccountsService
    description: |-
      Current public isolated-margin semantics:
       - a user has one parent margin account per application scope
       - opening orders create or reuse isolated position buckets under that parent
       - parent account creation is handled internally by margin workflows
  - name: MarketService
  - name: OrderbookService
  - name: OrdersService
  - name: PositionsService
    description: |-
      Current public isolated-margin semantics:
       - positions link to a parent margin account and, when applicable, a bucket id
       - opening orders create or reuse isolated position buckets under the parent
       - users can open another isolated position by reusing the parent account with a different market bucket
  - name: PulseService
  - name: SweeperService
  - name: TraderCodeService
  - name: TradesService
  - name: WhitelistService
  - name: WithdrawalsService
paths:
  /api/v1/withdrawals/{withdrawalIndex}:
    get:
      tags:
        - WithdrawalsService
        - Withdrawals
      summary: Get withdrawal
      description: |-
        Fetch a withdrawal's executable calldata by index.

         Public lookup — no auth. Returns the vault address and ABI-encoded
         `executeWithdrawal(...)` calldata for a previously-initiated
         `withdrawal_index`. The calldata is bound to the fixed
         (index, metadata, owner, destination, token, amount) tuple persisted for
         the withdrawal, so re-fetching it cannot redirect funds. Returns 409 while
         the withdrawal's root has not been confirmed on-chain yet (proof not
         available) — clients poll this endpoint until it succeeds.
      operationId: get_withdrawal
      parameters:
        - name: withdrawalIndex
          in: path
          required: true
          schema:
            type: string
            default: '0'
          example: '0'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Withdrawal'
        '404':
          description: Withdrawal not found (may not be persisted yet)
        '409':
          description: Withdrawal not confirmed on-chain yet; retry shortly
        '500':
          description: Internal server error
components:
  schemas:
    Withdrawal:
      type: object
      properties:
        withdrawalIndex:
          example: '42'
          type: string
          description: >-
            Allocated withdrawal index — matches executeWithdrawal.index
            on-chain
          nullable: true
        vaultAddress:
          example: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
          type: string
          description: >-
            0x-prefixed lowercase address of the vault contract the calldata is
            submitted to
          nullable: true
        calldata:
          type: string
          description: >-
            0x-prefixed ABI-encoded executeWithdrawal(...) calldata; submit as
            tx.data to the vault. Empty on InitiateWithdrawal (the merkle proof
            is not available until the withdrawal root is confirmed on-chain) —
            fetch it from GetWithdrawal once ready
          nullable: true

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.