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

# Estimate a swap

> Indicative price for a route, no state created. Public. HyperCore source routes are unavailable until independent deposit verification is supported; HyperCore destinations remain supported.

**/v1/orchestration/estimate**


## OpenAPI

````yaml https://orchestration.flashnet.xyz/openapi.json GET /v1/orchestration/estimate
openapi: 3.1.0
info:
  title: Flashnet Orchestrator API
  version: 0.1.0
  description: >-
    Partner API for quotes, orders, standing deposits, webhooks, and affiliates.
    Operations marked x-excluded are omitted from the documentation navigation;
    internal, pay-link, SSE, and provider-integration routes are outside this
    registry.
servers:
  - url: https://orchestration.flashnet.xyz
security: []
tags:
  - name: Orchestration
    description: >-
      Routes, limits, estimates, quotes, orders, onramp, and ZeroConf decisions
      for one-off swaps.
  - name: Standing Deposit Addresses
    description: >-
      Permanent per-customer deposit addresses bound to one immutable conversion
      instruction.
  - name: Webhooks
    description: >-
      Registration of HTTPS endpoints for order status events and recovery
      events.
  - name: Affiliates
    description: Registered fee recipients, their accrued balances, and claims.
  - name: Accumulation Addresses
    description: >-
      Legacy reusable addresses that convert one source asset into Spark BTC or
      USDB.
  - name: Liquidations
    description: >-
      Legacy Bitcoin L1 deposit addresses that convert each output to a
      configured destination.
  - name: System
  - name: Explorer
  - name: Dashboard
  - name: Affiliate Dashboard
paths:
  /v1/orchestration/estimate:
    get:
      tags:
        - Orchestration
      summary: Estimate a swap
      description: >-
        Indicative price for a route, no state created. Public. HyperCore source
        routes are unavailable until independent deposit verification is
        supported; HyperCore destinations remain supported.
      operationId: getV1OrchestrationEstimate
      parameters:
        - schema:
            $ref: '#/components/schemas/Chain'
          required: true
          name: sourceChain
          in: query
        - schema:
            $ref: '#/components/schemas/SourceAssetInput'
          required: true
          description: >-
            An AssetInput, or a token address. A quote whose source is an
            unlisted token requires refundAddress: a deposit that cannot be sold
            is refunded in kind there.
          name: sourceAsset
          in: query
        - schema:
            $ref: '#/components/schemas/Chain'
          required: true
          name: destinationChain
          in: query
        - schema:
            $ref: '#/components/schemas/DestinationAssetInput'
          required: true
          description: >-
            An AssetInput, or a token address. An unlisted destination adds
            minAmountOut and fallback to the quote.
          name: destinationAsset
          in: query
        - schema:
            type: string
            pattern: ^[0-9]+$
          required: true
          name: amount
          in: query
        - schema:
            type: string
            enum:
              - exact_in
              - exact_out
          required: false
          name: amountMode
          in: query
        - schema:
            type: string
            enum:
              - variable
              - fixed
            description: >-
              Delivery mode; fixed requires exact_in and an eligible route with
              active partner terms. A route accepts fixed only where
              /v2/orchestration/routes reports fixedEligible (fixedTo); other
              routes return 400 fixed_delivery_unsupported_route. Fixed
              estimates are indicative; quotes validate exact-output
              affordability before returning deposit instructions. Fixed
              stablecoin routes to Solana USDC include recipient token-account
              creation costs upfront and preserve the quoted payout.
          required: false
          description: >-
            Delivery mode; fixed requires exact_in and an eligible route with
            active partner terms. A route accepts fixed only where
            /v2/orchestration/routes reports fixedEligible (fixedTo); other
            routes return 400 fixed_delivery_unsupported_route. Fixed estimates
            are indicative; quotes validate exact-output affordability before
            returning deposit instructions. Fixed stablecoin routes to Solana
            USDC include recipient token-account creation costs upfront and
            preserve the quoted payout.
          name: deliveryMode
          in: query
        - schema:
            type: string
            minLength: 1
            description: >-
              Destination recipient for validation and network costs; use the
              owner address for Solana tokens.
          required: false
          description: >-
            Destination recipient for validation and network costs; use the
            owner address for Solana tokens.
          name: recipientAddress
          in: query
        - schema:
            type: integer
            minimum: 0
            maximum: 1000
          required: false
          name: slippageBps
          in: query
        - schema:
            type: string
            enum:
              - legacy
              - specific
            description: >-
              Opt in to affiliate_not_found / affiliate_disabled for registered
              affiliate lookup failures. Omitted or legacy preserves
              invalid_request. HTTP 400 in either mode.
          required: false
          description: >-
            Opt in to affiliate_not_found / affiliate_disabled for registered
            affiliate lookup failures. Omitted or legacy preserves
            invalid_request. HTTP 400 in either mode.
          name: affiliateErrorMode
          in: query
        - schema:
            type: string
            enum:
              - default
              - shielded
            description: >-
              Shielded is native ZEC exact-in variable only. No account or
              provider deposit is allocated by estimates.
          required: false
          description: >-
            Shielded is native ZEC exact-in variable only. No account or
            provider deposit is allocated by estimates.
          name: sourcePaymentMode
          in: query
        - schema:
            type: string
            enum:
              - best_return
          required: false
          name: routing
          in: query
        - schema:
            type: string
            description: >-
              Shielded only: comma-separated near-intents and/or hyperunit,
              without duplicates.
          required: false
          description: >-
            Shielded only: comma-separated near-intents and/or hyperunit,
            without duplicates.
          name: allowedProviders
          in: query
        - schema:
            type: integer
            exclusiveMinimum: 0
            description: 'Shielded only: upper bound for eligible provider estimates.'
          required: false
          description: 'Shielded only: upper bound for eligible provider estimates.'
          name: maxEstimatedSettlementSeconds
          in: query
      responses:
        '200':
          description: Quote estimate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrchestrationEstimateResponse'
              examples:
                success:
                  summary: Estimate for 100000 sats
                  value:
                    amountMode: exact_in
                    estimatedOut: '99000000'
                    feeAmount: '500000'
                    roundingFeeAmount: '0'
                    totalFeeAmount: '500000'
                    feeBps: 50
                    feeAsset: USDC
                    route:
                      - BTC
                      - USDB
                      - USDC
                    source:
                      chain: bitcoin
                      asset: BTC
                      assetDisplayName: Bitcoin
                      assetDisplaySymbol: BTC
                      contractAddress: null
                      decimals: 8
                      chainId: null
                      chainDisplayName: Bitcoin
                      chainIcon: /btc.svg
                    destination:
                      chain: solana
                      asset: USDC
                      assetDisplayName: USDC
                      assetDisplaySymbol: USDC
                      contractAddress: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
                      decimals: 6
                      chainId: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
                      chainDisplayName: Solana
                      chainIcon: /chain-solana.svg
        '400':
          description: >-
            Invalid request, unsupported route, or input outside amount bounds
            (`amount_too_small` / `amount_too_large`). With
            affiliateErrorMode=specific, registered affiliate lookup failures
            return affiliate_not_found or affiliate_disabled. A source or
            destination named by token address can also return
            invalid_token_address, token_not_found, token_unsupported (including
            a Solana mint with refused extensions), token_blocked,
            insufficient_liquidity (no route reaches or leaves the token),
            unsupported_amount_mode (exact_out and fixed delivery),
            amount_too_large (the order cap, valued in the hub the token is
            swapped with), or route_unavailable (chain or account not enabled
            for that end).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Sanctioned address or cached screening block
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: >-
            Rate limited (`rate_limited`); see the [rate-limits
            guide](/api/rate-limits). Retry after Retry-After seconds when
            present (per-key limiter only), otherwise at X-RateLimit-Reset, an
            absolute epoch timestamp in milliseconds; both limiters also return
            X-RateLimit-Limit and X-RateLimit-Remaining.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: >-
            Token metadata could not be read from the chain
            (`token_metadata_unavailable`); retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - {}
        - bearerAuth: []
components:
  schemas:
    Chain:
      type: string
      enum:
        - arbitrum
        - arc
        - avalanche
        - base
        - bitcoin
        - bsc
        - ethereum
        - hedera
        - hypercore
        - hyperevm
        - lightning
        - litecoin
        - monad
        - monero
        - optimism
        - plasma
        - polygon
        - robinhood
        - sei
        - solana
        - spark
        - tempo
        - ton
        - tron
        - xrp
        - zcash
    SourceAssetInput:
      anyOf:
        - $ref: '#/components/schemas/Asset'
        - type: string
          enum:
            - TON
        - $ref: '#/components/schemas/RegistryAssetKey'
        - $ref: '#/components/schemas/TokenAddress'
      description: >-
        An AssetInput, or a token address. A quote whose source is an unlisted
        token requires refundAddress: a deposit that cannot be sold is refunded
        in kind there.
    DestinationAssetInput:
      anyOf:
        - $ref: '#/components/schemas/Asset'
        - type: string
          enum:
            - TON
        - $ref: '#/components/schemas/RegistryAssetKey'
        - $ref: '#/components/schemas/TokenAddress'
      description: >-
        An AssetInput, or a token address. An unlisted destination adds
        minAmountOut and fallback to the quote.
    OrchestrationEstimateResponse:
      type: object
      properties:
        sourcePaymentMode:
          type: string
          enum:
            - shielded
        priceValidUntil:
          type: string
          format: date-time
          description: >-
            Two-minute indicative pricing deadline. Execution reprices after
            verified receipt and must preserve lockedMinAmountOut.
        execution:
          $ref: '#/components/schemas/ShieldedExecution'
        amountMode:
          type: string
          enum:
            - exact_in
            - exact_out
        targetAmountOut:
          type: string
        requiredAmountIn:
          type: string
        maxAcceptedAmountIn:
          type: string
        inputBufferBps:
          type: integer
        deliveryMode:
          type: string
          enum:
            - fixed
        estimatedOut:
          type: string
        feeAmount:
          type: string
        roundingFeeAmount:
          type: string
        feeBps:
          type: integer
        totalFeeAmount:
          type: string
        networkCostAmount:
          type: string
          description: Quoted network cost in smallest units of networkCostAsset.
        networkCostAsset:
          type: string
          description: Asset used to pay the quoted network cost.
        networkCostRequired:
          type: boolean
          description: Whether the quoted network cost must be paid.
        networkCosts:
          type: array
          items:
            $ref: '#/components/schemas/OrchestrationNetworkCost'
          description: Itemized network costs and quote-time assumptions.
        appFeeAmount:
          type: string
        appFeePlatformCutAmount:
          type: string
        appFees:
          type: array
          items:
            $ref: '#/components/schemas/OrchestrationAppFeeQuote'
        feeAsset:
          type: string
        feeAssetDetails:
          $ref: '#/components/schemas/PublicAssetDetails'
        feeAmountUsd:
          type: string
        totalFeeAmountUsd:
          type: string
        route:
          type: array
          items:
            type: string
        minAmountOut:
          type: string
          description: >-
            Unlisted destinations only: the least amount of the token, in its
            smallest units, the recipient receives when the swap succeeds.
            Enforced on chain at the recipient.
        fallback:
          $ref: '#/components/schemas/UnlistedFallback'
        source:
          $ref: '#/components/schemas/PublicAssetDetails'
        destination:
          $ref: '#/components/schemas/PublicAssetDetails'
      required:
        - estimatedOut
        - feeAmount
        - feeBps
        - feeAsset
        - route
        - source
        - destination
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      additionalProperties: false
    Asset:
      type: string
      enum:
        - AAPL
        - AI
        - AMD
        - AMZN
        - BNB
        - BONER
        - BTC
        - CASHCAT
        - COIN
        - COST
        - DAI
        - DELTA
        - DJT
        - ETH
        - GLD
        - GME
        - GOOGL
        - GRAM
        - HIMS
        - HSUSD
        - HYPE
        - IF
        - LTC
        - META
        - MON
        - MSFT
        - MSTR
        - MU
        - NVDA
        - OUSD
        - PIPEDOG
        - PLTR
        - POL
        - PONS
        - PYUSD
        - PathUSD
        - QQQ
        - RDDT
        - SHX
        - SKHY
        - SLV
        - SNDK
        - SOL
        - SPCX
        - SPY
        - STONKBROKER
        - TENDIES
        - TRX
        - TSLA
        - TSM
        - UP
        - USDB
        - USDC
        - USDC.e
        - USDG
        - USDT
        - USDe
        - USD₮0
        - USO
        - WBNB
        - WBTC
        - WEN
        - XMR
        - XO
        - XPL
        - XRP
        - ZEC
        - cbBTC
        - tBTC
      description: >-
        Legacy asset symbol. OUSD identifies Open Standard Open USD issued by
        Bridge, not Origin Dollar. Use route discovery for supported chains and
        directions.
    RegistryAssetKey:
      type: string
      minLength: 1
      maxLength: 96
      pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$
      description: >-
        Routing key of an asset served from the shared asset registry, as
        advertised by GET /v2/orchestration/routes (for example asset_<sha256>).
        Accepted only while the registry serves the asset; any other value fails
        validation.
    TokenAddress:
      type: string
      pattern: ^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$
      description: >-
        A token named by its on-chain address: an ERC-20 contract on an EVM
        chain (lowercase or EIP-55 checksummed, for example
        0x6982508145454ce325ddbe47a25d4ec3d2311933), or an SPL mint on solana
        (base58, case-sensitive and kept exactly, for example
        DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263). An address the registry
        lists is served as that asset; any other is an unlisted token, admitted
        per partner and per end on chains listed in tokenSupport of GET
        /v2/orchestration/routes. Unlisted tokens support exact_in with variable
        delivery only.
    ShieldedExecution:
      type: object
      properties:
        policy:
          $ref: '#/components/schemas/ShieldedExecutionPolicy'
        quotedProvider:
          type: string
          enum:
            - near-intents
            - hyperunit
        eligibleProviders:
          type: array
          items:
            type: string
            enum:
              - near-intents
              - hyperunit
          minItems: 1
          maxItems: 2
        estimatedSettlementSeconds:
          type: integer
          exclusiveMinimum: 0
        providerLocked:
          type: boolean
          enum:
            - false
      required:
        - policy
        - quotedProvider
        - eligibleProviders
        - estimatedSettlementSeconds
        - providerLocked
      additionalProperties: false
    OrchestrationNetworkCost:
      oneOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - solana_associated_token_account
            nativeAmount:
              type: string
            nativeAsset:
              type: string
              enum:
                - SOL
            amount:
              type: string
            asset:
              type: string
            assumption:
              type: string
              enum:
                - assumed_missing
                - observed_missing
                - observed_exists
          required:
            - type
            - nativeAmount
            - nativeAsset
            - amount
            - asset
            - assumption
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - solana_mayan_order_accounts
            nativeAmount:
              type: string
            nativeAsset:
              type: string
              enum:
                - SOL
            amount:
              type: string
            asset:
              type: string
              enum:
                - USDC
          required:
            - type
            - nativeAmount
            - nativeAsset
            - amount
            - asset
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - tron_execution
            nativeAmount:
              type: string
            nativeAsset:
              type: string
              enum:
                - TRX
            amount:
              type: string
            asset:
              type: string
              enum:
                - TRX
          required:
            - type
            - nativeAmount
            - nativeAsset
            - amount
            - asset
          additionalProperties: false
    OrchestrationAppFeeQuote:
      type: object
      properties:
        affiliateId:
          type: string
        recipient:
          type: string
          minLength: 1
        feeBps:
          type: integer
          minimum: 1
          maximum: 9999
        amount:
          type: string
        platformCutAmount:
          type: string
        recipientAmount:
          type: string
      required:
        - recipient
        - feeBps
        - amount
        - platformCutAmount
        - recipientAmount
      additionalProperties: false
    PublicAssetDetails:
      type: object
      properties:
        chain:
          $ref: '#/components/schemas/Chain'
        asset:
          type: string
        assetDisplayName:
          type: string
        assetDisplaySymbol:
          type: string
        contractAddress:
          type:
            - string
            - 'null'
        decimals:
          type: integer
        tokenProgram:
          type: string
          enum:
            - erc20
            - spl
            - token-2022
        reviewedIdentity:
          $ref: '#/components/schemas/ReviewedAssetIdentity'
        chainId:
          type:
            - string
            - 'null'
        chainDisplayName:
          type: string
        chainIcon:
          type:
            - string
            - 'null'
        assetIcon:
          type: string
          format: uri
          description: >-
            Absolute https logo URL served from the asset registry. Absent when
            the asset has no registry logo; clients keep their bundled artwork.
        listing:
          type: string
          enum:
            - listed
            - unlisted
          description: >-
            unlisted for a source or destination named by a token address the
            asset registry does not list; absent means listed. Unlisted details
            come from the token contract or mint and are display data only;
            asset and contractAddress are the canonical address, and a Solana
            mint carries tokenProgram.
      required:
        - chain
        - asset
        - assetDisplayName
        - assetDisplaySymbol
        - contractAddress
        - decimals
        - chainId
        - chainDisplayName
        - chainIcon
      additionalProperties: false
    UnlistedFallback:
      type: object
      properties:
        chain:
          $ref: '#/components/schemas/Chain'
        asset:
          type: string
          description: Hub asset delivered instead of the token.
        minAmount:
          type: string
          description: >-
            Least amount of the hub the recipient receives, in its smallest
            units.
      required:
        - chain
        - asset
        - minAmount
      additionalProperties: false
      description: >-
        Unlisted destinations only: what the recipient receives if the swap into
        the token cannot deliver minAmountOut.
    ErrorDetail:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      additionalProperties: false
    ShieldedExecutionPolicy:
      type: object
      properties:
        routing:
          type: string
          enum:
            - best_return
        allowedProviders:
          type: array
          items:
            type: string
            enum:
              - near-intents
              - hyperunit
          minItems: 1
          maxItems: 2
        maxEstimatedSettlementSeconds:
          type: integer
          exclusiveMinimum: 0
          minimum: -9007199254740991
          maximum: 9007199254740991
      additionalProperties: false
    ReviewedAssetIdentity:
      type: object
      properties:
        version:
          type: number
          enum:
            - 1
        catalogVersion:
          type: string
          pattern: ^sha256:[0-9a-f]{64}$
        chain:
          type: string
          enum:
            - solana
            - ethereum
            - bsc
            - arbitrum
        asset:
          type: string
          minLength: 1
          maxLength: 32
        address:
          type: string
          minLength: 32
          maxLength: 44
        decimals:
          type: integer
          minimum: 0
          maximum: 255
        tokenProgram:
          type: string
          enum:
            - erc20
            - spl
            - token-2022
        mechanic:
          type: string
          enum:
            - standard
            - scaled-ui
            - rebasing
            - accumulating
        mechanicHash:
          type: string
          pattern: ^sha256:[0-9a-f]{64}$
      required:
        - version
        - catalogVersion
        - chain
        - asset
        - address
        - decimals
        - tokenProgram
        - mechanic
        - mechanicHash
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Partner API key in the form `Authorization: Bearer fn_...`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.