---
title: "public/get_pending_deposits"
method: POST
path: "/public/get_pending_deposits"
tags: ["Onchain Actions"]
---

# public/get_pending_deposits

`POST /public/get_pending_deposits`

## Request

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

Returns deposits queued on L1 but not yet applied by the sequencer, indexed for a wallet and keyed by (tx_hash, log_index). Once a deposit is applied it moves to private/get_deposit_history; this endpoint covers the window in between. Public because a first-time depositor has no account (and thus no session key) until their deposit is applied. A deposit below the asset's minimum is donated to the security module and credits nothing: its entry reports `below_min_deposit: true`. A deposit address holding less than the minimum is not swept: its entries report status `below_min` until a later deposit brings the total over.

## Request body

- GetPendingDepositsParams
  - `wallet` string, required: Wallet the pending deposits credit.

## Response `200`

Success

- GetPendingDepositsResult
  - `pending_deposits` PendingDepositEntry[], required: L1 deposits, plus every bridge in flight or settled inside [`BRIDGE_HISTORY_WINDOW_MS`], each exactly once.
    - `action_id` integer, nullable: Per-queue id assigned by the `OnchainActionManager`. Absent while `bridging`.
    - `action_type` string, required: `Deposit` (existing subaccount) or `DepositToNewSubaccount`
    - `amount` string, nullable: Amount in the asset's native ERC-20 units, as a decimal string. While `bridging`, the estimated `bridge_to_l1.expected_amount` until the bridge delivers, then what it delivered. A refunded bridge keeps the estimate.
    - `asset` string, required
    - `below_min_deposit` boolean, required: Below the asset's minimum deposit: the whole amount went to the security module and nothing was credited.
    - `block_number` integer, nullable
    - `bridge_to_l1` PendingDepositBridgeOrigin, nullable: Where a deposit came from. Named apart from `DepositBridgeOrigin` because schemars shares one namespace and would emit an order-dependent `BridgeOrigin2`.
      - `bridge_id` string, required: Unique with `rail`; changes if a registered source tx is replaced, so key on `provider_transfer_id` when present.
      - `bridge_status` string, required: `registered` (reported by the client, not yet confirmed by its rail) `submitted` (in flight) `delivered` (landed on the destination chain) `matched` (joined to the L1 deposit) `failed` (the bridge could not fill - nothing reached the escrow) `refunded` (the bridge sent the funds back on the source chain - nothing reached the escrow) `expired` (unresolved past `expires_at_ms`; check the source chain) `unmatched` (delivered, but not credited within 24h; contact support)
      - `delivered_at_ms` integer, nullable
      - `deposit_address` string, required: The escrow the bridge delivers to.
      - `expected_amount` string, required: Quoted amount expected to land, in `token` units (estimated until quoted); `receiving_amount` once delivered.
      - `expires_at_ms` integer, required: When a still-`registered` or `submitted` bridge will be marked `expired`.
      - `provider_transfer_id` string, nullable: The provider's own id for the bridge (Li.Fi: the quote's `transactionId`; LayerZero: the message `guid`; CCIP: the `messageId`), stable through its lifecycle.
      - `rail` string, required: Bridge protocol: `lifi`, `layerzero` or `ccip`.
      - `receiving_amount` string, nullable: What actually arrived, or was refunded, in `receiving_token`'s native units, as a decimal string.
      - `receiving_token` string, nullable
      - `receiving_tx_hash` string, nullable: The bridge's delivery transaction on the destination chain. When `refunded`, the refund transaction on the source chain.
      - `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.
      - `substatus` string, required: The rail's detail, or `TOKEN_MISMATCH` when the escrow cannot credit the token.
      - `token` string, required: The ERC20 expected to land in the escrow.
    - `deposit_type` string, required: `standard` or `direct`.
    - `log_index` integer, nullable
    - `manager_id` integer, required: Manager of the new subaccount; `0` for existing-subaccount deposits.
    - `status` string, required: `bridging` (a bridge not yet recorded on L1; its detail is `bridge_to_l1.bridge_status`) `detected` (transfer seen at the tip, pre-confirmation) `below_min` (not swept yet: the deposit address holds less than the asset's minimum deposit; swept once a later deposit brings it over the minimum) `pending` (escrow swept, awaiting confirmation) `confirmed` (sweep tx past the confirmation range) `reverted` (the sweep reorged out — or uncreditable: no valid destination exists)
    - `subaccount_id` integer, required: Credited subaccount; `0` for new-subaccount deposits.
    - `timestamp` integer, required: Milliseconds when the tracker first picked up the deposit - approximates the block timestamp of `block_number`. Shared by all of a deposit's entries. While `bridging`, the bridge's source transaction time.
    - `tx_hash` string, nullable: The L1 deposit. Absent while `bridging`: key a bridging entry on `bridge_to_l1` (see `bridge_id`), since it gains `tx_hash`/`log_index` once the sweeper records the deposit.
    - `updated_at_ms` integer, required
  - `wallet` string, required

## Other responses

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

## Changes

- **2026-11-06** `e4a693cfad48`: 1 info
  - added the required property `pending_deposits/items/below_min_deposit` to the response with the `200` status
- **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/get_pending_deposits/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)
