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

# private/get_deposit_history

`POST /private/get_deposit_history`

## Request

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

Returns settled deposits for a single subaccount or an entire wallet (specify exactly one), optionally bounded by a start/end timestamp window. Each entry reports the deposited amount as a decimal, the fee routed to the security module (the net credited amount is amount minus fee), and the resolved settlement batch and status. A deposit that could not reach its target is credited to the wallet's fallback subaccount instead: it reports `is_fallback: true` and the rejection that caused it in `fallback_error_code`, `fallback_error_message` and `fallback_error_data`.

## Request body

- GetDepositHistoryRequest: Parameters for `private/get_deposit_history`. Takes `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 deposits. 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

- DepositHistoryResult
  - `deposits` DepositEntry[], required
    - `action_id` integer, nullable
    - `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
    - `bridge_origin` DepositBridgeOrigin, nullable: Where a credited deposit came from. Named apart from `PendingDepositBridgeOrigin` because schemars shares one namespace and would emit an order-dependent name.
      - `rail` string, required: Bridge protocol: `lifi`, `layerzero` or `ccip`.
      - `source_address` string, nullable: Their wallet on that chain, lower-cased; absent when the rail gave none.
      - `source_chain_id` integer, required: Chain the user sent from.
      - `source_tx_hash` string, required: Their transaction on that chain.
    - `fallback_error_code` integer, nullable: Error code for the deposit's failure to reach its target subaccount.
    - `fallback_error_data` string, nullable: Null for an internal error, whose text stays internal.
    - `fallback_error_message` string, nullable: Null for an internal error, whose text stays internal.
    - `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
    - `is_fallback` boolean, required: The deposit could not reach its target, so it was credited to the wallet's fallback subaccount instead.
    - `l1_sender` string, nullable: Who sent those funds on L1: the depositor's wallet, an exchange, or a bridge's relayer. Absent exactly when `l1_tx_hash` is.
    - `l1_tx_hash` string, nullable: The L1 transaction that moved the funds into the escrow. Absent when no tracked L1 row backs the deposit, or when one action credited several transfers at once.
    - `new_subaccount` boolean, required
    - `operation_id` string, required
    - `subaccount_id` integer, required
    - `timestamp` integer, required: Unix milliseconds.
    - `tx_hash` string, nullable: The settlement batch's commit, `null` until the batch settles. Not the deposit's own L1 transaction: that is `l1_tx_hash`.
    - `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_deposit_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)
