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

# Preview a bridge quote before depositing

> Returns the fees and expected output for bridging `amount` of `sourceToken` from `sourceChainId` to the account's registered target, before any funds are deposited. The orchestrator quotes against the supplied amount as if the deposit wallet already held it; the result is indicative and may differ from the quote applied once a real deposit lands. EVM source chains only. Scoped to the caller's tenant.



## OpenAPI

````yaml https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /quotes/preview
openapi: 3.1.0
info:
  title: Deposit Service API
  version: 1.0.0
  description: >-
    Cross-chain deposit processing service with automatic token bridging and gas
    sponsorship
servers:
  - url: https://v1.orchestrator.rhinestone.dev/deposit-processor
security: []
paths:
  /quotes/preview:
    post:
      tags:
        - Processing
      summary: Preview a bridge quote before depositing
      description: >-
        Returns the fees and expected output for bridging `amount` of
        `sourceToken` from `sourceChainId` to the account's registered target,
        before any funds are deposited. The orchestrator quotes against the
        supplied amount as if the deposit wallet already held it; the result is
        indicative and may differ from the quote applied once a real deposit
        lands. EVM source chains only. Scoped to the caller's tenant.
      parameters:
        - schema:
            type: string
            description: API key for authentication (omit when sending Authorization)
            example: your-api-key
          required: false
          description: API key for authentication (omit when sending Authorization)
          name: x-api-key
          in: header
        - schema:
            type: string
            description: >-
              Bearer platform token (e.g. forwarded by user-service). Takes
              precedence over `x-api-key` when both are present.
            example: Bearer eyJhbGciOi...
          required: false
          description: >-
            Bearer platform token (e.g. forwarded by user-service). Takes
            precedence over `x-api-key` when both are present.
          name: authorization
          in: header
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuotePreviewRequest'
      responses:
        '200':
          description: Indicative quote for the requested route
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuotePreviewResponse'
        '400':
          description: Malformed request body or unsupported source chain
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing/invalid API key or expired platform bearer token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: API key lacks required deposits scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Account not found or not owned by the caller
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: >-
            Route cannot be quoted (token/amount not allowed by the client
            whitelist, unsupported token route, no session for the source chain,
            or no available routes)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    QuotePreviewRequest:
      type: object
      properties:
        account:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
          description: Ethereum address (0x followed by 40 hex characters)
          example: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91'
        sourceChainId:
          type: string
          pattern: ^[a-z0-9]+:[a-zA-Z0-9]+$
          description: CAIP-2 chain identifier (e.g. "eip155:8453")
          example: eip155:8453
        sourceToken:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
          description: Ethereum address (0x followed by 40 hex characters)
          example: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91'
        amount:
          type: string
          pattern: ^\d+$
          description: Numeric string representing a bigint value
          example: '1000000000000000000'
      required:
        - account
        - sourceChainId
        - sourceToken
        - amount
    QuotePreviewResponse:
      type: object
      properties:
        settlementLayer:
          type: string
        expiresAt:
          type: integer
        estimatedFillTimeSeconds:
          type: integer
          minimum: 0
        fees:
          type: object
          properties:
            totalUsd:
              type: number
            breakdown:
              type: object
              properties:
                gasUsd:
                  type: number
                bridgeUsd:
                  type: number
                swapUsd:
                  type: number
              required:
                - gasUsd
                - bridgeUsd
                - swapUsd
          required:
            - totalUsd
            - breakdown
        output:
          type: object
          properties:
            token:
              type: string
            amount:
              type: string
            symbol:
              type:
                - string
                - 'null'
            decimals:
              type:
                - integer
                - 'null'
          required:
            - token
            - amount
            - symbol
            - decimals
      required:
        - settlementLayer
        - expiresAt
        - estimatedFillTimeSeconds
        - fees
        - output
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        details:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
              path:
                type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
              code:
                type: string
            required:
              - message
      required:
        - error

````