> ## Documentation Index
> Fetch the complete documentation index at: https://v3.docs.derive.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Get spot transfer history for a subaccount

> 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.



## OpenAPI

````yaml /openapi.json post /private/get_erc20_transfer_history
openapi: 3.1.0
info:
  title: Derive v3 API
  version: 0.2.0
  description: JSON-RPC 2.0 methods, served over WebSocket and HTTP POST.
servers:
  - url: https://api.derive.xyz/v3
    description: Production (HTTP POST base)
  - url: https://testnet.api.derive.xyz/v3
    description: Testnet (HTTP POST base)
security: []
tags:
  - name: Subaccounts
    description: >-
      List, inspect, and label subaccounts, portfolios, positions, and
      collateral.
  - name: Session Keys
    description: Register, edit, and list delegated signing keys.
  - name: Account
    description: Wallet-level account information and settings.
  - name: Orderbook
    description: Place, replace, cancel, and query orders, trigger orders, and algos.
  - name: RFQ
    description: 'Request-for-quote: send RFQs, quote, and execute block trades.'
  - name: Vault Shareholders
    description: >-
      Deposit into and withdraw from vaults, and track shares, requests, and
      performance.
  - name: Vault Curators
    description: >-
      Create and operate curated vaults: settle deposit and withdrawal requests,
      and manage vault metadata.
  - name: History
    description: >-
      Per-account historical records: orders, trades, transfers, and
      settlements.
  - name: Market Maker Protection
    description: Configure, read, and reset market-maker protection.
  - name: Transfers & Withdrawals
    description: Move collateral between subaccounts, to other wallets, and on-chain.
  - name: System
    description: Rate limits and transaction lookups.
  - name: Market Data
    description: Instruments, currencies, tickers, and market-wide feeds.
  - name: Referrals
    description: Referral codes and program performance.
  - name: Other
    description: Uncategorized.
paths:
  /private/get_erc20_transfer_history:
    post:
      tags:
        - History
      summary: Get spot transfer history for a subaccount
      description: >-
        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.
      operationId: private_get_erc20_transfer_history
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetErc20TransferHistoryRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransferHistoryResult'
        default:
          description: JSON-RPC error (see Error Codes)
components:
  schemas:
    GetErc20TransferHistoryRequest:
      description: >-
        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.
      type: object
      properties:
        end_timestamp:
          description: 'End of the window, unix milliseconds (default: unbounded / now).'
          default: null
          type:
            - integer
            - 'null'
          format: uint64
          minimum: 0
        start_timestamp:
          description: Start of the window, unix milliseconds (default 0).
          default: null
          type:
            - integer
            - 'null'
          format: uint64
          minimum: 0
        subaccount_id:
          default: null
          type:
            - integer
            - 'null'
          format: int64
        wallet:
          default: null
          type:
            - string
            - 'null'
    TransferHistoryResult:
      type: object
      required:
        - transfers
      properties:
        transfers:
          type: array
          items:
            $ref: '#/components/schemas/TransferEntry'
    TransferEntry:
      description: >-
        `amount` and `fee` are decimal strings (e.g. `"1.1"`). `is_outgoing`
        marks the caller's side; on the sender's row `amount` is the gross
        debited and `fee` the in-kind fee, on the receiver's row `amount` is the
        net credited and `fee` is 0. `operation_id`/`batch_uuid` are stable
        uuids.
      type: object
      required:
        - amount
        - asset
        - batch_status
        - batch_uuid
        - fee
        - from_subaccount_id
        - from_wallet
        - is_outgoing
        - operation_id
        - timestamp
        - to_subaccount_id
        - to_wallet
      properties:
        amount:
          description: >-
            Non-negative decimal string of the human value (e.g. `"1.5"`), up to
            12 fractional digits; a string or JSON number is accepted
          type: string
          format: decimal
        asset:
          type: string
        batch_status:
          $ref: '#/components/schemas/BatchStatus'
        batch_uuid:
          type: string
        fee:
          description: >-
            Non-negative decimal string of the human value (e.g. `"1.5"`), up to
            12 fractional digits; a string or JSON number is accepted
          type: string
          format: decimal
        from_subaccount_id:
          type: integer
          format: uint64
          minimum: 0
        from_wallet:
          type: string
        is_outgoing:
          type: boolean
        operation_id:
          type: string
        timestamp:
          type: integer
          format: uint64
          minimum: 0
        to_subaccount_id:
          type: integer
          format: uint64
          minimum: 0
        to_wallet:
          type: string
        tx_hash:
          type:
            - string
            - 'null'
    BatchStatus:
      description: >-
        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.
      type: string
      enum:
        - Batching
        - Executing
        - Proving
        - Settling
        - Settled
        - BatchingError
        - ExecutingError
        - ProvingError
        - SettlingError
        - SettledError

````

## Related topics

- [Transfer a spot asset to another owner's subaccount](/api-reference/transfers-&-withdrawals/transfer-a-spot-asset-to-another-owners-subaccount.md)
- [Transfer a spot asset between your subaccounts](/api-reference/transfers-&-withdrawals/transfer-a-spot-asset-between-your-subaccounts.md)
- [Get interest history for a subaccount](/api-reference/history/get-interest-history-for-a-subaccount.md)
