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

# Co-sign the mediator forwarding payment of an exchange close.



## OpenAPI

````yaml /api-reference/openapi.json post /{network}/mediator/sign
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: health
    description: Service health
  - name: service
    description: Service index
  - name: admin
    description: Operator-only self-serve API key management
paths:
  /{network}/mediator/sign:
    post:
      tags:
        - mediator
      summary: Co-sign the mediator forwarding payment of an exchange close.
      operationId: MediatorController_sign
      parameters:
        - name: network
          required: true
          in: path
          schema:
            enum:
              - testnet
              - mainnet
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MediatorSignRequestDto'
      responses:
        '200':
          description: The transaction with the mediator signature added (base64 XDR).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediatorSignResponseDto'
        '400':
          description: Missing/invalid transaction or disallowed structure.
        '401':
          description: Missing or invalid API key.
        '429':
          description: Rate limit exceeded for this key.
        '503':
          description: Mediator flow not configured on this server.
      security:
        - api-key: []
components:
  schemas:
    MediatorSignRequestDto:
      type: object
      properties:
        transaction:
          type: string
          description: >-
            Unsigned atomic transaction (base64 XDR): op0 accountMerge into the
            mediator, op1 payment from the mediator to the destination.
          example: AAAAAgAAAAB...
      required:
        - transaction
    MediatorSignResponseDto:
      type: object
      properties:
        transaction:
          type: string
          description: The mediator-co-signed transaction envelope (base64 XDR).
          example: AAAAAgAAAAB...
      required:
        - transaction
  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.