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

# private/get_erc20_transfer_history

`POST /private/get_erc20_transfer_history`

## Request

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

Returns settled spot (ERC-20) transfers involving a single subaccount or an entire wallet (specify exactly one), optionally bounded by a start/end timestamp window. Each entry reports the transfer amount and fee as decimals along with direction — the sender sees the gross amount plus fee, the receiver sees the net credit — plus the resolved settlement batch and status.

## Request body

- GetErc20TransferHistoryRequest: Parameters for `private/get_erc20_transfer_history`. Matches `get_withdrawal_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 transfers. 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

- TransferHistoryResult
  - `transfers` TransferEntry[], 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
    - `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
    - `from_subaccount_id` integer, required
    - `from_wallet` string, required
    - `is_outgoing` boolean, required
    - `operation_id` string, required
    - `timestamp` integer, required: Unix milliseconds.
    - `to_subaccount_id` integer, required
    - `to_wallet` string, required
    - `tx_hash` string, nullable

## 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_erc20_transfer_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)
