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

# Read how far an account is from closed, from live state.

> Stateless: nothing about a close is kept between calls. `remaining` covers what the ledger counts on the account, not claimable balances or DeFi positions. `closed` is informational and never proves that a particular close finished: confirm that by the transaction's hash.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/{network}/close/status
openapi: 3.0.0
info:
  title: LumenWipe API
  description: >-
    Programmatic close-out of Stellar accounts. Request bodies must be JSON
    objects of at most 100 KB: a larger body is rejected with 413
    payload_too_large, a non-JSON content type with 415 unsupported_media_type,
    and a body that is not a JSON object with 400 invalid_body.
  version: 0.1.0
  contact:
    name: LumenWipe
    url: https://lumenwipe.com
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
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: fee-bump
    description: Sponsored fees for reserve-locked accounts
  - name: config
    description: Served configuration
  - name: integrator
    description: Wallet-authenticated self-serve API key management
paths:
  /v1/{network}/close/status:
    get:
      tags:
        - close
      summary: Read how far an account is from closed, from live state.
      description: >-
        Stateless: nothing about a close is kept between calls. `remaining`
        covers what the ledger counts on the account, not claimable balances or
        DeFi positions. `closed` is informational and never proves that a
        particular close finished: confirm that by the transaction's hash.
      operationId: TransactionsController_status
      parameters:
        - name: source
          required: true
          in: query
          description: The account being closed.
          schema: {}
        - name: network
          required: true
          in: path
          schema:
            enum:
              - testnet
              - mainnet
            type: string
      responses:
        '200':
          description: >-
            The phase, and the remaining work for an account still on the
            ledger.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloseStatusResponseDto'
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
        '400':
          description: Invalid network or source account.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ErrorResponseDto'
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - invalid_network
                              - invalid_source
                              - unsupported_address_type
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ErrorResponseDto'
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - unauthorized
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
        '403':
          description: The API key is not scoped to this network.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ErrorResponseDto'
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - key_network_not_allowed
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
        '429':
          description: Rate limit exceeded for this key.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ErrorResponseDto'
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - rate_limited
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
        '503':
          description: The account could not be read. Retry.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ErrorResponseDto'
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - service_unavailable
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
      security:
        - api-key: []
components:
  schemas:
    CloseStatusResponseDto:
      type: object
      properties:
        source:
          type: string
          description: The account asked about.
        phase:
          type: string
          enum:
            - open
            - ready_to_merge
            - closed
            - unknown
          example: open
        remaining:
          description: Present while the account is on the ledger.
          allOf:
            - $ref: '#/components/schemas/CloseStatusRemainingDto'
      required:
        - source
        - phase
    ErrorResponseDto:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorBodyDto'
      required:
        - error
    CloseStatusRemainingDto:
      type: object
      properties:
        subentries:
          type: number
          example: 3
        sponsoring:
          type: number
          example: 0
        sponsored:
          type: number
          example: 0
      required:
        - subentries
        - sponsoring
        - sponsored
    ErrorBodyDto:
      type: object
      properties:
        code:
          type: string
          enum:
            - account_auth_immutable
            - account_not_found
            - account_read_failed
            - account_too_large
            - admin_api_not_configured
            - allowances_read_failed
            - api_key_not_found
            - aquarius_trustline_missing
            - backstop_emissions_unclaimed
            - backstop_token_unconvertible
            - backstop_withdrawal_cooling_down
            - backstop_withdrawal_not_queued
            - bad_request
            - blend_emissions_trustline_missing
            - blend_repay_asset_balance_unknown
            - blend_repay_asset_missing
            - claimable_balance_not_claimable_now
            - claimable_balance_reserve_short
            - claimable_balances_too_many
            - close_fee_balance_short
            - confirmation_timeout
            - contract_sign_in_unavailable
            - conversion_floor_missing
            - conversion_impact_not_acknowledged
            - conversion_provider_unrecognized
            - defi_exit_blocked
            - defi_exit_paused
            - defi_exit_unsupported
            - defi_position_unrecognized
            - defi_positions_blocked
            - defi_positions_stale
            - defi_positions_unavailable
            - destination_not_acknowledged
            - destination_read_failed
            - exchange_forward_paused
            - fee_bump_exceeds_cap
            - fee_bump_not_configured
            - fee_sponsorship_paused
            - forbidden
            - forward_amount_exceeds_balance
            - inner_fee_not_zero
            - integrator_api_not_configured
            - internal_error
            - invalid_address
            - invalid_addresses
            - invalid_body
            - invalid_challenge
            - invalid_decisions
            - invalid_destination
            - invalid_label
            - invalid_memo
            - invalid_network
            - invalid_networks
            - invalid_owner
            - invalid_plan_hash
            - invalid_rate_limit
            - invalid_request
            - invalid_signature
            - invalid_signed_xdr
            - invalid_source
            - invalid_spender
            - invalid_token
            - invalid_tokens
            - invalid_transaction_xdr
            - invalid_tx_hash
            - issuer_read_failed
            - issuer_supply_not_acknowledged
            - key_limit_reached
            - key_network_not_allowed
            - liquidity_pool_shares_held
            - mediator_key_misconfiguration
            - mediator_not_configured
            - memo_required
            - merge_destination_unusable
            - merged_account_not_found
            - missing_parameters
            - missing_transaction
            - needs_decisions
            - not_found
            - operation_not_sponsorable
            - owner_not_found
            - path_lookup_failed
            - payload_too_large
            - phoenix_trustline_missing
            - plan_failed
            - plan_superseded
            - provider_response_unusable
            - quote_drifted
            - rate_limited
            - registry_expired
            - request_failed
            - revoke_build_failed
            - revoke_needs_restore
            - revoke_simulation_failed
            - revoke_unsafe
            - route_lookup_unavailable
            - service_unavailable
            - signer_normalization_unsafe
            - soroban_token_conversion_failed
            - soroban_token_conversion_unavailable
            - soroban_token_conversion_unsafe
            - soroban_token_needs_restore
            - soroban_token_route_lost
            - soroban_token_transfer_failed
            - soroban_token_transfer_unsafe
            - soroban_token_unreadable
            - soroswap_trustline_missing
            - source_sequence_too_far
            - sponsor_source_unusable
            - sponsorship_budget_exhausted
            - sponsorship_claimable_balance_unrevocable
            - sponsorship_unaffordable
            - sponsorship_unenumerated
            - sponsorship_unverified
            - state_changed
            - stats_unavailable
            - subentries_unenumerated
            - submit_failed
            - submit_rejected
            - time_bounds_required
            - too_many_addresses
            - transaction_expired
            - transaction_structure_not_allowed
            - transactions_failed
            - transfer_destination_missing
            - transfer_destination_unusable
            - trustline_cannot_be_left
            - trustline_deauthorized_with_balance
            - trustline_maintain_liabilities_with_balance
            - tx_not_verified
            - unauthorized
            - unprocessable_entity
            - unsupported_address_type
            - unsupported_media_type
            - unsupported_memo_type
            - vault_undercollateralized
            - withdraw_before_repay
          description: Stable machine-readable code. Branch on this, never on the message.
        message:
          type: string
          description: Plain-language explanation. May be reworded.
        details:
          type: object
          description: Extra structured context, present only when there is more to say.
        requestId:
          type: string
          description: >-
            The id of this request, also returned in the x-request-id header.
            Quote it when reporting a problem.
      required:
        - code
        - message
  headers:
    RateLimit-Limit:
      description: Requests allowed in the current window for this API key (or client IP).
      schema:
        type: integer
    RateLimit-Remaining:
      description: Requests left in the current window.
      schema:
        type: integer
    RateLimit-Reset:
      description: >-
        Seconds until the window resets, or, on a 429, until the key is served
        again.
      schema:
        type: integer
    Retry-After:
      description: Seconds to wait before retrying. Sent on 429 and 503.
      schema:
        type: integer
  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.