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

# Bundle a list of actions

> Returns a single transaction bundling the submitted actions. For available actions, see `/actions` endpoint.



## OpenAPI

````yaml /public/openapi.json post /api/v1/shortcuts/bundle
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/bundle:
    post:
      tags:
        - DeFi Shortcuts
      summary: Bundle a list of actions
      description: >-
        Returns a single transaction bundling the submitted actions. For
        available actions, see `/actions` endpoint.
      operationId: BundleController_bundleShortcutTransaction
      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: routingStrategy
          required: false
          in: query
          description: >-
            Routing strategy to use. Use `delegate` when:

            - You want to specify `spender` 

            - You want to use the `harvest` or `deposit` action with `/bundle`
            endpoint
          schema:
            nullable: true
            enum:
              - ensowallet-v2
              - router
              - delegate
              - router-legacy
              - delegate-legacy
            type: string
        - 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: ignoreAggregators
          required: false
          in: query
          description: >-
            A list of swap aggregators to be ignored from consideration. See
            `/aggregators` endpoint for available aggregators
          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: referralCode
          required: false
          in: query
          description: >-
            Referral code that will be included in an on-chain event after
            encoding to hex. At most 16 characters.
          schema:
            maxLength: 16
            example: 0123456789ABCDEF
            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: skipQuote
          required: false
          in: query
          description: >-
            Flag to skip quoting (if true, amountOut and gas will not be
            returned)
          schema:
            type: boolean
        - name: executionMode
          required: false
          in: query
          description: Controls how quote is built based on execution mode
          schema:
            default: user
            enum:
              - user
              - backend
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/ActionToBundle'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BundleShortcutTransaction'
components:
  schemas:
    ActionToBundle:
      type: object
      properties:
        protocol:
          description: Protocol to interact with
          example: enso
          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
          example: route
        args:
          type: object
          description: >-
            Arguments specific to the action type. See the [action
            types](https://docs.enso.finance/reference/actions) for more
            details.
          discriminator:
            propertyName: action
          oneOf:
            - $ref: '#/components/schemas/ApproveArgs'
            - $ref: '#/components/schemas/BorrowArgs'
            - $ref: '#/components/schemas/BridgeArgs'
            - $ref: '#/components/schemas/DepositArgs'
            - $ref: '#/components/schemas/SingleDepositArgs'
            - $ref: '#/components/schemas/MultiDepositArgs'
            - $ref: '#/components/schemas/TokenizedSingleDepositArgs'
            - $ref: '#/components/schemas/TokenizedMultiDepositArgs'
            - $ref: '#/components/schemas/MultiOutSingleDepositArgs'
            - $ref: '#/components/schemas/DepositCLMMArgs'
            - $ref: '#/components/schemas/HarvestArgs'
            - $ref: '#/components/schemas/PermitTransferFromArgs'
            - $ref: '#/components/schemas/RedeemArgs'
            - $ref: '#/components/schemas/SingleRedeemArgs'
            - $ref: '#/components/schemas/MultiRedeemArgs'
            - $ref: '#/components/schemas/TokenizedSingleRedeemArgs'
            - $ref: '#/components/schemas/TokenizedMultiRedeemArgs'
            - $ref: '#/components/schemas/RedeemCLMMArgs'
            - $ref: '#/components/schemas/RepayArgs'
            - $ref: '#/components/schemas/SwapArgs'
            - $ref: '#/components/schemas/TransferArgs'
            - $ref: '#/components/schemas/TransferFromArgs'
            - $ref: '#/components/schemas/RouteArgs'
            - $ref: '#/components/schemas/SlippageArgs'
            - $ref: '#/components/schemas/BorrowWithPositionIdArgs'
            - $ref: '#/components/schemas/SingleDepositWithPositionIdArgs'
            - $ref: '#/components/schemas/SingleRedeemWithPositionIdArgs'
            - $ref: '#/components/schemas/RepayWithPositionIdArgs'
            - $ref: '#/components/schemas/CallArgs'
            - $ref: '#/components/schemas/SplitArgs'
            - $ref: '#/components/schemas/MergeArgs'
            - $ref: '#/components/schemas/BalanceArgs'
            - $ref: '#/components/schemas/MinAmountOutArgs'
            - $ref: '#/components/schemas/FeeArgs'
      required:
        - protocol
        - action
        - args
    BundleShortcutTransaction:
      type: object
      properties:
        bundle:
          type: array
          items:
            $ref: '#/components/schemas/ActionToBundle'
        gas:
          type: string
          description: Gas estimate for the transaction
        amountsOut:
          type: object
          description: Expected output amounts by token address
          additionalProperties:
            type: string
        route:
          description: The route the shortcut will use
          type: array
          items:
            $ref: '#/components/schemas/Hop'
        metadata:
          $ref: '#/components/schemas/ShortcutResponseMetadata'
        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'
        minAmountsOut:
          type: object
          description: Expected minimal output amounts by token address
          additionalProperties:
            type: string
        priceImpact:
          type: number
          nullable: true
          description: Price impact in basis points, null if USD price not found
        feeAmount:
          type: object
          description: Fees by token address
          additionalProperties:
            type: string
        userOp:
          description: The ERC-4337 user operation object
          allOf:
            - $ref: '#/components/schemas/UserOperation'
        approvals:
          description: >-
            Deprecated: use `preTransactions` instead. Legacy standards-required
            approvals that must be executed before the bundle.
          deprecated: true
          example:
            - from: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
              to: '0x1111111111111111111111111111111111111111'
              data: 0x
          type: array
          items:
            $ref: '#/components/schemas/BundleApprovalTransaction'
        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 for any bridge hops
          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.
      required:
        - bundle
        - metadata
        - createdAt
        - tx
    ApproveArgs:
      type: object
      description: Arguments for the approve action
      title: Approve
      properties:
        token:
          type: string
          description: The token address
        spender:
          type: string
          description: The spender address
        amount:
          type: string
          description: The amount to approve
      required:
        - token
        - spender
        - amount
    BorrowArgs:
      type: object
      description: Arguments for the borrow action
      title: Borrow
      properties:
        collateral:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          description: Address of token used for collateral
        tokenOut:
          type: string
          description: Address of token to borrow
        amountOut:
          type: string
          description: The amount to receive
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
      required:
        - collateral
        - tokenOut
        - amountOut
        - primaryAddress
    BridgeArgs:
      type: object
      description: Arguments for the bridge action
      title: Bridge
      properties:
        primaryAddress:
          type: string
          description: Address of the source bridge pool
          example: '0x38EA452219524Bb87e18dE1C24D3bB59510BD783'
        destinationChainId:
          type: number
          description: Chain ID of the destination network
          example: 42161
        tokenIn:
          type: string
          description: Address of token to bridge from source chain
          example: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
        amountIn:
          oneOf:
            - type: string
              description: Amount to bridge with full decimals
              example: '1000000000'
            - $ref: '#/components/schemas/OutputReference'
        receiver:
          type: string
          description: Address to receive bridged tokens on destination chain
          example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
        callback:
          type: array
          description: >-
            Array of actions to execute on the destination chain after bridging.
            CCTP currently supports only the [enso:balance,
            hypercore-spot:deposit] callback shape for USDC to HyperCore; other
            CCTP callbacks are rejected.
          items:
            type: object
            description: Any valid action that can be executed on the destination chain
        protocolArgs:
          type: object
          description: >-
            Protocol-specific bridge args. For CCTP, use transferType,
            forwardFee, and isHyperCoreTransfer.
          properties:
            transferType:
              type: string
              enum:
                - fast
                - standard
              description: >-
                CCTP only. Preferred finality threshold. Fast falls back to
                standard when unavailable.
              example: fast
            forwardFee:
              type: string
              enum:
                - low
                - med
                - high
              description: >-
                CCTP only. Forwarding Service fee bracket (destination-chain gas
                buffer). Applies to all CCTP transfers. Forwarding is always
                used to guarantee destination execution. Defaults to `med`. Pass
                `high` for more headroom against fee drift between quote and
                forward execution, or `low` to trade delivery headroom for a
                better quote. An under-budgeted maxFee can strand the transfer
                until Circle re-attempts.
              default: med
              example: med
            isHyperCoreTransfer:
              type: boolean
              description: >-
                CCTP HyperCore only. Prefer the [enso:balance,
                hypercore-spot:deposit] callback shape unless building
                protocol-level integrations.
              example: true
      required:
        - primaryAddress
        - destinationChainId
        - tokenIn
        - amountIn
        - receiver
    DepositArgs:
      type: object
      description: Arguments for the deposit action
      title: Deposit
      properties:
        tokenIn:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          description: Address of token to deposit
        tokenOut:
          type: string
          description: Address of token to receive
          nullable: true
        amountIn:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          description: The amount to send
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenIn
        - amountIn
        - primaryAddress
    SingleDepositArgs:
      type: object
      description: Arguments for the single deposit action
      title: SingleDeposit
      properties:
        tokenIn:
          type: string
          description: Address of token to deposit
        tokenOut:
          type: string
          description: Address of token to receive
          nullable: true
        amountIn:
          type: string
          description: The amount to send
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenIn
        - amountIn
        - primaryAddress
    MultiDepositArgs:
      type: object
      description: Arguments for the multi deposit action
      title: MultiDeposit
      properties:
        tokenIn:
          type: array
          items:
            type: string
          description: Addresses of tokens to deposit
        tokenOut:
          type: string
          description: Address of token to receive
          nullable: true
        amountIn:
          type: array
          items:
            type: string
          description: The amounts to send
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenIn
        - amountIn
        - primaryAddress
    TokenizedSingleDepositArgs:
      type: object
      description: Arguments for the tokenized single deposit action
      title: TokenizedSingleDeposit
      properties:
        tokenIn:
          type: string
          description: Address of token to deposit
        tokenOut:
          type: string
          description: Address of token to receive
        amountIn:
          type: string
          description: The amount to send
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenIn
        - tokenOut
        - amountIn
        - primaryAddress
    TokenizedMultiDepositArgs:
      type: object
      description: Arguments for the tokenized multi deposit action
      title: TokenizedMultiDeposit
      properties:
        tokenIn:
          type: array
          items:
            type: string
          description: Addresses of tokens to deposit
        tokenOut:
          type: string
          description: Address of token to receive
        amountIn:
          type: array
          items:
            type: string
          description: The amounts to send
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenIn
        - tokenOut
        - amountIn
        - primaryAddress
    MultiOutSingleDepositArgs:
      type: object
      description: Arguments for the multi out single deposit action
      title: MultiOutSingleDeposit
      properties:
        tokenIn:
          type: string
          description: Address of token to send
        tokenOut:
          type: array
          items:
            type: string
          description: Addresses of tokens to receive
        amountIn:
          type: string
          description: The amount to deposit
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenIn
        - tokenOut
        - amountIn
        - primaryAddress
    DepositCLMMArgs:
      type: object
      description: Arguments for the deposit CLMM action
      title: DepositCLMM
      properties:
        tokenIn:
          type: array
          items:
            type: string
          description: Addresses of tokens to deposit
        tokenOut:
          type: string
          description: Address of token to receive
        amountIn:
          type: array
          items:
            type: string
          description: The amounts to send
        ticks:
          type: array
          items:
            type: string
          description: Ticks for the deposit
        poolFee:
          type: string
          description: The fee for the pool to deposit into
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenIn
        - tokenOut
        - amountIn
        - ticks
        - poolFee
    HarvestArgs:
      type: object
      description: Arguments for the harvest action
      title: Harvest
      properties:
        token:
          type: string
          description: Address of token
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
      required:
        - token
        - primaryAddress
    PermitTransferFromArgs:
      type: object
      description: Arguments for the permit transfer from action
      title: PermitTransferFrom
      properties:
        token:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          description: Address of token to approve
        amount:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          description: The amount to approve
        sender:
          type: string
          description: The sender account
        receiver:
          type: string
          description: The receiver account
        nonce:
          type: string
          description: The nonce to prevent signature replays
        deadline:
          type: string
          description: The deadline on the permit signature
        signature:
          type: string
          description: The permit signature
      required:
        - token
        - amount
        - sender
        - receiver
        - nonce
        - deadline
        - signature
    RedeemArgs:
      type: object
      description: Arguments for the redeem action
      title: Redeem
      properties:
        tokenIn:
          type: string
          description: Address of token to send
          nullable: true
        tokenOut:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          description: Address of token to receive
        amountIn:
          type: string
          description: The amount to deposit
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenOut
        - amountIn
        - primaryAddress
    SingleRedeemArgs:
      type: object
      description: Arguments for the single redeem action
      title: SingleRedeem
      properties:
        tokenIn:
          type: string
          description: Address of token to send
          nullable: true
        tokenOut:
          type: string
          description: Address of token to receive
        amountIn:
          type: string
          description: The amount to deposit
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenOut
        - amountIn
        - primaryAddress
    MultiRedeemArgs:
      type: object
      description: Arguments for the multi redeem action
      title: MultiRedeem
      properties:
        tokenIn:
          type: string
          description: Address of token to send
          nullable: true
        tokenOut:
          type: array
          items:
            type: string
          description: Address of token to receive
        amountIn:
          type: string
          description: The amount to deposit
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenOut
        - amountIn
        - primaryAddress
    TokenizedSingleRedeemArgs:
      type: object
      description: Arguments for the tokenized single redeem action
      title: TokenizedSingleRedeem
      properties:
        tokenIn:
          type: string
          description: Address of token to send
        tokenOut:
          type: string
          description: Address of token to receive
        amountIn:
          type: string
          description: The amount to deposit
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenIn
        - tokenOut
        - amountIn
        - primaryAddress
    TokenizedMultiRedeemArgs:
      type: object
      description: Arguments for the tokenized multi redeem action
      title: TokenizedMultiRedeem
      properties:
        tokenIn:
          type: string
          description: Address of token to send
        tokenOut:
          type: array
          items:
            type: string
          description: Address of token to receive
        amountIn:
          type: string
          description: The amount to deposit
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenIn
        - tokenOut
        - amountIn
        - primaryAddress
    RedeemCLMMArgs:
      type: object
      description: Arguments for the redeem CLMM action
      title: RedeemCLMM
      properties:
        tokenIn:
          type: string
          description: Address of token to send
        tokenOut:
          type: array
          items:
            type: string
          description: Address of token to receive
        liquidity:
          type: string
          description: The amount of liquidity to redeem
        tokenId:
          type: string
          description: The token ID
        receiver:
          type: string
          description: The receiver account
          nullable: true
      required:
        - tokenIn
        - tokenOut
        - liquidity
        - tokenId
    RepayArgs:
      type: object
      description: Arguments for the repay action
      title: Repay
      properties:
        tokenIn:
          type: string
          description: Address of token to repay
        amountIn:
          type: string
          description: The amount to send
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
      required:
        - tokenIn
        - amountIn
        - primaryAddress
    SwapArgs:
      type: object
      description: Arguments for the swap action
      title: Swap
      properties:
        tokenIn:
          type: string
          description: Address of token to send
        tokenOut:
          type: string
          description: Address of token to receive
        amountIn:
          type: string
          description: The amount to deposit
        primaryAddress:
          type: string
          description: The receiver account
          nullable: true
        receiver:
          type: string
          description: Address of smart contract to interact with
        slippage:
          type: string
          description: Amount of slippage in BPS
          nullable: true
        poolFee:
          type: string
          description: The fee that the liquidity pool uses
          nullable: true
      required:
        - tokenIn
        - tokenOut
        - amountIn
        - receiver
    TransferArgs:
      type: object
      description: Arguments for the transfer action
      title: Transfer
      properties:
        token:
          type: string
          description: Address of token
        amount:
          type: string
          description: The amount to transfer
        receiver:
          type: string
          description: The receiver account
        id:
          type: string
          description: The ERC721 or ERC1155 id
          nullable: true
      required:
        - token
        - amount
        - receiver
    TransferFromArgs:
      type: object
      description: Arguments for the transfer from action
      title: TransferFrom
      properties:
        token:
          type: string
          description: Address of token
        amount:
          type: string
          description: The amount to transfer
        receiver:
          type: string
          description: The receiver account
        sender:
          type: string
          description: The sender account
        id:
          type: string
          description: The ERC721 or ERC1155 id
          nullable: true
      required:
        - token
        - amount
        - receiver
        - sender
    RouteArgs:
      type: object
      description: Arguments for the route action
      title: Route
      properties:
        tokenIn:
          type: string
          description: Address of token to send
        tokenOut:
          type: string
          description: Address of token to receive
        amountIn:
          type: string
          description: The amount to deposit
        primaryAddress:
          type: string
          description: The receiver account
          nullable: true
        receiver:
          type: string
          description: Address of smart contract to interact with
        slippage:
          type: string
          description: Amount of slippage in BPS. Must be from 1 to 9999.
          nullable: true
        poolFee:
          type: string
          description: The fee that the liquidity pool uses
          nullable: true
      required:
        - tokenIn
        - tokenOut
        - amountIn
        - receiver
    SlippageArgs:
      type: object
      description: Arguments for setting slippage tolerance for an output amount
      title: Slippage
      properties:
        amountOut:
          oneOf:
            - type: string
              description: Expected output amount with full decimals
              example: '980000000000000000'
            - $ref: '#/components/schemas/OutputReference'
        bps:
          type: string
          description: Maximum acceptable slippage in basis points (1 bps = 0.01%)
          example: '100'
      required:
        - amountOut
        - bps
    BorrowWithPositionIdArgs:
      type: object
      description: Arguments for the borrow with position ID action
      title: BorrowWithPositionId
      properties:
        collateral:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          description: Address of token used for collateral
        tokenOut:
          type: string
          description: Address of token to borrow
        amountOut:
          type: string
          description: The amount to receive
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        positionId:
          type: string
          description: The position ID to borrow against
      required:
        - collateral
        - tokenOut
        - amountOut
        - primaryAddress
        - positionId
    SingleDepositWithPositionIdArgs:
      type: object
      description: Arguments for the single deposit with position ID action
      title: SingleDepositWithPositionId
      properties:
        tokenIn:
          type: string
          description: Address of token to deposit
        tokenOut:
          type: string
          description: Address of token to receive
          nullable: true
        amountIn:
          type: string
          description: The amount to send
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
        positionId:
          type: string
          description: The position ID to deposit into
      required:
        - tokenIn
        - amountIn
        - primaryAddress
        - positionId
    SingleRedeemWithPositionIdArgs:
      type: object
      description: Arguments for the single redeem with position ID action
      title: SingleRedeemWithPositionId
      properties:
        tokenIn:
          type: string
          description: Address of token to send
          nullable: true
        tokenOut:
          type: string
          description: Address of token to receive
        amountIn:
          type: string
          description: The amount to deposit
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        receiver:
          type: string
          description: The receiver account
          nullable: true
        positionId:
          type: string
          description: The position ID to redeem from
      required:
        - tokenOut
        - amountIn
        - primaryAddress
        - positionId
    RepayWithPositionIdArgs:
      type: object
      description: Arguments for the repay with position ID action
      title: RepayWithPositionId
      properties:
        tokenIn:
          type: string
          description: Address of token to repay
        amountIn:
          type: string
          description: The amount to send
        primaryAddress:
          type: string
          description: Address of smart contract to interact with
        positionId:
          type: string
          description: The position ID to repay
      required:
        - tokenIn
        - amountIn
        - primaryAddress
        - positionId
    CallArgs:
      type: object
      description: Arguments for the generic call action
      title: Call
      properties:
        target:
          type: string
          description: The contract address to call
        data:
          type: string
          description: The encoded function call data
        value:
          type: string
          description: The amount of ETH to send with the call
          default: '0'
      required:
        - target
        - data
    SplitArgs:
      type: object
      description: Arguments for splitting a token amount into multiple portions
      title: Split
      properties:
        token:
          type: string
          description: Token address to split
        amount:
          oneOf:
            - type: string
              description: Total amount to split with full decimals
            - $ref: '#/components/schemas/OutputReference'
        portions:
          type: array
          items:
            type: object
            properties:
              percentage:
                type: string
                description: Percentage in basis points (1 bps = 0.01%)
              receiver:
                type: string
                description: Address to receive this portion
            required:
              - percentage
              - receiver
          description: Array of split portions with percentages and receivers
      required:
        - token
        - amount
        - portions
    MergeArgs:
      type: object
      description: Arguments for merging multiple token amounts
      title: Merge
      properties:
        token:
          type: string
          description: Token address to merge
        amounts:
          type: array
          items:
            oneOf:
              - type: string
              - $ref: '#/components/schemas/OutputReference'
          description: Array of amounts to merge
        receiver:
          type: string
          description: Address to receive the merged amount
      required:
        - token
        - amounts
        - receiver
    BalanceArgs:
      type: object
      description: Arguments for checking token balance
      title: Balance
      properties:
        token:
          type: string
          description: Token address to check balance for
        account:
          type: string
          description: Account address to check balance of
      required:
        - token
        - account
    MinAmountOutArgs:
      type: object
      description: Arguments for setting minimum output amount
      title: MinAmountOut
      properties:
        token:
          type: string
          description: Token address for minimum amount check
        minAmount:
          type: string
          description: Minimum acceptable amount with full decimals
      required:
        - token
        - minAmount
    FeeArgs:
      type: object
      description: Arguments for applying a custom fee to a token amount
      title: Fee
      properties:
        token:
          type: string
          description: Token address to apply the fee to
        amount:
          oneOf:
            - type: string
              description: Amount to apply the fee to with full decimals
            - $ref: '#/components/schemas/OutputReference'
        bps:
          type: string
          description: Fee percentage in basis points (1 bps = 0.01%)
        receiver:
          type: string
          description: Address to receive the fee
      required:
        - token
        - amount
        - bps
        - receiver
    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
    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
    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
    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
    BundleApprovalTransaction:
      type: object
      properties:
        to:
          type: string
        from:
          type: string
        data:
          type: string
        description:
          type: string
      required:
        - to
        - from
        - data
    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
    OutputReference:
      type: object
      properties:
        useOutputOfCallAt:
          type: integer
          description: Index of the previous action whose output should be used
        index:
          type: integer
          description: >-
            For actions that return multiple values, specifies which index to
            use
      required:
        - useOutputOfCallAt
    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

````

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