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

# /debank/users/history

> Get a wallet's transaction history across all chains, by address

**Price:** 1 credit

**💡 AI Hint:** Get the on-chain transaction history of a crypto wallet by its EVM address (0x...), newest first. Returns each transaction with its hash, chain, operation type (receive, send, approve, contract interaction, etc.), timestamp, the interacted protocol or counterparty address, the gas fee in USD, and the token transfers involved (direction, token, amount, USD value). Optionally restrict to a single chain.

**⚠️ Common errors:** 412: Wallet not found



## OpenAPI

````yaml /openapi-filtered.json post /api/debank/users/history
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/debank/users/history:
    post:
      tags:
        - /debank
      summary: /debank/users/history
      description: >-
        Get a wallet's transaction history across all chains, by address


        **Price:** 1 credit


        **💡 AI Hint:** Get the on-chain transaction history of a crypto wallet
        by its EVM address (0x...), newest first. Returns each transaction with
        its hash, chain, operation type (receive, send, approve, contract
        interaction, etc.), timestamp, the interacted protocol or counterparty
        address, the gas fee in USD, and the token transfers involved
        (direction, token, amount, USD value). Optionally restrict to a single
        chain.


        **⚠️ Common errors:** 412: Wallet not found
      operationId: __api_debank_users_history_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DebankHistoryPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DebankHistoryItem'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DebankHistoryPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        id:
          type: string
          description: Wallet address (EVM 0x address)
          examples:
            - '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
        count:
          type: integer
          minimum: 1
          description: Max number of transactions to return
        chain:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Restrict to a single chain by its DeBank chain id (e.g. eth, bsc,
            base)
      type: object
      required:
        - id
        - count
    DebankHistoryItem:
      properties:
        '@type':
          type: string
          default: DebankHistoryItem
        id:
          type: string
        chain:
          anyOf:
            - type: string
            - type: 'null'
        type:
          anyOf:
            - type: string
            - type: 'null'
        time_at:
          anyOf:
            - type: integer
            - type: 'null'
        project_id:
          anyOf:
            - type: string
            - type: 'null'
        other_addr:
          anyOf:
            - type: string
            - type: 'null'
        gas_usd_value:
          anyOf:
            - type: number
            - type: 'null'
        transfers:
          items:
            $ref: '#/components/schemas/DebankHistoryTransfer'
          type: array
          default: []
        token_approve:
          anyOf:
            - $ref: '#/components/schemas/DebankTokenApprove'
            - type: 'null'
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    DebankHistoryTransfer:
      properties:
        '@type':
          type: string
          default: DebankHistoryTransfer
        direction:
          type: string
        amount:
          anyOf:
            - type: number
            - type: 'null'
        token_id:
          anyOf:
            - type: string
            - type: 'null'
        symbol:
          anyOf:
            - type: string
            - type: 'null'
        usd_value:
          anyOf:
            - type: number
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - direction
    DebankTokenApprove:
      properties:
        '@type':
          type: string
          default: DebankTokenApprove
        token_id:
          anyOf:
            - type: string
            - type: 'null'
        symbol:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        spender:
          anyOf:
            - type: string
            - type: 'null'
        amount:
          anyOf:
            - type: number
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````