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

# Optimal route between two tokens

> Calculates optimal transaction with the best route between two tokens, which may involve several actions that interact with various DeFi protocols. This single call already quotes internally and returns executable calldata along with `amountOut` and `gas`, so there is no separate quote step to call beforehand. <Tip>To enter a non-tokenized position, use GET&nbsp;`shortcuts/route/nontokenized`.</Tip>



## OpenAPI

````yaml /public/openapi.json get /api/v1/shortcuts/route
openapi: 3.0.0
info:
  title: Enso API
  description: >-
    #### Enso API

    - Find detailed documentation on
    [docs.enso.finance](https://docs.enso.finance).

    - To use the API, **you must include your API Key in the Authorization
    header** (Bearer format).

    - For testing, Swagger pre-authorizes you using the key:
    `1e02632d-6feb-4a75-a157-documentation` (1rps).

    - Get your own API Key at
    [enso.finance/developers](https://enso.finance/developers).
  version: 1.0.1
  contact: {}
servers:
  - url: https://api.enso.build
security:
  - {}
tags:
  - name: shortcuts
    description: ''
paths:
  /api/v1/shortcuts/route:
    get:
      tags:
        - DeFi Shortcuts
      summary: Optimal route between two tokens
      description: >-
        Calculates optimal transaction with the best route between two tokens,
        which may involve several actions that interact with various DeFi
        protocols. This single call already quotes internally and returns
        executable calldata along with `amountOut` and `gas`, so there is no
        separate quote step to call beforehand. <Tip>To enter a non-tokenized
        position, use GET&nbsp;`shortcuts/route/nontokenized`.</Tip>
      operationId: RouterController_routeShortcutTransaction
      parameters:
        - name: chainId
          required: false
          in: query
          description: Chain ID of the network to execute the transaction on
          schema:
            default: 1
            type: number
        - name: fromAddress
          required: true
          in: query
          description: Ethereum address of the wallet to send the transaction from
          schema:
            type: string
            example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
        - name: amountIn
          required: true
          in: query
          description: Amount of tokenIn to swap in wei
          schema:
            example:
              - '1000000000000000000'
            type: array
            items:
              type: string
        - name: tokenIn
          required: true
          in: query
          description: >-
            Ethereum address of the token to swap from. For ETH, use
            0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
          schema:
            example:
              - '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'
            type: array
            items:
              type: string
        - name: tokenOut
          required: true
          in: query
          description: >-
            Ethereum address of the token to swap to. For ETH, use
            0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
          schema:
            example:
              - '0x6b175474e89094c44da98b954eedeac495271d0f'
            type: array
            items:
              type: string
        - name: routingStrategy
          required: false
          in: query
          description: >-
            Routing strategy to use. in majority of cases you can use `router`.
            Use `delegate` with EOA when you want to specify a `spender`
          schema:
            nullable: true
            enum:
              - ensowallet-v2
              - router
              - delegate
              - router-legacy
              - delegate-legacy
            type: string
        - name: toEoa
          required: false
          in: query
          description: Flag that indicates if gained tokenOut should be sent to EOA
          deprecated: true
          schema:
            nullable: true
            type: boolean
        - name: receiver
          required: false
          in: query
          description: Ethereum address of the receiver of the tokenOut
          schema:
            type: string
            example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
        - name: spender
          required: false
          in: query
          description: Ethereum address of the spender of the tokenIn
          schema:
            type: string
            example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
        - name: minAmountOut
          required: false
          in: query
          description: >-
            Minimum amount out in wei. If specified, slippage should not be
            specified
          schema:
            default: null
            type: array
            items:
              type: string
        - name: slippage
          required: false
          in: query
          description: >-
            Slippage in basis points (1/10000). e.g. 50 = 0.50%. If specified,
            minAmountOut should not be specified
          schema:
            default: '50'
            example: '300'
            type: string
        - name: ignoreAggregators
          required: false
          in: query
          description: A list of swap aggregators to be ignored from consideration
          schema:
            nullable: true
            type: array
            items:
              type: string
              enum:
                - 0x
                - 1inch
                - openocean
                - kyberswap
                - native
                - paraswap
                - bebop
                - barter
                - sushiswap-router
                - ooga-booga
                - renegade
                - uniswap
                - rooster
                - wowmax
                - grapher
                - hyperbloom
                - hyperswap
                - hyperflow
                - fly
                - eisen
                - nordstern
                - everlong
                - bitget
                - akka
        - name: ignoreStandards
          required: false
          in: query
          description: A list of standards to be ignored from consideration
          schema:
            nullable: true
            type: array
            items:
              type: string
        - name: ignoreBridges
          required: false
          in: query
          description: >-
            A list of bridges to be ignored from consideration for crosschain
            routes. Supported values: `relay`, `stargate`, `ccip`, `cctp`
          schema:
            default: []
            type: array
            items:
              type: string
              enum:
                - cctp
                - stargate
                - ccip
                - relay
                - layerzero-teller
                - arbitrum-native
                - mayan
        - name: referralCode
          required: false
          in: query
          description: Referral code that will be included in an on-chain event.
          schema:
            maxLength: 16
            example: 0123456789ABCDEF
            type: string
        - name: destinationChainId
          required: false
          in: query
          description: Chain ID of the network to bridge to and receive tokenOut
          schema:
            type: number
        - name: crosschainRouteMode
          required: false
          in: query
          description: >-
            Controls cross-chain route complexity. direct uses only a bridge,
            source allows routing before the bridge, destination allows routing
            after the bridge, sourceOrDestination allows routing on either chain
            but not both, and full allows routing on both chains
          schema:
            default: full
            enum:
              - direct
              - source
              - destination
              - sourceOrDestination
              - full
            type: string
        - name: effort
          required: false
          in: query
          description: >-
            Latency/quality trade-off for pathfinding and aggregator querying.
            light returns fastest over a reduced search space (short aggregator
            wait with early return once two usable quotes arrive, fewer
            candidate paths, no destination-side bridge routing), medium waits
            the full short window over the full search space, high is the
            default balanced behavior, and max queries all aggregators in
            parallel with an extended wait for best execution (higher CU cost)
          schema:
            enum:
              - light
              - medium
              - high
              - max
            type: string
        - name: refundReceiver
          required: false
          in: query
          description: >-
            Ethereum address of the receiver of any dust tokens that might be
            produced during the execution of actions
          schema:
            type: string
            example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
        - name: executionMode
          required: false
          in: query
          description: Controls how quote is built based on execution mode
          schema:
            default: user
            enum:
              - user
              - backend
            type: string
        - name: includeTransactionCost
          required: false
          in: query
          description: >-
            Include point-in-time source-chain transaction cost estimates in
            native units and USD, plus USD values for reported bridge fees
          schema:
            default: false
            type: boolean
        - name: useIntentAddress
          required: false
          in: query
          description: >-
            Route a cross-chain request through an intent address on the
            destination chain. The bridge delivers to that address, then a
            keeper runs the destination route and sends tokenOut to the
            receiver. When omitted, intents are used if both chains support
            them. Set to false to use a bridge callback instead. Ignored for
            same-chain routes.
          schema:
            type: boolean
        - name: allowAsync
          required: false
          in: query
          description: >-
            Allow async redeems, where tokenOut is paid after the transaction.
            An async route returns amountOut, minAmountOut and priceImpact as
            null and describes the payout in `async`. Cannot be combined with
            minAmountOut or useIntentAddress, intents do not support async
            redeems.
          schema:
            default: false
            type: boolean
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RouteShortcutTransaction'
        '400':
          description: ''
components:
  schemas:
    RouteShortcutTransaction:
      type: object
      properties:
        gas:
          type: string
        amountOut:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          description: Null for async routes, see `async.estimatedAmountOut`
          nullable: true
        blockNumber:
          type: number
          description: Block number the quote was simulated against
        priceImpact:
          type: number
          nullable: true
          description: Price impact in basis points, null if USD price not found
        feeAmount:
          description: An array of the fee amount collected for each tokenIn
          type: array
          items:
            type: string
        ensoFeeAmount:
          type: array
          items:
            type: string
        metadata:
          $ref: '#/components/schemas/ShortcutResponseMetadata'
        async:
          description: >-
            Present when the route is an async redeem (`allowAsync=true`).
            amountOut, minAmountOut and priceImpact are null because nothing is
            delivered in the transaction, the estimates are in `async`
          allOf:
            - $ref: '#/components/schemas/AsyncRedeem'
        minAmountOut:
          type: string
          description: The minimum allowable amount out after slippage
        intent:
          $ref: '#/components/schemas/IntentResponse'
        createdAt:
          type: number
          description: Block number the transaction was created on
        tx:
          description: The tx object to use in `ethers`
          allOf:
            - $ref: '#/components/schemas/Transaction'
        route:
          description: The route the shortcut will use
          type: array
          items:
            $ref: '#/components/schemas/Hop'
        detailedRoute:
          description: >-
            Ordered route segments with the underlying standard actions. For
            inspection only; do not use it to build the transaction.
          type: array
          items:
            type: object
            properties:
              tokensIn:
                type: array
                items:
                  type: string
              weights:
                description: Split weights per path, aligned with tokensIn
                type: array
                items:
                  type: array
                  items:
                    type: string
              paths:
                type: array
                items:
                  type: array
                  items:
                    type: object
                    properties:
                      action:
                        type: string
                      protocol:
                        type: string
                      primaryAddress:
                        type: string
                      tokenIn:
                        type: array
                        items:
                          type: string
                      tokenOut:
                        type: array
                        items:
                          type: string
                      args:
                        type: object
        userOp:
          description: The ERC-4337 user operation object
          allOf:
            - $ref: '#/components/schemas/UserOperation'
        preTransactions:
          description: >-
            Transactions that may need to be executed before the main shortcut
            transaction. Token approvals should be skipped when the current
            allowance is already sufficient.
          type: array
          items:
            $ref: '#/components/schemas/PreTransaction'
        bridgingEstimates:
          description: Estimated bridging durations when applicable
          type: array
          items:
            $ref: '#/components/schemas/BridgeLatencyEstimate'
        validUntil:
          type: number
          description: >-
            Unix timestamp (seconds) after which this quote expires.
            Transactions submitted after this time may revert. On an intent
            route a late transaction still bridges, but the bridged token is
            refunded on the destination chain instead of being swapped.
        transactionCost:
          type: string
          nullable: true
          description: >-
            Point-in-time lower-bound estimate of mandatory source-chain
            transaction fees in the native token smallest unit. Excludes
            priority fees, transaction value, bridge fees, and destination
            execution.
        transactionCostUsd:
          type: string
          nullable: true
          description: >-
            Decimal string USD value of transactionCost. Null when the
            native-token price or source-chain fee estimate is unavailable.
      required:
        - gas
        - amountOut
        - metadata
        - createdAt
        - tx
        - route
    ShortcutResponseMetadata:
      type: object
      properties:
        bridgeRefundAssets:
          type: array
          description: >-
            Protocol-specific refund destinations for bridge principal in the
            returned transaction. An entry does not guarantee that every bridge
            failure is refundable.
          items:
            $ref: '#/components/schemas/BridgeRefundAsset'
        bridgeFees:
          description: Bridge protocol and intent execution fees
          type: array
          items:
            $ref: '#/components/schemas/BridgeFee'
        bridgeFeeUsd:
          type: string
          description: >-
            USD sum of the reported bridge protocol and intent execution fee
            amounts when includeTransactionCost=true. May include maximum fee
            reserves. Null when any non-zero fee cannot be priced.
          nullable: true
      required:
        - bridgeRefundAssets
    AsyncRedeem:
      type: object
      properties:
        chainId:
          type: number
          description: >-
            Chain the redeem request is filed on, where `claim`, `status` and
            `cancel` live. Cross-chain, this is the destination chain
        tokenIn:
          type: string
          description: Token the redeem request was filed for
        amountIn:
          type: string
          description: >-
            Amount of tokenIn in the request, after fees. When other steps come
            before the redeem, this is their estimated output
        tokenOut:
          type: string
          description: Token paid out when the redeem settles
        estimatedAmountOut:
          type: string
          description: >-
            Expected tokenOut payout at current rates. See `pricing` for how
            binding it is
        estimatedMinAmountOut:
          type: string
          description: >-
            Expected tokenOut payout at current rates for the smallest amountIn
            the transaction allows after slippage. Equal to estimatedAmountOut
            when nothing before the request can slip. Not enforced on-chain, see
            `pricing`
        priceImpact:
          type: number
          description: >-
            Price impact in basis points between the input and
            estimatedAmountOut, null if USD price not found
          nullable: true
        pricing:
          type: string
          enum:
            - fixed
            - capped
            - atSettlement
          description: >-
            `fixed`: the payout is locked at request. `capped`: the lower of the
            request and settlement rates. `atSettlement`: determined when the
            redeem settles
        beneficiary:
          type: string
          description: Account entitled to the payout
        claim:
          $ref: '#/components/schemas/AsyncRedeemClaim'
        settlement:
          $ref: '#/components/schemas/AsyncRedeemSettlement'
        timing:
          $ref: '#/components/schemas/AsyncRedeemTiming'
        cancel:
          description: Absent when the request cannot be cancelled by the user
          allOf:
            - $ref: '#/components/schemas/AsyncRedeemCancel'
        refund:
          description: >-
            How tokenIn can come back instead of tokenOut. Absent when the
            request can never be unwound
          allOf:
            - $ref: '#/components/schemas/AsyncRedeemRefund'
        status:
          description: View call returning the status of the claim
          allOf:
            - $ref: '#/components/schemas/AsyncRedeemCall'
      required:
        - chainId
        - tokenIn
        - amountIn
        - tokenOut
        - estimatedAmountOut
        - estimatedMinAmountOut
        - pricing
        - beneficiary
        - claim
        - settlement
    IntentResponse:
      type: object
      properties:
        address:
          type: string
        data:
          type: object
      required:
        - address
        - data
    Transaction:
      type: object
      properties:
        data:
          type: string
        to:
          type: string
        from:
          type: string
        value:
          type: string
      required:
        - data
        - to
        - from
        - value
    Hop:
      type: object
      properties:
        tokenIn:
          type: array
          items:
            type: string
        tokenOut:
          type: array
          items:
            type: string
        protocol:
          type: string
        action:
          type: string
          enum:
            - approve
            - borrow
            - borrowwithpositionid
            - deposit
            - singledeposit
            - singledepositwithpositionid
            - multideposit
            - multidepositwithpositionid
            - tokenizedsingledeposit
            - tokenizedmultideposit
            - multioutsingledeposit
            - depositclmm
            - depositwithestimate
            - encodedswap
            - flashloan
            - singletokenflashloan
            - multitokenflashloan
            - harvest
            - nftborrow
            - nftdeposit
            - nftmultideposit
            - nftmultiredeem
            - nftredeem
            - nftrepay
            - permittransferfrom
            - redeem
            - singleredeem
            - singleredeemwithpositionid
            - multiredeem
            - tokenizedsingleredeem
            - tokenizedmultiredeem
            - redeemclmm
            - redeemwithestimate
            - repay
            - repaywithpositionid
            - requestredeem
            - swap
            - transfer
            - transferfrom
            - withdraw
            - singlewithdraw
            - singlewithdrawwithpositionid
            - multiwithdraw
            - bridge
            - route
            - call
            - split
            - merge
            - ondosplit
            - ondomerge
            - balance
            - minamountout
            - slippage
            - fee
            - ensofee
            - depositposition
            - add
            - sub
            - mul
            - div
            - min
            - max
            - isequal
            - islessthan
            - isequalorlessthan
            - isgreaterthan
            - isequalorgreaterthan
            - not
            - check
            - toggle
        primaryAddress:
          type: string
        internalRoutes:
          type: array
          items:
            type: array
            items:
              $ref: '#/components/schemas/Hop'
        args:
          type: object
          additionalProperties:
            oneOf:
              - type: string
              - type: array
                items:
                  type: string
        sources:
          type: array
          items:
            type: string
        poolAddresses:
          type: array
          items:
            type: string
        estimatedAmountOut:
          description: >-
            Only available for split actions returned by the pathfinder routing
            engine. Display estimates use the planned split input, are ordered
            to match tokenOut, and are not execution guarantees
          type: array
          items:
            type: string
        chainId:
          type: number
        sourceChainId:
          type: number
        destinationChainId:
          type: number
        positionOut:
          description: Non-tokenized position ID for deposit actions
          type: array
          items:
            type: string
        via:
          type: string
          description: >-
            Off-chain settler for this hop. Set when the hop is descriptive
            metadata rather than a weiroll call in `tx.data` — execution happens
            asynchronously via the named external system (e.g. Circle's
            CctpForwarder credits HyperCore on CCTP message receipt). Absent on
            hops that are actual on-chain weiroll calls.
          enum:
            - cctp-forwarder
          example: cctp-forwarder
      required:
        - tokenIn
        - tokenOut
        - protocol
        - action
    UserOperation:
      type: object
      properties:
        callData:
          type: string
        callGasLimit:
          type: string
        factory:
          type: string
        factoryData:
          type: string
        maxFeePerGas:
          type: string
        maxPriorityFeePerGas:
          type: string
        nonce:
          type: string
        paymaster:
          type: string
        paymasterData:
          type: string
        paymasterPostOpGasLimit:
          type: string
        paymasterVerificationGasLimit:
          type: string
        preVerificationGas:
          type: string
        sender:
          type: string
        signature:
          type: string
        verificationGasLimit:
          type: string
      required:
        - callData
        - callGasLimit
        - maxFeePerGas
        - maxPriorityFeePerGas
        - nonce
        - preVerificationGas
        - sender
        - signature
        - verificationGasLimit
    PreTransaction:
      type: object
      properties:
        type:
          type: string
          enum:
            - tokenApproval
            - requiredApproval
        tx:
          description: Transaction to execute before the main shortcut transaction
          allOf:
            - $ref: '#/components/schemas/Transaction'
        token:
          type: string
          description: Token whose allowance is being set
        spender:
          type: string
          description: Account receiving the token allowance
        amount:
          type: string
          description: Total allowance required by the shortcut
        description:
          type: string
          description: Human-readable explanation for a required approval
      required:
        - type
        - tx
    BridgeLatencyEstimate:
      type: object
      properties:
        fromChainId:
          type: number
        toChainId:
          type: number
        token:
          type: string
          description: Token bridged to the destination chain
        estimatedSeconds:
          type: number
          description: Estimated bridge latency in seconds
        sendConfirmations:
          type: number
          description: Send confirmations used for the estimation
        receiveConfirmations:
          type: number
          description: Receive confirmations
        sendBlockTimeSeconds:
          type: number
          description: Average block time assumed for the source chain (seconds)
        receiveBlockTimeSeconds:
          type: number
          description: Average block time assumed for the destination chain (seconds)
        bridge:
          type: string
          description: Bridge implementation or provider that produced the estimate
        source:
          type: string
          description: >-
            Source of the data (protocol, measured, model, defaults, override,
            fallback)
          enum:
            - protocol
            - measured
            - model
            - defaults
            - override
            - fallback
        note:
          type: string
          description: Optional note describing overrides or fallbacks applied
      required:
        - fromChainId
        - toChainId
        - token
        - estimatedSeconds
    BridgeRefundAsset:
      type: object
      properties:
        protocol:
          type: string
          enum:
            - cctp
            - stargate
            - ccip
            - relay
            - layerzero-teller
            - arbitrum-native
            - mayan
        chainId:
          type: number
        token:
          type: string
          description: Address of the bridge principal token that may be refunded
          example: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
        recipient:
          type: string
          description: Address that would receive the bridge principal refund
          example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
        symbol:
          type: string
          description: Token symbol when metadata is available
          example: USDC
      required:
        - protocol
        - chainId
        - token
        - recipient
    BridgeFee:
      type: object
      properties:
        protocol:
          type: string
          description: Bridge protocol associated with the fee
        component:
          type: string
          enum:
            - bridge
            - intentExecution
        chainId:
          type: number
          description: Chain on which the fee is paid
        destinationChainId:
          type: number
          description: Destination chain of the bridge action
        token:
          type: string
          description: Token used to pay the bridge fee
        type:
          type: string
          enum:
            - maximum
            - quoted
          description: >-
            Whether amount is a maximum reserved for execution or a quote-time
            fee breakdown
        deductedFromAmountOut:
          type: boolean
          description: >-
            Whether the fee has already reduced the candidate amountOut and must
            not be subtracted again when scoring.
        amount:
          type: string
          description: Bridge fee in the token base unit.
        amountUsd:
          type: string
          description: >-
            Bridge fee in USD when includeTransactionCost=true and pricing is
            available
          nullable: true
      required:
        - protocol
        - component
        - chainId
        - destinationChainId
        - token
        - type
        - deductedFromAmountOut
        - amount
    AsyncRedeemClaim:
      type: object
      properties:
        type:
          type: string
          enum:
            - erc721
            - erc1155
            - request
            - erc7540
            - account
          description: >-
            What the beneficiary holds after the transaction: an ERC-721 or
            ERC-1155 receipt, a request id recorded for the beneficiary, an
            ERC-7540 request under the beneficiary as controller, or per-account
            state
        contract:
          type: string
          description: Contract holding the claim
        transferable:
          type: boolean
          description: Whether the claim can be transferred
        idFrom:
          description: >-
            Where to read the claim id from once the transaction is mined.
            Absent when the claim has no id
          allOf:
            - $ref: '#/components/schemas/AsyncRedeemClaimId'
      required:
        - type
        - contract
        - transferable
    AsyncRedeemSettlement:
      type: object
      properties:
        type:
          type: string
          enum:
            - push
            - claim
          description: >-
            `push`: the protocol sends tokenOut to the beneficiary (or current
            receipt holder) without further action. `claim`: a transaction must
            be sent to `call` once the redeem is claimable
        by:
          type: string
          enum:
            - holder
            - controller
            - anyone
          description: Who may send the claim transaction. Present for `claim`
        call:
          description: Claim call. Present for `claim`
          allOf:
            - $ref: '#/components/schemas/AsyncRedeemCall'
      required:
        - type
    AsyncRedeemTiming:
      type: object
      properties:
        kind:
          type: string
          enum:
            - delay
            - queue
            - epoch
            - operator
          description: >-
            What the wait depends on: a fixed delay, a queue, an epoch, or an
            operator
        minSeconds:
          type: number
        estimatedSeconds:
          type: number
        claimWindowSeconds:
          type: number
          description: Seconds the claim stays claimable before it expires
      required:
        - kind
    AsyncRedeemCancel:
      type: object
      properties:
        contract:
          type: string
          description: Contract to call
        signature:
          type: string
          description: >-
            Human-readable ABI fragment, e.g. `function claimWithdrawal(uint256
            requestId)`
        by:
          type: string
          enum:
            - holder
            - controller
            - beneficiary
          description: Who may cancel
      required:
        - contract
        - signature
        - by
    AsyncRedeemRefund:
      type: object
      properties:
        by:
          type: array
          description: >-
            Who can unwind the request: the user through `cancel`, a protocol
            `operator`, or the protocol itself (`automatic`), for example when
            the payout fails
          items:
            type: string
            enum:
              - holder
              - controller
              - beneficiary
              - operator
              - automatic
        settlement:
          $ref: '#/components/schemas/AsyncRedeemRefundSettlement'
      required:
        - by
        - settlement
    AsyncRedeemCall:
      type: object
      properties:
        contract:
          type: string
          description: Contract to call
        signature:
          type: string
          description: >-
            Human-readable ABI fragment, e.g. `function claimWithdrawal(uint256
            requestId)`
      required:
        - contract
        - signature
    AsyncRedeemClaimId:
      type: object
      properties:
        event:
          type: string
          description: >-
            Human-readable ABI fragment of the event that carries the claim id.
            `claim.contract` emits it in the transaction that files the request
            on `chainId`. Cross-chain, that is the destination transaction, not
            the one the user signs
        arg:
          type: string
          description: Event argument holding the claim id
      required:
        - event
        - arg
    AsyncRedeemRefundSettlement:
      type: object
      properties:
        type:
          type: string
          enum:
            - push
            - claim
            - manual
          description: >-
            `push`: tokenIn is sent back to `beneficiary`, the account set at
            request, even if the claim was transferred. `claim`: a transaction
            must be sent to `call` to get tokenIn back. `manual`: nothing
            returns tokenIn on-chain, the protocol settles it off-chain
        by:
          type: string
          enum:
            - holder
            - controller
            - anyone
          description: Who may send the refund claim. Present for `claim`
        call:
          description: Refund claim call. Present for `claim`
          allOf:
            - $ref: '#/components/schemas/AsyncRedeemCall'
      required:
        - type

````

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