> ## 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 teklifi hesapla (sabit giriş)

> Sabit bir giriş miktarı için beklenen çıkış miktarını hesaplar.
İşlem oluşturmadan önce önizleme göstermek için kullanışlıdır.




## OpenAPI

````yaml /tr/api-reference/openapi/route-api-v2.yaml get /compute/swap-base-in
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:
  /compute/swap-base-in:
    get:
      tags:
        - Compute
      summary: Swap teklifi hesapla (sabit giriş)
      description: |
        Sabit bir giriş miktarı için beklenen çıkış miktarını hesaplar.
        İşlem oluşturmadan önce önizleme göstermek için kullanışlıdır.
      operationId: computeSwapBaseIn
      parameters:
        - name: inputMint
          in: query
          required: true
          schema:
            type: string
          description: Giriş token'ının mint adresi (base58 kodlu public key).
          example: EPjFWdd5Au5WrWSNY8jk5oHE3TkM3TvhEhBNj9xtJzwQ
        - name: outputMint
          in: query
          required: true
          schema:
            type: string
          description: Çıkış token'ının mint adresi (base58 kodlu public key).
          example: So11111111111111111111111111111111111111112
        - name: amount
          in: query
          required: true
          schema:
            type: string
          description: >-
            Lamport cinsinden giriş miktarı (SPL token'larının en küçük birimi).
            Negatif olmayan bir tamsayı string'i olmalıdır.
          example: '1000000'
        - name: slippageBps
          in: query
          required: true
          schema:
            type: string
          description: >-
            Baz puan cinsinden maksimum slippage toleransı (0–10000). 1 bps =
            %0,01.
          example: '50'
        - name: referrerBps
          in: query
          required: false
          schema:
            type: string
          description: >-
            İsteğe bağlı yönlendirici ücreti, baz puan cinsinden (0–10000).
            Yalnızca bir yönlendirici yetkiliniz varsa kullanılır.
          example: '100'
        - name: txVersion
          in: query
          required: true
          schema:
            type: string
            enum:
              - V0
              - LEGACY
          description: >-
            Solana işlem versiyonu. V0, adres arama tablolarını kullanır; LEGACY
            ise geleneksel formattır.
          example: V0
      responses:
        '200':
          description: Swap teklifi başarıyla hesaplandı.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComputeSwapResponse'
        '400':
          description: Geçersiz giriş parametreleri.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ComputeSwapResponse:
      type: object
      properties:
        id:
          type: string
          description: Benzersiz istek tanımlayıcısı (UUID).
          example: 550e8400-e29b-41d4-a716-446655440000
        success:
          type: boolean
          description: Hesaplamanın başarılı olup olmadığı.
          example: true
        version:
          type: string
          description: API yanıt versiyonu.
          example: V1
        data:
          type: object
          description: Swap hesaplama sonucu.
          properties:
            inputAmount:
              type: string
              description: En küçük birim cinsinden giriş miktarı.
            outputAmount:
              type: string
              description: Beklenen çıkış miktarı (slippage göz önünde bulundurularak).
            priceImpact:
              type: string
              description: Fiyat etkisi yüzdesi (örn. %0,5 için "0.5").
            routes:
              type: array
              description: Kullanılan swap rotaları ve pool'ların dizisi.
              items:
                type: object
    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).

````