---
title: "private/get_withdrawal_history"
method: POST
path: "/private/get_withdrawal_history"
tags: ["History"]
---

# private/get_withdrawal_history

`POST /private/get_withdrawal_history`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/private/get_withdrawal_history`
- Auth: API key in header `X-DeriveWallet` and API key in header `X-DeriveTimestamp` and API key in header `X-DeriveSignature`

Returns settled withdrawals for a single subaccount or an entire wallet (specify exactly one), optionally bounded by a start/end timestamp window. Each entry reports the withdrawn amount as a decimal, the fee routed to the security module (the net amount sent to the recipient is amount minus fee), and the resolved settlement batch and status.

## Request body

- GetWithdrawalHistoryRequest: Parameters for `private/get_withdrawal_history`. Matches `get_deposit_history`: `subaccount_id` plus an optional `[start_timestamp, end_timestamp]` window in unix milliseconds. `wallet`, when set, takes precedence over `subaccount_id` and returns the whole wallet's withdrawals. Results are capped at 1000 rows.
  - `end_timestamp` integer, nullable: End of the window, unix milliseconds (default: unbounded / now).
  - `start_timestamp` integer, nullable: Start of the window, unix milliseconds (default 0).
  - `subaccount_id` integer, nullable
  - `wallet` string, nullable

## Response `200`

Success

- WithdrawalHistoryResult
  - `withdrawals` WithdrawalEntry[], required
    - `amount` string, decimal, required: Non-negative decimal string of the human value (e.g. `"1.5"`), up to 12 fractional digits; a string or JSON number is accepted
    - `asset` string, required
    - `batch_status` 'Batching' | 'Executing' | 'Da' | 'Proving' | 'Settling' | 'Settled' | 'BatchingError' | 'ExecutingError' | 'DaError' | 'ProvingError' | 'SettlingError' | 'SettledError', required: Batch lifecycle status — the single source of lifecycle truth for every operation in the batch (individual ops carry no status of their own). Each stage has a healthy variant and a corresponding `...Error` variant meaning that stage failed. Serialized as the variant name (string) in API responses.
    - `batch_uuid` string, required
    - `erc20_address` string, required
    - `fee` string, decimal, required: Non-negative decimal string of the human value (e.g. `"1.5"`), up to 12 fractional digits; a string or JSON number is accepted
    - `forward` WithdrawalForward, nullable
      - `amount_forwarded` string, decimal, nullable, required: This withdrawal's share of what sent forwards carried. OFT dust stays at the withdraw address for the next forward, so slightly less may arrive.
      - `chain_id` integer, required: The destination chain. Solana is 101 (devnet 103).
      - `destination_tx` string, nullable
      - `forward_tx` string, nullable: The latest Ethereum `processWithdrawal` (or owner `recover`) tx that carried it.
      - `hold_reason` string, nullable: `no_route`, `route_unavailable`, `external_only` or `dust`; set only when `held`.
      - `message_id` string, nullable: LayerZero guid or CCIP message id.
      - `rail` string, nullable: `layerzero` or `ccip`; none before a forward is sent and for a recovery.
      - `recipient` string, required: Who it forwards to: base58 on Solana, checksummed on EVM.
      - `status` union, required: Where a forward is, in lifecycle order. A withdrawal paid in parts shows its least advanced part.
        - 'delivered'
        - 'awaiting_payout': The outbox has not paid all of it yet: batching, queued or throttled.
        - 'pending': Paid to the withdraw address; the forward is not sent yet.
        - 'held': Not forwarding; see `hold_reason`. Show `route_unavailable` as delayed.
        - 'in_flight': Bridge message sent, not yet delivered.
        - 'failed': The bridge reported a failure. An ops retry can still deliver it.
        - 'recovered': Pulled back by the owner for a manual refund.
    - `operation_id` string, required
    - `recipient` string, required
    - `subaccount_id` integer, required
    - `timestamp` integer, required: Unix milliseconds.
    - `tx_hash` string, nullable
    - `wallet` string, required

## Other responses

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

## Changes

- **2026-10-20** `0c500202be49`: 2 info
  - the endpoint scheme security `DeriveWallet AND DeriveTimestamp AND DeriveSignature` was added to the API
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/private/get_withdrawal_history/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)
