---
title: "public/withdraw_debug"
method: POST
path: "/public/withdraw_debug"
tags: ["Transfers & Withdrawals"]
---

# public/withdraw_debug

`POST /public/withdraw_debug`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/public/withdraw_debug`
- Auth: none declared

Dry-run helper that returns the EIP-712 typed data and hashes that would be computed for the given withdrawal parameters, so clients can verify their own signing and hashing before submitting. Takes the same inputs as private/withdraw (subaccount, signer, nonce, amount, max fee, expiry, asset) but performs no state change and needs no signature.

## Request body

- PublicWithdrawDebugRequest
  - `amount_in_underlying` string, required
  - `asset_name` string, required
  - `force_batch` boolean, required
  - `max_fee_usd` string, decimal, required: Maximum sequencer fee the signer authorises, in USD, as a decimal string (e.g. `"1.5"`) or a JSON number.
  - `nonce` string, required
  - `recipient` string, nullable: L1 address the funds are paid out to. Defaults to the subaccount's owner wallet when omitted — matching what `private/withdraw` reconstructs.
  - `signature_expiry_sec` integer, required
  - `signer` string, required
  - `subaccount_id` integer, required

## Response `200`

Success

- unknown

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 1 info
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/public/withdraw_debug/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
