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

# Check route liquidity for an amount

> Returns whether the given source→destination route can fulfil the requested amount, along with the underlying liquidity metadata from the orchestrator.



## OpenAPI

````yaml https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /liquidity
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:
  /liquidity:
    get:
      tags:
        - Utilities
      summary: Check route liquidity for an amount
      description: >-
        Returns whether the given source→destination route can fulfil the
        requested amount, along with the underlying liquidity metadata from the
        orchestrator.
      parameters:
        - schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
            description: Source chain ID (EVM chain ID)
            example: 1
          required: true
          description: Source chain ID (EVM chain ID)
          name: sourceChainId
          in: query
        - schema:
            type: string
            pattern: ^0x[a-fA-F0-9]{40}$
            description: Source token address
            example: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
          required: true
          description: Source token address
          name: sourceToken
          in: query
        - schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
            description: Destination chain ID (EVM chain ID)
            example: 8453
          required: true
          description: Destination chain ID (EVM chain ID)
          name: destinationChainId
          in: query
        - schema:
            type: string
            pattern: ^0x[a-fA-F0-9]{40}$
            description: Destination token address
            example: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
          required: true
          description: Destination token address
          name: destinationToken
          in: query
        - schema:
            type: string
            pattern: ^\d+$
            description: Deposit amount in raw source-token units (integer string)
            example: '1000000'
          required: true
          description: Deposit amount in raw source-token units (integer string)
          name: amount
          in: query
        - schema:
            type: string
            description: API key for authentication
            example: your-api-key
          required: true
          description: API key for authentication
          name: x-api-key
          in: header
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}\.[a-z0-9]+$
            description: >-
              API version identifier (e.g. "2026-04.amazon"). Optional today,
              will become required in a future release.
            example: 2026-04.amazon
          required: false
          description: >-
            API version identifier (e.g. "2026-04.amazon"). Optional today, will
            become required in a future release.
          name: x-api-version
          in: header
      responses:
        '200':
          description: Liquidity information for the requested route
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LiquidityResponse'
        '400':
          description: Invalid request parameters or unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Invalid liquidity response from orchestrator
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    LiquidityResponse:
      type: object
      properties:
        hasLiquidity:
          type: boolean
        symbol:
          type: string
        decimals:
          type: number
        unlimited:
          type: boolean
        maxAmount:
          type: string
          nullable: true
      required:
        - hasLiquidity
        - symbol
        - decimals
        - unlimited
        - maxAmount
    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

````