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

# Count a confirmed close submitted outside this API.

> Closes submitted through `POST /v1/{network}/submit` are counted automatically. The transaction is re-read from the network and counted only if it confirmed and merged an account; repeating a hash never counts it twice.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/{network}/stats/merges
openapi: 3.0.0
info:
  title: LumenWipe API
  description: Programmatic close-out of Stellar accounts.
  version: 0.1.0
  contact: {}
servers:
  - url: https://api.lumenwipe.com
security: []
tags:
  - name: close
    description: Build and submit an account close-out
  - name: account
    description: Read account state and conversion paths
  - name: mediator
    description: Exchange-destination forwarding
  - name: stats
    description: Public close counter
  - name: health
    description: Service health
  - name: service
    description: Service index
  - name: admin
    description: Operator-only self-serve API key management
paths:
  /v1/{network}/stats/merges:
    post:
      tags:
        - stats
      summary: Count a confirmed close submitted outside this API.
      description: >-
        Closes submitted through `POST /v1/{network}/submit` are counted
        automatically. The transaction is re-read from the network and counted
        only if it confirmed and merged an account; repeating a hash never
        counts it twice.
      operationId: StatsController_record
      parameters:
        - name: network
          required: true
          in: path
          schema:
            enum:
              - testnet
              - mainnet
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecordMergeRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordMergeResponseDto'
        '400':
          description: Malformed hash, or the transaction is not a confirmed account merge.
        '401':
          description: Missing or invalid API key.
        '429':
          description: Rate limit exceeded for this key.
        '503':
          description: The stats store is unreachable.
      security:
        - api-key: []
components:
  schemas:
    RecordMergeRequestDto:
      type: object
      properties:
        txHash:
          type: string
          description: >-
            Hash of a confirmed transaction that merged the account being
            closed.
          example: 3389e9f0f1a65f19736cacf544c2e825313e8447f569233bb8db39aa607c8889
      required:
        - txHash
    RecordMergeResponseDto:
      type: object
      properties:
        counted:
          type: boolean
          description: >-
            True when this call counted the close; false when the hash was
            already counted.
          example: true
      required:
        - counted
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: opaque
      type: http
      description: Integrator API key

````

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