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

> ## Agent Instructions
> To quote bridges and swaps, look up chains and tokens, or track Relay transactions from an agent, use the Relay MCP server: `npx -y @relayprotocol/relay-mcp`. It is read-only and does not sign or broadcast transactions. Setup: https://docs.relay.link/resources/developing-with-ai.md
> For Relay Protocol's trust model, security architecture, and audits, see https://docs.relay.link/references/protocol/security.md. For address screening, see https://docs.relay.link/security/transaction-screening.md.

# Get Quote

> This API returns an executable quote for swapping, bridging and calling

> [!NOTE]
>
> `POST /quote/v3` requires an API key or access token on every request. Pass it as described in [API keys and Rate Limits](https://docs.relay.link/references/api/api-keys.md#how-to-use-an-api-key). Upgrading from `/quote`, `/quote/v2`, or `/price`? See the [migration guide](https://docs.relay.link/references/api/api_guides/migrating-to-quote-v3.md).


## OpenAPI

````yaml post /quote/v3
openapi: 3.0.3
info:
  title: Cross-chain solver
  version: 1.0.0
servers:
  - url: https://api.relay.link
    description: Mainnet API
  - url: https://api.testnets.relay.link
    description: Testnet API
security: []
paths:
  /quote/v3:
    post:
      parameters:
        - schema:
            type: string
          in: header
          name: x-api-key
          required: false
          description: >-
            API key. Alternatively, authenticate with an API session bearer
            token.
        - schema:
            type: string
          in: header
          name: authorization
          required: false
          description: API session bearer token.
      requestBody:
        content:
          application/json:
            schema:
              properties:
                user:
                  type: string
                  description: >-
                    Address that is depositing funds on the origin chain and
                    submitting transactions or signatures
                  example: '0x03508bb71268bba25ecacc8f620e01866650532c'
                recipient:
                  type: string
                  description: >-
                    Address that is receiving the funds on the destination
                    chain, if not specified then this will default to the user
                    address
                originChainId:
                  type: number
                  example: 8453
                destinationChainId:
                  type: number
                  example: 10
                originCurrency:
                  type: string
                  example: '0x0000000000000000000000000000000000000000'
                destinationCurrency:
                  type: string
                  example: '0x0000000000000000000000000000000000000000'
                preferredSolverFillCurrency:
                  type: string
                  description: >-
                    Preferred solver fill currency address on the destination
                    chain. Falls back to default routing when the preference is
                    not routeable.
                preferredSolverDepositCurrency:
                  type: string
                  description: >-
                    Preferred solver deposit currency address on the origin
                    chain. Falls back to default routing when the preference is
                    not routeable.
                amount:
                  type: string
                  pattern: ^[0-9]+$
                  description: >-
                    Amount to swap as the base amount (can be switched to exact
                    input/output using the dedicated flag), denoted in the
                    smallest unit of the specified currency (e.g., wei for ETH)
                  example: '1000000000000000000'
                tradeType:
                  type: string
                  description: >-
                    Whether to use the amount as the output or the input for the
                    basis of the swap
                  enum:
                    - EXACT_INPUT
                    - EXACT_OUTPUT
                    - EXPECTED_OUTPUT
                  example: EXACT_INPUT
                txs:
                  type: array
                  items:
                    type: object
                    additionalProperties: false
                    properties:
                      to:
                        type: string
                        pattern: ^0x[a-fA-F0-9]{40}$
                      value:
                        type: string
                      data:
                        type: string
                        pattern: ^0x[a-fA-F0-9]*$
                      originalTxValue:
                        type: string
                    required:
                      - to
                      - data
                      - value
                txsGasLimit:
                  type: number
                  description: Total gas limit for the destination chain call transactions
                authorizationList:
                  type: array
                  items:
                    type: object
                    additionalProperties: false
                    properties:
                      chainId:
                        type: number
                      address:
                        type: string
                        pattern: ^0x[a-fA-F0-9]{40}$
                      nonce:
                        type: number
                      yParity:
                        type: number
                      r:
                        type: string
                      s:
                        type: string
                    required:
                      - chainId
                      - address
                      - nonce
                      - yParity
                      - r
                      - s
                  description: >-
                    Authorization list for EIP-7702 transactions to be executed
                    on destination chain
                additionalData:
                  type: object
                  additionalProperties: false
                  description: Additional data needed for specific routes
                  properties:
                    userPublicKey:
                      type: string
                      description: >-
                        If the request originates from Bitcoin and the user is a
                        P2SH address, the public key is needed to be able to
                        generate the transaction data
                referrer:
                  type: string
                referrerAddress:
                  type: string
                  pattern: ^0x[a-fA-F0-9]{40}$
                refundTo:
                  type: string
                  description: >-
                    Address to send the refund to in the case of failure, if not
                    specified then the recipient address or user address is used
                recoveryAddress:
                  type: string
                  description: >-
                    Origin-chain address used for deposit-address fund recovery.
                    Requires useDepositAddress=true.
                refundOnOrigin:
                  type: boolean
                  description: Always refund on the origin chain in case of any issues
                  deprecated: true
                topupGas:
                  type: boolean
                  description: >-
                    If set, the destination fill will include a gas topup to the
                    recipient (only supported for EVM chains if the requested
                    currency is not the gas currency on the destination chain)
                topupGasAmount:
                  type: string
                  description: >-
                    The destination gas topup amount in USD with 6 decimal
                    places, e.g. 100000 = $0.10 and 1000000 = $1. Ignored unless
                    topupGas is true. Defaults to 2000000 ($2).
                enableTrueExactOutput:
                  type: boolean
                  default: false
                  description: >-
                    Enabling will send any swap surplus when doing exact output
                    operations to the solver EOA, otherwise it will be swept to
                    the recipient
                explicitDeposit:
                  type: boolean
                  default: true
                  description: >-
                    Enable this to avoid direct transfers to the depository
                    (only relevant for EVM and v2 protocol flow)
                usePermit:
                  type: boolean
                  description: >-
                    Enable this to use permit (eip3009) when bridging, only
                    works on supported currency such as usdc
                permitExpiry:
                  type: number
                  description: >-
                    How long the permit remains valid, in seconds: an integer
                    from 60 to 86399, or 0 for the default of 600 (10 minutes),
                    which also applies when omitted. Use at least 120, since
                    some permits take several minutes to land.
                useMulticallAuthorization:
                  type: boolean
                  description: >-
                    Opt into the two signature EIP-3009 permit flow of approval
                    proxy 3.1+. The authorize step then starts with a
                    MulticallAuthorization signature item (posted to
                    /execute/permits with kind multicall-authorization, no
                    status check) followed by the EIP-3009 authorization item.
                    Without it, EIP-3009 permits keep the single signature flow
                    on the chain's 3.0 contracts.
                includeProtocolData:
                  type: boolean
                  description: >-
                    Return protocol data for on-chain intent validation. This
                    includes protocol.v2.orderSignature and may increase quote
                    latency.
                swapContractsVersion:
                  type: string
                  enum:
                    - v3
                    - v3.2
                  description: >-
                    Require exact swap contracts on each EVM leg, overriding the
                    App pin. v3 means 3.0. Unavailable versions and incompatible
                    permit flows return 400 instead of falling back. Only
                    supported for swap execution kinds.
                useDepositAddress:
                  type: boolean
                  description: >-
                    Use a deposit address when calldata cannot be sent with the
                    origin transaction. In /quote/v2, creation follows the
                    requested trade type.
                strict:
                  type: boolean
                  description: >-
                    Makes the deposit address one-time use. On /quote/v2,
                    EXACT_OUTPUT addresses are always one-time use.
                slippageTolerance:
                  type: string
                  pattern: ^([0-9]{1,4}|10000)$
                  description: >-
                    Slippage tolerance for the swap, if not specified then the
                    slippage tolerance is automatically calculated to avoid
                    front-running. This value is in basis points (1/100th of a
                    percent), e.g. 50 for 0.5% slippage. Must be 0–10000 bps.
                latePaymentSlippageTolerance:
                  type: string
                  pattern: ^([0-9]{1,4}|10000)$
                  description: >-
                    Slippage tolerance for destination gas in the event that the
                    deposit occurs after the order deadline, and more gas is
                    required for the solver to execute the destination
                    transaction. Must be 0–10000 bps.
                appFees:
                  type: array
                  items:
                    type: object
                    additionalProperties: false
                    required:
                      - fee
                    properties:
                      recipient:
                        type: string
                        description: Address that will receive the app fee
                      fee:
                        type: string
                        pattern: ^[0-9]*\.?[0-9]+$
                        description: >-
                          App fees to be charged for execution in basis points,
                          e.g. 100 = 1%
                    description: App fees to be charged for execution
                gasLimitForDepositSpecifiedTxs:
                  type: number
                  description: >-
                    If the request involves specifying transactions to be
                    executed during the deposit transaction, an explicit gas
                    limit must be set when requesting the quote
                forceSolverExecution:
                  type: boolean
                  description: >-
                    Force executing swap requests via the solver (by default,
                    same-chain swap requests are self-executed)
                subsidizeFees:
                  type: boolean
                  description: >-
                    If the sponsor should pay for the fees associated with the
                    request. Includes gas topup amounts.
                sponsoredFeeComponents:
                  type: array
                  items:
                    type: string
                    enum:
                      - execution
                      - swap
                      - platform
                      - app
                      - rent
                  minItems: 1
                  uniqueItems: true
                  description: >-
                    The fee components to sponsor for swap execution kinds.
                    Requires subsidizeFees=true. Defaults to execution, swap,
                    platform, and app when omitted; rent remains user-paid
                    unless explicitly selected. Use platform, not the legacy
                    relay name.
                maxSubsidizationAmount:
                  type: string
                  pattern: ^[0-9]+$
                  description: >-
                    The max subsidization amount in USDC decimal format, e.g
                    1000000 = $1. subsidizeFees must be enabled. The sponsor
                    will cover fees up to this cap and the user pays any
                    remainder.
                subsidizationBps:
                  type: integer
                  minimum: 0
                  maximum: 10000
                  description: >-
                    The share of each sponsored fee component the sponsor
                    covers, in bps, e.g 10000 = 100% and 2500 = 25%.
                    subsidizeFees must be enabled. Defaults to full coverage
                    when omitted; the user pays the remainder. Applied before
                    maxSubsidizationAmount, which still caps the sponsor's
                    total.
                subsidizeRent:
                  type: boolean
                  deprecated: true
                  description: >-
                    Deprecated compatibility alias that adds "rent" to
                    sponsoredFeeComponents. When true, requires
                    subsidizeFees=true.
                includedSwapSources:
                  type: array
                  items:
                    type: string
                  description: Swap sources to include for swap routing.
                excludedSwapSources:
                  type: array
                  items:
                    type: string
                  description: Swap sources to exclude for swap routing.
                includedOriginSwapSources:
                  type: array
                  items:
                    type: string
                  description: Swap sources to include for swap routing on origin.
                includedDestinationSwapSources:
                  type: array
                  items:
                    type: string
                  description: Swap sources to include for swap routing on destination.
                originGasOverhead:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                  description: >-
                    The gas overhead for the origin chain, this is used to
                    calculate the gas fee for the origin chain when the solver
                    is executing a gasless transaction on the origin chain
                depositFeePayer:
                  type: string
                  description: >-
                    The payer to be set for deposit transactions on solana. This
                    account must have enough for fees and rent.
                maxRouteLength:
                  type: number
                  description: >-
                    Maximum number of hops to use in solana swap routing. Can
                    reduce transaction size.
                useSharedAccounts:
                  type: boolean
                  description: Prevents certain ATA creation instructions in solana routing
                forJitoBundle:
                  type: boolean
                  description: >-
                    Restricts solana swap routing to routes that are compatible
                    with Jito bundles. Only set this when the swap will be
                    executed inside a Jito bundle.
                includeComputeUnitLimit:
                  type: boolean
                  description: >-
                    Whether to include compute unit limit instruction for solana
                    origin requests.
                useV1Transaction:
                  type: boolean
                  description: >-
                    Whether to return the solana deposit transaction in the v1
                    (SIMD-0385) format: no lookup tables, a 4096 byte limit, and
                    the compute budget in `transactionConfig`. Best effort; the
                    returned step data sets `transactionVersion` to 1 when
                    honored.
                overridePriceImpact:
                  type: boolean
                  description: Whether to ignore price impact errors.
                disableSwapProviderPreference:
                  type: boolean
                  description: Whether to disable preferred swap provider selection.
                disableOriginSwaps:
                  type: boolean
                  description: Whether to disable origin swaps.
                indicativeQuote:
                  type: boolean
                  description: >-
                    Whether to return an inexecutable quote meant to be used as
                    a preview.
                fixedRate:
                  type: string
                  description: >-
                    The rate to quote at, as 'input:output' (for example
                    '1:0.9996'). Requires an API key or referrer. Applied only
                    on routes that support fixed-rate quotes, where an API key
                    that is not enabled for them is rejected. A quote that is
                    not priced at this rate still succeeds and warnings contains
                    FIXED_RATE_NOT_APPLIED.
                referencePrice:
                  type: string
                  description: >-
                    Requester-provided price (output units per input unit, human
                    units) to compare router quotes against. When
                    fastestInPriceRange is enabled for the API key,
                    destination-leg quotes more than 20% below it are skipped.
                    When useRouteRacingOnOrigin is set, it anchors origin swap
                    route selection: routes priced within a fixed band of it
                    (20% below to 50% above) are preferred, and the best route
                    overall is used when none is in the band. The selected route
                    alone sets the expected and minimum output (with
                    slippageTolerance applied to it); the reference price never
                    sets a floor. Expects a positive decimal string such as
                    "0.000131" (scientific notation is not parsed). Deliberately
                    unconstrained by a schema pattern: a malformed or
                    non-positive value, or one sent by a key without the
                    relevant grant, is ignored and the quote is served without a
                    reference price rather than rejected.
                useRouteRacing:
                  type: boolean
                  description: >-
                    Whether to use route racing for this quote (executing
                    multiple candidate routes on-chain and keeping the best),
                    when the API key is authorized for it.
                routeRacingMinUsdSize:
                  type: number
                  description: >-
                    Minimum fill size in USD eligible for route racing. Defaults
                    to 100. Route racing has no maximum fill size.
                useRouteRacingOnOrigin:
                  type: boolean
                  description: >-
                    Whether to use route racing for this quote's origin swap
                    (executing multiple candidate routes on-chain and keeping
                    the best), when the API key is authorized for it and the
                    origin chain is configured for route racing.
                ttl:
                  type: integer
                  minimum: 1
                  description: >-
                    Time-to-live for the quote, in seconds, measured from when
                    the quote was generated. If the request is not filled within
                    this window it is refunded instead of filled.
                useCustomRpcForSubmission:
                  type: boolean
                useQueueing:
                  type: boolean
                  description: >-
                    Opt-in queueing: when the destination fill hits temporarily
                    insufficient liquidity, keep retrying it until the
                    queueingTtl window expires (then refund) instead of
                    refunding immediately. Requires queueingTtl.
                queueingTtl:
                  type: number
                  description: >-
                    Queueing window, in seconds, measured from when the quote
                    was generated. While it is open, a useQueueing request that
                    hits insufficient destination liquidity is retried instead
                    of refunded; once it expires the request is refunded.
                    Independent of ttl. Only used together with useQueueing.
              required:
                - user
                - originChainId
                - destinationChainId
                - originCurrency
                - destinationCurrency
                - amount
                - tradeType
              type: object
              additionalProperties: false
        required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  requestId:
                    type: string
                  warnings:
                    type: array
                    description: >-
                      Present when a requested fixedRate was not applied,
                      omitted otherwise. More warning codes may be added.
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          enum:
                            - FIXED_RATE_NOT_APPLIED
                        message:
                          type: string
                      required:
                        - code
                        - message
                      additionalProperties: false
                  steps:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: >-
                            Step kind identifier; IDs may repeat. Execute steps
                            in array order.
                        action:
                          type: string
                        description:
                          type: string
                        kind:
                          type: string
                        status:
                          type: string
                        data: {}
                        depositAddress:
                          type: object
                          nullable: true
                          properties:
                            address:
                              type: string
                            type:
                              type: string
                              enum:
                                - strict
                                - open
                            depositor:
                              type: string
                              nullable: true
                            depositTxHash:
                              type: string
                              nullable: true
                            recoveryAddress:
                              type: string
                              nullable: true
                              description: >-
                                Origin-chain address that can recover
                                deposit-address funds if the recipient wallet is
                                later blocked. Null when not specified.
                        depositAddressId:
                          type: string
                        check:
                          type: object
                          properties:
                            endpoint:
                              type: string
                            method:
                              type: string
                              enum:
                                - GET
                          required:
                            - endpoint
                            - method
                      required:
                        - id
                        - action
                        - description
                        - kind
                        - status
                  fees:
                    type: object
                    properties:
                      swap:
                        description: >-
                          Cost to execute a swap or bridge depending on
                          available liquidity. Negative USD values represent
                          costs; positive USD values represent network rewards
                          for improving liquidity distribution.
                        type: object
                        properties:
                          usd:
                            type: string
                            nullable: true
                          amount:
                            type: string
                            nullable: true
                          amountFormatted:
                            type: string
                            nullable: true
                        required:
                          - usd
                          - amount
                          - amountFormatted
                      execution:
                        description: Fees paid to cover transaction execution costs
                        type: object
                        properties:
                          usd:
                            type: string
                            nullable: true
                          amount:
                            type: string
                            nullable: true
                          amountFormatted:
                            type: string
                            nullable: true
                        required:
                          - usd
                          - amount
                          - amountFormatted
                      platform:
                        description: Fees paid to the protocol
                        type: object
                        properties:
                          usd:
                            type: string
                            nullable: true
                          amount:
                            type: string
                            nullable: true
                          amountFormatted:
                            type: string
                            nullable: true
                        required:
                          - usd
                          - amount
                          - amountFormatted
                      app:
                        description: >-
                          Fees paid to the app. Currency will be the same as the
                          relayer fee currency. This needs to be claimed later
                          by the app owner and is not immediately distributed to
                          the app
                        type: object
                        properties:
                          usd:
                            type: string
                            nullable: true
                          amount:
                            type: string
                            nullable: true
                          amountFormatted:
                            type: string
                            nullable: true
                        required:
                          - usd
                          - amount
                          - amountFormatted
                      sponsored:
                        description: Fees paid by a sponsor for this request
                        type: object
                        properties:
                          usd:
                            type: string
                            nullable: true
                          amount:
                            type: string
                            nullable: true
                          amountFormatted:
                            type: string
                            nullable: true
                        required:
                          - usd
                          - amount
                          - amountFormatted
                      currency:
                        type: object
                        properties:
                          chainId:
                            type: number
                          address:
                            type: string
                          symbol:
                            type: string
                          name:
                            type: string
                          decimals:
                            type: number
                          metadata:
                            type: object
                            properties:
                              logoURI:
                                type: string
                              verified:
                                type: boolean
                              isNative:
                                type: boolean
                    required:
                      - execution
                      - swap
                      - platform
                      - app
                      - sponsored
                      - currency
                  originGas:
                    type: object
                    properties:
                      currency:
                        type: object
                        properties:
                          chainId:
                            type: number
                          address:
                            type: string
                          symbol:
                            type: string
                          name:
                            type: string
                          decimals:
                            type: number
                          metadata:
                            type: object
                            properties:
                              logoURI:
                                type: string
                              verified:
                                type: boolean
                              isNative:
                                type: boolean
                      amount:
                        type: string
                      amountFormatted:
                        type: string
                      amountUsd:
                        type: string
                        nullable: true
                      minimumAmount:
                        type: string
                    description: >-
                      Estimated origin gas paid separately by the wallet,
                      including required approvals. Omitted when the amount is
                      zero or the solver pays origin gas through execution fees.
                  feeSponsorship:
                    type: object
                    description: >-
                      Granular fee sponsorship details derived from the solver's
                      internal sponsorship resolution.
                    properties:
                      quoted:
                        description: >-
                          The quote-time sponsorship expectation for the
                          request.
                        type: object
                        properties:
                          selectedComponents:
                            type: array
                            description: >-
                              The normalized sponsorship buckets selected for
                              this request.
                            items:
                              type: string
                              enum:
                                - execution
                                - swap
                                - platform
                                - app
                                - rent
                          maxSubsidizationAmount:
                            type: string
                            description: >-
                              The requested sponsorship cap in USD micro-units,
                              when one was configured for the request.
                          subsidizationBps:
                            type: integer
                            description: >-
                              The requested share of each selected fee bucket
                              the sponsor covers, in bps (10000 = 100%), when
                              one was configured for the request.
                          capHit:
                            type: boolean
                            description: >-
                              Whether the configured sponsorship cap limited the
                              selected fee buckets for this phase.
                          components:
                            type: object
                            description: >-
                              Per-bucket sponsorship details for the five
                              sponsorable fee components.
                            properties:
                              execution:
                                description: Execution fee sponsorship details.
                                type: object
                                properties:
                                  selected:
                                    type: boolean
                                    description: >-
                                      Whether this fee bucket was selected for
                                      sponsorship.
                                  total:
                                    description: >-
                                      The full amount charged for this fee
                                      bucket.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  sponsored:
                                    description: >-
                                      The portion of this fee bucket covered by
                                      the sponsor.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  userPays:
                                    description: >-
                                      The portion of this fee bucket that
                                      remained user-paid.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                required:
                                  - selected
                                  - total
                                  - sponsored
                                  - userPays
                              swap:
                                description: Swap fee sponsorship details.
                                type: object
                                properties:
                                  selected:
                                    type: boolean
                                    description: >-
                                      Whether this fee bucket was selected for
                                      sponsorship.
                                  total:
                                    description: >-
                                      The full amount charged for this fee
                                      bucket.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  sponsored:
                                    description: >-
                                      The portion of this fee bucket covered by
                                      the sponsor.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  userPays:
                                    description: >-
                                      The portion of this fee bucket that
                                      remained user-paid.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                required:
                                  - selected
                                  - total
                                  - sponsored
                                  - userPays
                              platform:
                                description: Platform fee sponsorship details.
                                type: object
                                properties:
                                  selected:
                                    type: boolean
                                    description: >-
                                      Whether this fee bucket was selected for
                                      sponsorship.
                                  total:
                                    description: >-
                                      The full amount charged for this fee
                                      bucket.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  sponsored:
                                    description: >-
                                      The portion of this fee bucket covered by
                                      the sponsor.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  userPays:
                                    description: >-
                                      The portion of this fee bucket that
                                      remained user-paid.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                required:
                                  - selected
                                  - total
                                  - sponsored
                                  - userPays
                              app:
                                description: App fee sponsorship details.
                                type: object
                                properties:
                                  selected:
                                    type: boolean
                                    description: >-
                                      Whether this fee bucket was selected for
                                      sponsorship.
                                  total:
                                    description: >-
                                      The full amount charged for this fee
                                      bucket.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  sponsored:
                                    description: >-
                                      The portion of this fee bucket covered by
                                      the sponsor.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  userPays:
                                    description: >-
                                      The portion of this fee bucket that
                                      remained user-paid.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                required:
                                  - selected
                                  - total
                                  - sponsored
                                  - userPays
                              rent:
                                description: Solana ATA rent sponsorship details.
                                type: object
                                properties:
                                  selected:
                                    type: boolean
                                    description: >-
                                      Whether this fee bucket was selected for
                                      sponsorship.
                                  total:
                                    description: >-
                                      The full amount charged for this fee
                                      bucket.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  sponsored:
                                    description: >-
                                      The portion of this fee bucket covered by
                                      the sponsor.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  userPays:
                                    description: >-
                                      The portion of this fee bucket that
                                      remained user-paid.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                required:
                                  - selected
                                  - total
                                  - sponsored
                                  - userPays
                            required:
                              - execution
                              - swap
                              - platform
                              - app
                              - rent
                          sponsoredTotal:
                            description: The total amount sponsored for this phase.
                            type: object
                            properties:
                              amount:
                                type: string
                                nullable: true
                              amountFormatted:
                                type: string
                                nullable: true
                              amountUsd:
                                type: string
                                nullable: true
                              minimumAmount:
                                type: string
                                nullable: true
                          userPaysTotal:
                            description: >-
                              The total amount the user paid across the
                              sponsorable fee buckets for this phase.
                            type: object
                            properties:
                              amount:
                                type: string
                                nullable: true
                              amountFormatted:
                                type: string
                                nullable: true
                              amountUsd:
                                type: string
                                nullable: true
                              minimumAmount:
                                type: string
                                nullable: true
                        required:
                          - selectedComponents
                          - capHit
                          - components
                          - sponsoredTotal
                          - userPaysTotal
                      actual:
                        description: >-
                          The post-solve sponsorship outcome recorded for the
                          request.
                        type: object
                        properties:
                          selectedComponents:
                            type: array
                            description: >-
                              The normalized sponsorship buckets selected for
                              this request.
                            items:
                              type: string
                              enum:
                                - execution
                                - swap
                                - platform
                                - app
                                - rent
                          maxSubsidizationAmount:
                            type: string
                            description: >-
                              The requested sponsorship cap in USD micro-units,
                              when one was configured for the request.
                          subsidizationBps:
                            type: integer
                            description: >-
                              The requested share of each selected fee bucket
                              the sponsor covers, in bps (10000 = 100%), when
                              one was configured for the request.
                          capHit:
                            type: boolean
                            description: >-
                              Whether the configured sponsorship cap limited the
                              selected fee buckets for this phase.
                          components:
                            type: object
                            description: >-
                              Per-bucket sponsorship details for the five
                              sponsorable fee components.
                            properties:
                              execution:
                                description: Execution fee sponsorship details.
                                type: object
                                properties:
                                  selected:
                                    type: boolean
                                    description: >-
                                      Whether this fee bucket was selected for
                                      sponsorship.
                                  total:
                                    description: >-
                                      The full amount charged for this fee
                                      bucket.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  sponsored:
                                    description: >-
                                      The portion of this fee bucket covered by
                                      the sponsor.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  userPays:
                                    description: >-
                                      The portion of this fee bucket that
                                      remained user-paid.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                required:
                                  - selected
                                  - total
                                  - sponsored
                                  - userPays
                              swap:
                                description: Swap fee sponsorship details.
                                type: object
                                properties:
                                  selected:
                                    type: boolean
                                    description: >-
                                      Whether this fee bucket was selected for
                                      sponsorship.
                                  total:
                                    description: >-
                                      The full amount charged for this fee
                                      bucket.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  sponsored:
                                    description: >-
                                      The portion of this fee bucket covered by
                                      the sponsor.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  userPays:
                                    description: >-
                                      The portion of this fee bucket that
                                      remained user-paid.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                required:
                                  - selected
                                  - total
                                  - sponsored
                                  - userPays
                              platform:
                                description: Platform fee sponsorship details.
                                type: object
                                properties:
                                  selected:
                                    type: boolean
                                    description: >-
                                      Whether this fee bucket was selected for
                                      sponsorship.
                                  total:
                                    description: >-
                                      The full amount charged for this fee
                                      bucket.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  sponsored:
                                    description: >-
                                      The portion of this fee bucket covered by
                                      the sponsor.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  userPays:
                                    description: >-
                                      The portion of this fee bucket that
                                      remained user-paid.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                required:
                                  - selected
                                  - total
                                  - sponsored
                                  - userPays
                              app:
                                description: App fee sponsorship details.
                                type: object
                                properties:
                                  selected:
                                    type: boolean
                                    description: >-
                                      Whether this fee bucket was selected for
                                      sponsorship.
                                  total:
                                    description: >-
                                      The full amount charged for this fee
                                      bucket.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  sponsored:
                                    description: >-
                                      The portion of this fee bucket covered by
                                      the sponsor.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  userPays:
                                    description: >-
                                      The portion of this fee bucket that
                                      remained user-paid.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                required:
                                  - selected
                                  - total
                                  - sponsored
                                  - userPays
                              rent:
                                description: Solana ATA rent sponsorship details.
                                type: object
                                properties:
                                  selected:
                                    type: boolean
                                    description: >-
                                      Whether this fee bucket was selected for
                                      sponsorship.
                                  total:
                                    description: >-
                                      The full amount charged for this fee
                                      bucket.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  sponsored:
                                    description: >-
                                      The portion of this fee bucket covered by
                                      the sponsor.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                  userPays:
                                    description: >-
                                      The portion of this fee bucket that
                                      remained user-paid.
                                    type: object
                                    properties:
                                      amount:
                                        type: string
                                        nullable: true
                                      amountFormatted:
                                        type: string
                                        nullable: true
                                      amountUsd:
                                        type: string
                                        nullable: true
                                      minimumAmount:
                                        type: string
                                        nullable: true
                                required:
                                  - selected
                                  - total
                                  - sponsored
                                  - userPays
                            required:
                              - execution
                              - swap
                              - platform
                              - app
                              - rent
                          sponsoredTotal:
                            description: The total amount sponsored for this phase.
                            type: object
                            properties:
                              amount:
                                type: string
                                nullable: true
                              amountFormatted:
                                type: string
                                nullable: true
                              amountUsd:
                                type: string
                                nullable: true
                              minimumAmount:
                                type: string
                                nullable: true
                          userPaysTotal:
                            description: >-
                              The total amount the user paid across the
                              sponsorable fee buckets for this phase.
                            type: object
                            properties:
                              amount:
                                type: string
                                nullable: true
                              amountFormatted:
                                type: string
                                nullable: true
                              amountUsd:
                                type: string
                                nullable: true
                              minimumAmount:
                                type: string
                                nullable: true
                          sponsorPayment:
                            type: object
                            description: >-
                              How much the sponsor ultimately paid, denominated
                              in the sponsor payment currency.
                            properties:
                              amount:
                                type: string
                                description: The sponsor payment amount.
                              address:
                                type: string
                                description: The sponsor payment currency address.
                              chainId:
                                type: number
                                description: The sponsor payment chain id.
                            required:
                              - amount
                              - address
                              - chainId
                        required:
                          - selectedComponents
                          - capHit
                          - components
                          - sponsoredTotal
                          - userPaysTotal
                      currency:
                        description: >-
                          The currency in which all sponsorship amounts are
                          denominated. Shared across all nested amount objects.
                        type: object
                        properties:
                          chainId:
                            type: number
                          address:
                            type: string
                          symbol:
                            type: string
                          name:
                            type: string
                          decimals:
                            type: number
                          metadata:
                            type: object
                            properties:
                              logoURI:
                                type: string
                              verified:
                                type: boolean
                              isNative:
                                type: boolean
                  details:
                    type: object
                    description: >-
                      A summary of the swap and what the user should expect to
                      happen given an input
                    properties:
                      operation:
                        type: string
                        description: >-
                          The operation that will be performed, possible options
                          are send, swap, wrap, unwrap, bridge
                      sender:
                        type: string
                        description: The address that deposited the funds
                      recipient:
                        type: string
                        description: The address that will be receiving the swap output
                      currencyIn:
                        type: object
                        properties:
                          currency:
                            type: object
                            properties:
                              chainId:
                                type: number
                              address:
                                type: string
                              symbol:
                                type: string
                              name:
                                type: string
                              decimals:
                                type: number
                              metadata:
                                type: object
                                properties:
                                  logoURI:
                                    type: string
                                  verified:
                                    type: boolean
                                  isNative:
                                    type: boolean
                          amount:
                            type: string
                          amountFormatted:
                            type: string
                          amountUsd:
                            type: string
                            nullable: true
                          minimumAmount:
                            type: string
                      currencyOut:
                        type: object
                        properties:
                          currency:
                            type: object
                            properties:
                              chainId:
                                type: number
                              address:
                                type: string
                              symbol:
                                type: string
                              name:
                                type: string
                              decimals:
                                type: number
                              metadata:
                                type: object
                                properties:
                                  logoURI:
                                    type: string
                                  verified:
                                    type: boolean
                                  isNative:
                                    type: boolean
                          amount:
                            type: string
                          amountFormatted:
                            type: string
                          amountUsd:
                            type: string
                            nullable: true
                          minimumAmount:
                            type: string
                      refundCurrency:
                        type: object
                        properties:
                          currency:
                            type: object
                            properties:
                              chainId:
                                type: number
                              address:
                                type: string
                              symbol:
                                type: string
                              name:
                                type: string
                              decimals:
                                type: number
                              metadata:
                                type: object
                                properties:
                                  logoURI:
                                    type: string
                                  verified:
                                    type: boolean
                                  isNative:
                                    type: boolean
                          amount:
                            type: string
                          amountFormatted:
                            type: string
                          amountUsd:
                            type: string
                            nullable: true
                          minimumAmount:
                            type: string
                      currencyGasTopup:
                        type: object
                        properties:
                          currency:
                            type: object
                            properties:
                              chainId:
                                type: number
                              address:
                                type: string
                              symbol:
                                type: string
                              name:
                                type: string
                              decimals:
                                type: number
                              metadata:
                                type: object
                                properties:
                                  logoURI:
                                    type: string
                                  verified:
                                    type: boolean
                                  isNative:
                                    type: boolean
                          amount:
                            type: string
                          amountFormatted:
                            type: string
                          amountUsd:
                            type: string
                            nullable: true
                          minimumAmount:
                            type: string
                      totalImpact:
                        type: object
                        description: >-
                          The difference between the input and output values,
                          including fees
                        properties:
                          usd:
                            type: string
                          percent:
                            type: string
                      swapImpact:
                        type: object
                        description: The impact of the swap, not factoring in fees
                        properties:
                          usd:
                            type: string
                          percent:
                            type: string
                      rate:
                        type: string
                        description: >-
                          The swap rate which is equal to 1 input unit in the
                          output unit, e.g. 1 USDC -> x ETH. This value can
                          fluctuate based on gas and fees.
                      slippageTolerance:
                        type: object
                        properties:
                          total:
                            type: string
                            description: >-
                              The total slippage tolerance applied to the order,
                              in basis points (1/100th of a percent), e.g. 50
                              for 0.5% slippage. The origin and destination
                              breakdowns are alternative allocations of this
                              budget and are not additive.
                          origin:
                            type: object
                            description: The slippage tolerance on the origin chain swap
                            properties:
                              usd:
                                type: string
                              value:
                                type: string
                              percent:
                                type: string
                          destination:
                            type: object
                            description: >-
                              The slippage tolerance on the destination chain
                              swap
                            properties:
                              usd:
                                type: string
                              value:
                                type: string
                              percent:
                                type: string
                      timeEstimate:
                        type: number
                        description: Estimated swap time in seconds
                      userBalance:
                        type: string
                        description: >-
                          The user's balance in the given currency on the origin
                          chain
                      isFixedRate:
                        type: boolean
                        description: >-
                          Whether the rate for the quote is fixed or dynamic
                          (swap on origin/destination). Always true for sends.
                          It does not report whether a requested fixedRate was
                          applied; warnings does.
                      fixedRateFee:
                        type: object
                        description: >-
                          The USD cost of the fixed rate vs market rate.
                          Positive means the fixed rate is worse than market
                          (user pays premium), negative means better (user
                          benefits). Only present for fixed rate quotes.
                        properties:
                          usd:
                            type: string
                      route:
                        type: object
                        properties:
                          origin:
                            type: object
                            description: The route taken for the origin chain swap
                            properties:
                              inputCurrency:
                                type: object
                                properties:
                                  currency:
                                    type: object
                                    properties:
                                      chainId:
                                        type: number
                                      address:
                                        type: string
                                      symbol:
                                        type: string
                                      name:
                                        type: string
                                      decimals:
                                        type: number
                                      metadata:
                                        type: object
                                        properties:
                                          logoURI:
                                            type: string
                                          verified:
                                            type: boolean
                                          isNative:
                                            type: boolean
                                  amount:
                                    type: string
                                  amountFormatted:
                                    type: string
                                  amountUsd:
                                    type: string
                                    nullable: true
                                  minimumAmount:
                                    type: string
                              outputCurrency:
                                type: object
                                properties:
                                  currency:
                                    type: object
                                    properties:
                                      chainId:
                                        type: number
                                      address:
                                        type: string
                                      symbol:
                                        type: string
                                      name:
                                        type: string
                                      decimals:
                                        type: number
                                      metadata:
                                        type: object
                                        properties:
                                          logoURI:
                                            type: string
                                          verified:
                                            type: boolean
                                          isNative:
                                            type: boolean
                                  amount:
                                    type: string
                                  amountFormatted:
                                    type: string
                                  amountUsd:
                                    type: string
                                    nullable: true
                                  minimumAmount:
                                    type: string
                              router:
                                type: string
                              includedSwapSources:
                                type: array
                                items:
                                  type: string
                          destination:
                            type: object
                            description: The route taken for the origin chain swap
                            properties:
                              inputCurrency:
                                type: object
                                properties:
                                  currency:
                                    type: object
                                    properties:
                                      chainId:
                                        type: number
                                      address:
                                        type: string
                                      symbol:
                                        type: string
                                      name:
                                        type: string
                                      decimals:
                                        type: number
                                      metadata:
                                        type: object
                                        properties:
                                          logoURI:
                                            type: string
                                          verified:
                                            type: boolean
                                          isNative:
                                            type: boolean
                                  amount:
                                    type: string
                                  amountFormatted:
                                    type: string
                                  amountUsd:
                                    type: string
                                    nullable: true
                                  minimumAmount:
                                    type: string
                              outputCurrency:
                                type: object
                                properties:
                                  currency:
                                    type: object
                                    properties:
                                      chainId:
                                        type: number
                                      address:
                                        type: string
                                      symbol:
                                        type: string
                                      name:
                                        type: string
                                      decimals:
                                        type: number
                                      metadata:
                                        type: object
                                        properties:
                                          logoURI:
                                            type: string
                                          verified:
                                            type: boolean
                                          isNative:
                                            type: boolean
                                  amount:
                                    type: string
                                  amountFormatted:
                                    type: string
                                  amountUsd:
                                    type: string
                                    nullable: true
                                  minimumAmount:
                                    type: string
                              router:
                                type: string
                              includedSwapSources:
                                type: array
                                items:
                                  type: string
                  protocol:
                    type: object
                    description: Protocol information for the quote
                    properties:
                      v2:
                        type: object
                        properties:
                          orderId:
                            type: string
                            description: The underlying protocol order id
                          hubType:
                            type: string
                            enum:
                              - onchain
                            description: >-
                              The protocol hub type. Always 'onchain' for the
                              public protocol contract. Mirrors the requests/v3
                              protocol block.
                          orderData:
                            description: The underlying protocol order data
                          orderSignature:
                            type: string
                            description: >-
                              Solver's ECDSA signature over the orderId,
                              returned when includeProtocolData is set. Use
                              ecrecover to verify the commitment on-chain.
                          paymentDetails:
                            type: object
                            description: The details for the depository payment
                            properties:
                              chainId:
                                type: string
                                description: >-
                                  The protocol chain identifier for the payment,
                                  such as ethereum or base
                              depository:
                                type: string
                                description: The depository address
                              currency:
                                type: string
                                description: The currency of the payment
                              amount:
                                type: string
                                description: The amount of the payment
                required:
                  - requestId
                  - steps
                  - fees
                  - details
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
                  requestId:
                    type: string
                required:
                  - message
                  - errorCode
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
                  requestId:
                    type: string
                required:
                  - message
                  - errorCode
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
                  requestId:
                    type: string
                required:
                  - message
                  - errorCode
        '415':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
                  requestId:
                    type: string
                required:
                  - message
                  - errorCode
        '429':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
                  requestId:
                    type: string
                required:
                  - message
                  - errorCode
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
                  requestId:
                    type: string
                required:
                  - message
                  - errorCode
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
                  requestId:
                    type: string
                required:
                  - message
                  - errorCode

````

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