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

# Get an account's flat transaction history in a vault

> Returns a paginated list of deposit, withdraw, transfer_in, and transfer_out events for a given account in a vault, sorted newest-first by ledger. Use for tx-table / activity-log UIs. The performance endpoint (`/account/:wallet/vault/:vault`) is the right place for chart data with per-bucket event annotations.



## OpenAPI

````yaml GET /account/{walletAddress}/vault/{vaultAddress}/events
openapi: 3.0.0
info:
  title: DeFindex API
  description: API documentation for DeFindex endpoints
  version: 1.0.0
  contact: {}
  x-logo:
    url: https://links.paltalabs.io/defindex-full.svg
    backgroundColor: '#0e0e0e'
    altText: DeFindex Logo
    href: https://defindex.io
servers: []
security: []
tags: []
paths:
  /account/{walletAddress}/vault/{vaultAddress}/events:
    get:
      tags:
        - Historical Data
      summary: Get an account's flat transaction history in a vault
      description: >-
        Returns a paginated list of deposit, withdraw, transfer_in, and
        transfer_out events for a given account in a vault, sorted newest-first
        by ledger. Use for tx-table / activity-log UIs. The performance endpoint
        (`/account/:wallet/vault/:vault`) is the right place for chart data with
        per-bucket event annotations.
      operationId: HistoricalDataController_getAccountEvents
      parameters:
        - name: walletAddress
          required: true
          in: path
          description: Stellar account address
          schema:
            example: GCXD3P3ALY3HNFZ6BWCDSXIAV5N2RPVDWYF4O63FE7FB3YNFHAZRHKZ6
            type: string
        - name: vaultAddress
          required: true
          in: path
          description: Vault contract address
          schema:
            example: CBBAH2OAJ6N3UBJGXNFYH4QF6C6OWO4RHGGOOGDER3IJB7SGLR3Y56JO
            type: string
        - name: network
          required: true
          in: query
          description: Stellar network (mainnet or testnet)
          schema:
            enum:
              - testnet
              - mainnet
            type: string
        - name: eventType
          required: false
          in: query
          description: >-
            Filter by event type: deposit, withdraw, transfer_in, transfer_out.
            Omit for all.
          schema:
            type: string
            enum:
              - deposit
              - withdraw
              - transfer_in
              - transfer_out
        - name: startDate
          required: false
          in: query
          description: Start date in ISO 8601 format
          schema:
            example: '2026-01-01T00:00:00.000Z'
            type: string
        - name: endDate
          required: false
          in: query
          description: End date in ISO 8601 format
          schema:
            example: '2026-04-22T00:00:00.000Z'
            type: string
        - name: limit
          required: false
          in: query
          description: Page size (max 200)
          schema:
            default: 50
            type: number
        - name: offset
          required: false
          in: query
          description: Pagination offset
          schema:
            default: 0
            type: number
      responses:
        '200':
          description: Paginated events list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountEventsResponse'
components:
  schemas:
    AccountEventsResponse:
      type: object
      properties:
        accountAddress:
          type: string
        vaultAddress:
          type: string
        network:
          type: string
        pagination:
          type: object
          description: Pagination info
          example:
            limit: 50
            offset: 0
            total: 3
        events:
          description: Transaction events, newest-first by ledger
          type: array
          items:
            type: object
      required:
        - accountAddress
        - vaultAddress
        - network
        - pagination
        - events

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.