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

# Swap işlemi oluştur (sabit çıkış)

> İstenen çıkış miktarı için serileştirilmiş swap işlemi oluşturur.
`/compute/swap-base-out` uç noktasından başarılı bir hesaplama yanıtı gerektirir.




## OpenAPI

````yaml /tr/api-reference/openapi/route-api-v2.yaml post /transaction/swap-base-out
openapi: 3.0.3
info:
  title: Raydium Transaction API (Route V2)
  version: 1.0.0
  description: >
    Solana için sunucu taraflı swap işlem oluşturucu. Bu API, istemcilerin RPC
    bağlantısı veya tam Raydium SDK'sı çalıştırmasına gerek kalmadan
    serileştirilmiş swap işlemleri üretir.


    Yanıtlar standart bir zarf formatını izler:

    - **Başarılı**: `{ id: string, success: true, data: {...} }`

    - **Hatalı**: `{ id: string, success: false, msg: string }`
  contact:
    name: Raydium
    url: https://raydium.io
servers:
  - url: https://transaction-v1.raydium.io
    description: Mainnet
  - url: https://transaction-v1-devnet.raydium.io
    description: Devnet
security: []
tags:
  - name: Compute
    description: >-
      Swap fiyat teklifi hesaplamaya yönelik salt okunur uç noktalar (işlem
      oluşturma yapılmaz).
  - name: Transaction
    description: İmzalanıp yayınlanmaya hazır serileştirilmiş swap işlemleri oluşturur.
paths:
  /transaction/swap-base-out:
    post:
      tags:
        - Transaction
      summary: Swap işlemi oluştur (sabit çıkış)
      description: >
        İstenen çıkış miktarı için serileştirilmiş swap işlemi oluşturur.

        `/compute/swap-base-out` uç noktasından başarılı bir hesaplama yanıtı
        gerektirir.
      operationId: buildSwapTransactionBaseOut
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BuildTransactionRequest'
      responses:
        '200':
          description: Serileştirilmiş işlem başarıyla oluşturuldu.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
        '400':
          description: Geçersiz istek gövdesi veya hesaplama durumu.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    BuildTransactionRequest:
      type: object
      required:
        - wallet
        - swapResponse
        - txVersion
        - computeUnitPriceMicroLamports
      properties:
        wallet:
          type: string
          description: İmzalayan cüzdan adresi (base58).
          example: '11111111111111111111111111111111'
        swapResponse:
          type: object
          description: Hesaplama uç noktasından dönen tam yanıt nesnesi.
          properties:
            id:
              type: string
            success:
              type: boolean
            version:
              type: string
            data:
              type: object
        txVersion:
          type: string
          enum:
            - V0
            - LEGACY
          description: Solana işlem sürümü.
          example: V0
        computeUnitPriceMicroLamports:
          type: string
          description: >-
            Mikro-lamport cinsinden hesaplama birimi fiyatı (öncelik ücretleri
            için).
          example: '1000'
        wrapSol:
          type: boolean
          description: Girdi yerel SOL ise SOL'ü sarmalayıp sarmalamayacağı.
          example: false
        unwrapSol:
          type: boolean
          description: Çıktıda WSOL'ün SOL'e açılıp açılmayacağı.
          example: false
        inputAccount:
          type: string
          description: >-
            Girdi için isteğe bağlı token hesabı adresi. SOL sarmalanmıyorsa
            zorunludur.
          example: TokenAccount1111111111111111111111111111111111
        outputAccount:
          type: string
          description: Çıktı için isteğe bağlı token hesabı adresi.
          example: TokenAccount2222222222222222222222222222222222
        jitoInfo:
          type: object
          description: MEV koruması için isteğe bağlı Jito bundle parametreleri.
          properties:
            address:
              type: string
              description: Jito bundle gönderim adresi.
            amount:
              type: string
              description: Lamport cinsinden bundle bahşiş miktarı.
        referrerWallet:
          type: string
          description: Ücret tahsilatı için isteğe bağlı referans cüzdan adresi.
          example: ReferrerWallet1111111111111111111111111111111111
    TransactionResponse:
      type: object
      properties:
        id:
          type: string
          description: Benzersiz istek tanımlayıcısı.
          example: 550e8400-e29b-41d4-a716-446655440000
        success:
          type: boolean
          description: İşlem oluşturmanın başarılı olup olmadığı.
          example: true
        version:
          type: string
          example: V1
        data:
          type: object
          description: İşlem verisi.
          properties:
            transaction:
              type: string
              description: Base64 kodlanmış sürümlü işlem (imzalamaya hazır).
            addressLookupTableAddresses:
              type: array
              description: Adres arama tablosu adresleri (txVersion=V0 ise).
              items:
                type: string
    ErrorResponse:
      type: object
      properties:
        id:
          type: string
          description: Benzersiz istek tanımlayıcısı.
        success:
          type: boolean
          example: false
        version:
          type: string
          example: V1
        msg:
          type: string
          description: Hata mesajı kodu (örn. REQ_SLIPPAGE_BPS_ERROR, REQ_WALLET_ERROR).

````