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

# Register Transaction

> Register transactions for indexing. Mandatory for non EVM transactions.



## OpenAPI

````yaml /swap-api-reference/openapi.json post /registerTxs
openapi: 3.1.0
info:
  title: Swaps API
  description: >-
    The Swaps API provides instant cross-chain swap and bridge functionality for
    decentralized applications.

    It supports multiple virtual machines (EVM, Solana, Bitcoin) and various DEX
    protocols and bridge solutions.
  version: 3.0.0
  contact:
    name: Swaps.xyz
    url: https://swaps.xyz
servers:
  - url: https://api-v2.swaps.xyz/api
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /registerTxs:
    post:
      summary: Register Transaction
      description: Register transactions for indexing. Mandatory for non EVM transactions.
      operationId: registerTxs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - $ref: '#/components/schemas/TxRegistrationEvent'
                  title: Single Transaction
                - title: Multiple Transactions
                  type: array
                  items:
                    $ref: '#/components/schemas/TxRegistrationEvent'
      responses:
        '200':
          description: Transaction registration results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/post_200__webhooks_registerTxsSchema'
      servers:
        - url: https://api-v2.swaps.xyz/api
          description: Core Swap API server
components:
  schemas:
    TxRegistrationEvent:
      type: object
      properties:
        txId:
          type: string
          description: Unique transaction identifier
          example: '0x49b1d3d38176e45864fd55500c6c1879ab318609e1ed0c8eb9abd818e6c811fd'
        txHash:
          type: string
          pattern: ^0x[a-fA-F0-9]{64}$
          description: Transaction hash
          example: '0x62d0e13123852791446c6f923c2d0b9247bda10f1eb5eb48ff5b4bc42d22ab42'
      required:
        - txId
    post_200__webhooks_registerTxsSchema:
      type: array
      items:
        $ref: '#/components/schemas/ValidatedTxId'
    ValidatedTxId:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the transaction registration was successful
          example: true
        error:
          type: string
          nullable: true
          description: Error message if registration failed
          example: null
      required:
        - success
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Limited demo key for API Reference: `5c951bc81da566bbd030ba8e20724063`.'

````