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

# Op catalog

> Which op to use for each task, plus the live list of every op from the compose manifest.

Ops are the named steps of a `Flow`. Each op has input ports, output ports and a config schema. The SDK exposes every op as a typed method on the flow builder: `lifi.swap` is `builder.lifi.swap(...)`. IDE autocomplete on `@lifi/composer-sdk` shows each op's port names and config types. To wire ops together, see [Build a same-chain flow](https://docs.li.fi/composer/composer-api/guides/build-a-flow.md#chain-ops-in-your-flow).

## Choose an op

### Same-chain

| To | Use |
| - | - |
| Swap on one chain | [`lifi.swap`](https://docs.li.fi/composer/composer-api/ops/lifi-swap) through the LI.FI aggregator; `paraswap.buy` for an exact output amount; `fly.swap` when the input amount is only known at execution time. |
| Enter or exit a vault, lending market or staking position | [`lifi.zap`](https://docs.li.fi/composer/composer-api/ops/lifi-zap), through one edge of the [routing catalog](https://docs.li.fi/composer/protocols-and-chains.md). |
| Call a contract | [`core.call`](https://docs.li.fi/composer/composer-api/ops/core-call) by function signature; `core.rawCall` with encoded calldata. |
| Add or remove Uniswap liquidity | `uniswapV2.addLiquidity`, `uniswapV2.removeLiquidity`, `uniswapV3.mint`, `uniswapV3.increaseLiquidity`. See [Add liquidity on Uniswap](https://docs.li.fi/composer/composer-api/recipes/uniswap-liquidity.md). |
| Manage an Aave v3 or Morpho Blue position | `aave.*`, `morphoBlue.*`. |
| Split, merge, transfer or approve a resource | `core.split`, `core.splitAt`, `core.partition`, `core.merge`, `core.transfer` (always moves the whole input), `core.approve`. |
| Read a value | `core.staticCall` at execution time; `core.peek` at compile time, baked into the transaction as a constant; `core.balanceOf` for an ERC-20 balance. |
| Track a `uint256` return value as a resource | `core.asResource`. |
| Compute or check values | `core.add` and the other arithmetic ops; `core.assert*` to compare handles; `invariant.*` to compare against constants or check balances and allowances. Each check reverts the transaction when it fails. |
| Emit a custom log | `core.emitEvent1` to `core.emitEvent4`. |
| Run more steps later, from an escrow on the same chain | [`continuation.settle`](https://docs.li.fi/composer/composer-api/ops/continuation-settle) with external or inline funding. See [Same-chain continuations](https://docs.li.fi/composer/composer-api/concepts/cross-chain-flows.md#same-chain-continuations). |

### Cross-chain

| To | Use |
| - | - |
| Move tokens to another chain | [`lifi.bridge`](https://docs.li.fi/composer/composer-api/ops/lifi-bridge) through the LI.FI aggregator. |
| Move tokens through a LI.FI Intents order, optionally for an exact output | [`lifiIntents.order`](https://docs.li.fi/composer/composer-api/ops/lifi-intents-order), filled by a solver. The order's id is the output's `delivery.trackingId`. |
| Refund an unfilled LI.FI Intents order | `lifiIntents.refund` after the order expires. For an early refund, run `lifiIntents.attestNonFill` on the output chain after the fill deadline, then `lifiIntents.refundOnNonFill` on the input chain. A `resolution_error` from step 2 means the proof is not ready yet; retry later. |
| Run more steps on the destination chain once the funds arrive | [`continuation.settle`](https://docs.li.fi/composer/composer-api/ops/continuation-settle). See [Cross-chain flows](https://docs.li.fi/composer/composer-api/concepts/cross-chain-flows.md). |

The Uniswap deposit ops call the router with zero minimums. Protect them with a [`band`](https://docs.li.fi/composer/composer-api/guards/band) guard on the pool price port (`poolPrice` or `sqrtPriceX96`) and a [`slippage`](https://docs.li.fi/composer/composer-api/guards/slippage) guard on `liquidity`.

## Future outputs

A **future output** lands after the transaction that starts it has settled, usually on another chain. Three ops have one: `lifi.bridge.amountOut`, `lifiIntents.order.amountOut` and `continuation.settle.output`. A future output:

* **Can't feed another op in the same flow.** The exception: a `lifi.bridge` or `lifiIntents.order` output can fund a `continuation.settle` node, which starts a cross-chain flow. See [Cross-chain flows](https://docs.li.fi/composer/composer-api/concepts/cross-chain-flows.md).
* **Takes no guards.** Its `amount.minimum` is the minimum the bridge or the Intents solver committed to.
* **Reports how it arrives.** Its `delivery` is `{ when: 'future', etaSeconds?, provider?, trackingId? }`. See [`lifi.bridge` tracking](https://docs.li.fi/composer/composer-api/ops/lifi-bridge#track-the-delivery).

## Live catalog

The table below is read from `GET https://composer.li.quest/compose/manifest` when the page loads. It omits internal ops that you never write.


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