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

# DeFi and Swap Routing

> Find optimal paths for crosschain entering/exiting DeFi positions or swapping ERC20 tokens.

The Route API is Enso's **crosschain automated pathfinding engine** that calculates optimal multi-step paths between any two DeFi positions - `tokenIn` and `tokenOut`. Whether you're swapping tokens, entering yield vaults, or moving assets across chains, the Route API handles the complex routing logic automatically.

> [!TIP]
>
> **Would `route` do the job?** \\
>
> The `route` API might be the simpler way to route your assets.
> Before using the bundle API, check if `route` would work using [happypath](https://happypath.enso.build).

**Routing vs Bundling**: The Route API excels at single-path operations where you want Enso to determine the optimal route automatically. For custom multi-step workflows where you need precise control over each action, use the [Bundle API](https://docs.enso.build/api-reference/defi-shortcuts/bundle-a-list-of-actions.md) instead.

**When to use routing**: Token swaps with optimal pricing, vault entries/exits, position migrations between protocols, crosschain transfers, and any scenario where you want automated route optimization rather than manually specifying each step.

![](https://mintcdn.com/enso/nu8qK2z1ysTh8AfC/images/router-light.webp?fit=max\&auto=format\&n=nu8qK2z1ysTh8AfC\&q=85\&s=39efe7210d30e7b623f30c0ede379b38)

## Quick Start

The `route` API produces a gas-optimized, atomic transaction between the two given positions, combining `swap`, `deposit`, and `redeem` operations.

> [!NOTE]
>
> Use the [Bundle API](https://docs.enso.build/pages/build/get-started/bundling-actions.md) if you need other [actions Enso supports](https://docs.enso.build/pages/build/reference/actions.md), such as `harvest`, `borrow`, `repay`.

## Sample requests

> [tab] Token Swap
>
> ```typescript theme={null}
> const route = await ensoClient.getRouteData({
>   fromAddress: "0x...",
>   chainId: 1,
>   tokenIn: ["0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"], // ETH
>   tokenOut: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"], // USDC
>   amountIn: ["1000000000000000000"], // 1 ETH
>   slippage: "50", // 0.5%
>   routingStrategy: "router",
> });
>
> await wallet.sendTransaction(route.tx);
> ```

> [tab] Vault Entry (Zap)
>
> ```typescript theme={null}
> const route = await ensoClient.getRouteData({
>   fromAddress: "0x...",
>   chainId: 1,
>   tokenIn: ["0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"], // ETH
>   tokenOut: ["0xa258c4606ca8206d8aa700ce2143d7db854d168c"], // yvWETH
>   amountIn: ["1000000000000000000"], // 1 ETH
>   slippage: "50", // 0.5%
>   routingStrategy: "router",
> });
>
> // ETH → WETH → Yearn vault automatically
> await wallet.sendTransaction(route.tx);
> ```

> [tab] Crosschain swap
>
> ```typescript theme={null}
> const route = await ensoClient.getRouteData({
>   fromAddress: "0x...",
>   receiver: "0x...",
>   chainId: 1, // Ethereum
>   destinationChainId: 8453, // Base
>   tokenIn: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"], // USDC Ethereum
>   tokenOut: ["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"], // USDC Base
>   amountIn: ["1000000000"], // 1,000 USDC
>   slippage: "50", // 0.5%
>   routingStrategy: "router",
> });
>
> // Bridge USDC from Ethereum to Base
> await wallet.sendTransaction(route.tx);
> ```

> [tab] Crosschain Vault Zap
>
> ```typescript theme={null}
> const route = await ensoClient.getRouteData({
>   fromAddress: "0x...",
>   receiver: "0x...",
>   chainId: 1, // Ethereum
>   destinationChainId: 8453, // Base
>   tokenIn: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"], // USDC Ethereum
>   tokenOut: ["0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A"], // weETH vault on Base
>   amountIn: ["1000000000"], // 1,000 USDC
>   slippage: "50", // 0.5%
>   routingStrategy: "router",
> });
>
> // Bridge + vault entry in one transaction
> await wallet.sendTransaction(route.tx);
> ```

[See complete examples with full setup and explanations →](#1-simple-token-swap)

## Core Concepts

> [card] Input/Output Model
>
> Specify any `tokenIn` and `tokenOut` - ERC20 tokens, LP tokens, vault shares, or yield positions. The Route API automatically finds the optimal path between any two DeFi positions across protocols and chains.

> [card] [Response](#examples)
>
> Response contains a complete transaction object ready to sign (`tx`), `amountOut` (expected output), `gas` (estimated), and `route` (optimized path taken).

> [card] Slippage Control
>
> Set slippage in basis points: `"50"` = 0.5%, `"100"` = 1%. **Cannot use both `slippage` and `minAmountOut`** - choose one protection method.

> [card] Crosschain Operations
>
> Add `destinationChainId` for crosschain routes. API automatically selects optimal bridges and calculates fees.

> [!NOTE]
>
> EVM → Solana routes end with token delivery on Solana. See [Solana routing](https://docs.enso.build/pages/build/get-started/solana-routing.md) for the request requirements, a complete example, and delivery tracking.

## Control Crosschain Route Complexity

For crosschain Route API requests, `crosschainRouteMode` controls where Enso may add same-chain routing around the bridge. It defaults to `"full"`; omit it to allow routing on both chains.

| `crosschainRouteMode` | Allowed route shape |
| - | - |
| `"direct"` | Bridge the requested `tokenIn` directly into the requested `tokenOut`. |
| `"source"` | Route on the source chain before bridging, then bridge directly into `tokenOut`. |
| `"destination"` | Bridge `tokenIn` directly, then route on the destination chain. |
| `"sourceOrDestination"` | Allow routing on the source or destination chain, but not both. |
| `"full"` | Route before and after the bridge. This is the default. |

Use a narrower mode when your product requires a specific crosschain route shape. This option applies only when `destinationChainId` is set.

Solana destinations support source-side EVM composition only. See [Solana route modes](https://docs.enso.build/pages/build/get-started/solana-routing.md#route-modes) for how each mode applies.

Crosschain routes that need execution on the destination chain use an [intent route](https://docs.enso.build/pages/build/get-started/crosschain-routing.md#intent-routes) by default. Set `useIntentAddress` to `false` to use a bridge callback instead.

## Trade Latency for Route Quality

`effort` controls how long Enso searches for a route before it responds. It is accepted by the Route API (`GET` and `POST`) and by `GET /api/v1/shortcuts/quote`. Omit it to use your API key's default, which is `"high"` unless your key is configured for `"max"`.

| `effort` | What Enso does | Use it for |
| - | - | - |
| `"light"` | Waits at most 500 ms for aggregator quotes and responds as soon as two usable quotes pass simulation. Searches fewer candidate paths. On crosschain routes, compares at most two bridge options and does not route on the destination chain. | Price previews and other quotes that refresh often. |
| `"medium"` | Waits 500 ms for aggregator quotes without responding early, then picks the best. Searches the full set of candidate paths. On crosschain routes, compares at most three bridge options. | Interactive quotes where response time matters but you want the full path search. |
| `"high"` | Waits about one second for aggregator quotes, and longer when none has arrived or the best one shows high price impact. On pairs quoted recently, it asks the likely winner first, so it often responds sooner. This is the default. | Executable quotes for most trades. |
| `"max"` | Queries every aggregator in parallel, waits longer for all of them to respond, and picks the route with the highest output. Costs 25 extra credits per request. | Large trades, where a few basis points matter more than response time. |

```bash theme={null}
curl --request GET \
  --url 'https://api.enso.build/api/v1/shortcuts/route?chainId=1&fromAddress=0xd8da6bf26964af9d7eed9e03e53415d37aa96045&receiver=0xd8da6bf26964af9d7eed9e03e53415d37aa96045&tokenIn=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&tokenOut=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2&amountIn=1000000000&slippage=50&routingStrategy=router&effort=light' \
  --header "Authorization: Bearer $ENSO_API_KEY"
```

In internal tests on popular same-chain pairs, `"light"` responded about three times faster than `"high"`, and its output was usually within a basis point of it. The gap grew on large trades and long-tail tokens, to about 20 basis points. On crosschain routes that do better with a swap on the destination chain, `"light"` returned up to about 50 basis points less. `"high"` and `"max"` usually returned the same output on popular pairs.

> [!WARNING]
>
> **`"light"` doesn't route on the destination chain.** It narrows `crosschainRouteMode`:
>
> * `"full"` and `"sourceOrDestination"` become `"source"`.
> * `"destination"` becomes `"direct"`.
>
> If `tokenOut` can't be bridged directly, the request fails with `400 No supported bridge route`. For example, WETH on Arbitrum to native HYPE on HyperEVM. Use `"medium"` or higher for those routes.

Because `"light"` and `"medium"` compare fewer bridge options, they can select a different bridge than `"high"`, with a different delivery time.

## Response Structure

Use these fields to build the quote review screen:

| Field | What it means | Show it as |
| - | - | - |
| `tx` | Complete transaction object ready for submission. Contains the correct `to`, `data`, `value`, and `from`; use the top-level `gas` estimate for the gas limit. | The transaction your wallet signs. Submit it as-is. |
| `amountOut` | Simulated output amount from the selected route. | Expected output or estimated received amount. |
| `minAmountOut` | Slippage-protected minimum output when available. On an intent route the keeper enforces it on the destination chain. | Minimum received amount. |
| `gas` | Estimated gas usage from simulation. | Network cost estimate and transaction gas value. |
| `priceImpact` | Estimated price impact for the route when available. | Price impact warning or route quality indicator. |
| `route` | Compact list of meta-action hops in the selected route. Split and merge hops can include `internalRoutes`, the nested paths used to construct that hop. | Route details, protocols, or path disclosure. |
| `detailedRoute` | Optional ordered route segments. Each segment contains `tokensIn`, `weights`, and `paths` with the underlying standard actions. | Advanced route inspection. Do not use it to construct the transaction. |
| `preTransactions` | Transactions that may need to run before `tx`, including token approvals and protocol setup. Skip token approvals when the current allowance is sufficient. | Required setup transactions, in execution order. |
| `metadata.bridgeFees` | Bridge and intent execution fees by protocol, component, source and destination chain, fee token, amount, and quote type. Amounts use the fee token's base unit. `deductedFromAmountOut` indicates whether the fee already reduced the quoted output. | Bridge fee breakdown. |
| `intent` | Present on [intent routes](https://docs.enso.build/pages/build/get-started/crosschain-routing.md#intent-routes). Contains the one-time intent `address` and the intent `data`. The destination steps then appear in `route` as a single `enso` `route` hop. | Nothing extra to submit. The intent is published by `tx`. |
| `validUntil` | Unix timestamp in seconds after which the quote expires. On an intent route a late transaction still bridges, but the bridged token is refunded on the destination chain. | Quote expiry. |

Execute each required `preTransactions` entry before submitting `tx`. The `type` is `tokenApproval` for ordinary ERC-20 approvals or `requiredApproval` for protocol-specific setup. Submit each nested `tx` unchanged.

Set `includeTransactionCost` to `true` to include `transactionCost` and `transactionCostUsd` in the response. It also adds `amountUsd` to each `metadata.bridgeFees` entry and the aggregate `metadata.bridgeFeeUsd`. The aggregate includes maximum fee reserves, is omitted when there are no fees, and is `null` when any non-zero fee cannot be priced. `transactionCost` is a point-in-time estimate in the source chain's native token smallest unit. `transactionCostUsd` is its decimal USD value. Either transaction cost field can be `null` when the source-chain fee estimate or native-token price is unavailable.

The estimate covers mandatory source-chain execution fees. It excludes priority fees, `tx.value`, bridge fees, and destination-chain execution, so treat it as a lower bound rather than the final wallet fee.

> [!TIP]
>
> Always use the complete `tx` object returned by the API, and use the `gas` value for your transaction.
>
> * The `to` address varies based on routing strategy, and other fields like `value` and `data` are precisely calculated for your specific route.
> * The `gas` value estimate comes from actual simulation and helps prevent out-of-gas transaction failures.

## Examples

The following examples progress from simple token swaps to complex crosschain vault interactions. Each example builds on concepts from previous ones, demonstrating how the Route API handles increasingly sophisticated DeFi operations automatically.

### 0. Install & Authenticate

You can interact with the API using Enso SDK or directly via a REST API.

You can explore Enso through [API Sandbox](https://docs.enso.build/api-reference/).

To install the SDK run the following command:

```bash theme={null}
npm i @ensofinance/sdk
pnpm i @ensofinance/sdk
yarn add @ensofinance/sdk
```

To use the API, authenticate using the [API key](https://docs.enso.build/pages/build/get-started/authentication.md).

### 1. Simple Token Swap

Start with the most basic routing operation: swapping ETH for USDC on Ethereum mainnet.

```typescript SDK theme={null}
import { EnsoClient } from "@ensofinance/sdk";

const ensoClient = new EnsoClient({
  apiKey: "your-api-key-here",
});

const fromAddress = "0xd8da6bf26964af9d7eed9e03e53415d37aa96045";
const receiver = "0xd8da6bf26964af9d7eed9e03e53415d37aa96045";
const spender = "0xd8da6bf26964af9d7eed9e03e53415d37aa96045";
// ETH → USDC swap with 0.5% slippage

const swapRoute = await ensoClient.getRouteData({
  fromAddress,
  receiver,
  spender,
  chainId: 1,
  amountIn: ["1000000000000000000"], // 1 ETH
  tokenIn: ["0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"], // ETH
  tokenOut: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"], // USDC
  slippage: "50", // 0.5%
  routingStrategy: "router",
});
console.log("Expected USDC output:", swapRoute.amountOut);
console.log("Estimated gas:", swapRoute.gas);
console.log("Swap route complexity:", swapRoute.route.length, "steps");
// Use route.tx to execute the transaction
const txHash = await wallet.sendTransaction(swapRoute.tx);
```

```bash cURL theme={null}
curl --request POST \
  --url https://api.enso.build/api/v1/shortcuts/route \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer $ENSO_API_KEY" \
  --data '{
    "chainId": 1,
    "fromAddress": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "routingStrategy": "router",
    "receiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "spender": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "tokenIn": ["0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"],
    "tokenOut": ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],
    "amountIn": ["1000000000000000000"],
    "slippage": "50"
  }' | jq
```

### 2. Zap into Vault

Enter a Yearn vault directly from ETH, automatically handling any intermediate swaps and vault deposits.

```typescript SDK theme={null}
// ETH → yvWETH (Yearn WETH vault) with 0.5% slippage
const vaultEntry = await ensoClient.getRouteData({
  fromAddress,
  receiver,
  spender,
  chainId: 1,
  amountIn: ["1000000000000000000"], // 1 ETH
  tokenIn: ["0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"], // ETH
  tokenOut: ["0xa258c4606ca8206d8aa700ce2143d7db854d168c"], // yvWETH
  slippage: "50", // 0.5%
  routingStrategy: "router",
});
console.log("yvWETH shares received:", vaultEntry.amountOut);
console.log("Route complexity:", vaultEntry.route.length, "steps");
// Route typically: ETH → WETH → deposit to Yearn vault
```

```bash cURL theme={null}
# ETH → yvWETH (Yearn WETH vault) with 0.5% slippage
curl --request POST \
  --url https://api.enso.build/api/v1/shortcuts/route \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer $ENSO_API_KEY" \
  --data '{
    "chainId": 1,
    "fromAddress": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "routingStrategy": "router",
    "receiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "spender": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "tokenIn": ["0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"],
    "tokenOut": ["0xa258c4606ca8206d8aa700ce2143d7db854d168c"],
    "amountIn": ["1000000000000000000"],
    "slippage": "50"
  }' | jq
```

**What's happening:** The router automatically wraps ETH to WETH, then deposits into the Yearn vault. The `amountOut` represents vault shares, not underlying tokens.

### 3. Vault Migration

Move from one yield protocol to another - exit Yearn vault and enter Aave lending position.

```typescript SDK theme={null}
// yvWETH → aWETH (migrate from Yearn to Aave)
const migration = await ensoClient.getRouteData({
  fromAddress,
  receiver,
  spender,
  chainId: 1,
  amountIn: ["1000000000000000000"], // 1 yvWETH
  tokenIn: ["0xa258c4606ca8206d8aa700ce2143d7db854d168c"], // yvWETH
  tokenOut: ["0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8"], // aWETH
  slippage: "50", // 0.5%
  routingStrategy: "router",
});
console.log("aWETH tokens received:", migration.amountOut);
console.log("Migration complexity:", migration.route.length, "steps");
// Route: yvWETH → withdraw to WETH → deposit to Aave → receive aWETH
```

```bash cURL theme={null}
# Route: yvWETH → withdraw to WETH → deposit to Aave → receive aWETH
curl --request POST \
  --url https://api.enso.build/api/v1/shortcuts/route \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer $ENSO_API_KEY" \
  --data '{
    "chainId": 1,
    "fromAddress": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "routingStrategy": "router",
    "receiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "spender": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "tokenIn": ["0xa258c4606ca8206d8aa700ce2143d7db854d168c"],
    "tokenOut": ["0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8"],
    "amountIn": ["1000000000000000000"],
    "slippage": "50"
  }' | jq
```

**Complex routing:** This involves exiting one protocol (Yearn) and entering another (Aave). The route array will show multiple steps including withdrawal, potential swaps, and final deposit.

### 4. Crosschain Transfer

Move assets between blockchains using Enso's integrated bridge routing.

```typescript SDK theme={null}
// USDC from Ethereum → USDC.e on Plume Network
const crossChain = await ensoClient.getRouteData({
  fromAddress,
  receiver,
  spender,
  chainId: 1, // Ethereum
  destinationChainId: 98866, // Plume Network
  amountIn: ["1000000000"], // 1,000 USDC
  tokenIn: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"], // USDC on Ethereum
  tokenOut: ["0x78adD880A697070c1e765Ac44D65323a0DcCE913"], // USDC.e on Plume
  slippage: "50", // 0.5%
  routingStrategy: "router",
});
console.log("USDC.e on Plume:", crossChain.amountOut);
console.log("Bridge fees:", crossChain.metadata.bridgeFees);
console.log("Crosschain complexity:", crossChain.route.length, "steps");
```

```bash cURL theme={null}
# USDC from Ethereum → USDC.e on Plume Network
curl --request POST \
  --url https://api.enso.build/api/v1/shortcuts/route \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer $ENSO_API_KEY" \
  --data '{
    "chainId": 1,
    "destinationChainId": 98866,
    "fromAddress": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "routingStrategy": "router",
    "receiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "spender": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "tokenIn": ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],
    "tokenOut": ["0x78adD880A697070c1e765Ac44D65323a0DcCE913"],
    "amountIn": ["1000000000"],
    "slippage": "50"
  }' | jq
```

**Crosschain considerations:** `metadata.bridgeFees` shows bridge protocol fees, and `route` reveals pre- and post- bridging steps.

### 5. Crosschain Vault Zapping

The most complex example: bridge assets and enter a vault on the destination chain in one transaction.

```typescript SDK theme={null}
// USDC Ethereum → myPUSD vault on Plume (crosschain vault zap)
const crossChainVault = await ensoClient.getRouteData({
  fromAddress,
  receiver,
  spender,
  chainId: 1, // Ethereum
  destinationChainId: 98866, // Plume Network
  amountIn: ["2000000000"], // 2,000 USDC
  tokenIn: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"], // USDC on Ethereum
  tokenOut: ["0xAf5aEAb2248415716569Be5d24FbE10b16590D6c"], // myPUSD vault on Plume
  slippage: "50", // 0.5%
  routingStrategy: "router",
});
console.log("myPUSD vault shares:", crossChainVault.amountOut);
console.log("Total route steps:", crossChainVault.route.length);
console.log("Estimated gas:", crossChainVault.gas);
```

```bash cURL theme={null}
# USDC Ethereum → myPUSD vault on Plume (crosschain vault zap)
curl --request POST \
  --url https://api.enso.build/api/v1/shortcuts/route \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer $ENSO_API_KEY" \
  --data '{
    "chainId": 1,
    "destinationChainId": 98866,
    "fromAddress": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "routingStrategy": "router",
    "receiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "spender": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "tokenIn": ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],
    "tokenOut": ["0xAf5aEAb2248415716569Be5d24FbE10b16590D6c"],
    "amountIn": ["2000000000"],
    "slippage": "50"
  }' | jq
```

**Maximum complexity:** This combines crosschain bridging with vault interaction.

## Route vs Bundle Output

Route returns a single optimized path from the requested input position to the requested output position. The `route` array explains the actions Enso selected, while `tx`, `amountOut`, and `gas` are the execution fields your application should display and submit.

Bundle returns a transaction built from the explicit actions you provide. When bundled actions include routing, the response can also include route-style information for those routed segments, giving users and reviewers more transparency into how the final transaction was constructed.

Use Route when the product can express the desired outcome as `tokenIn -> tokenOut`. Use Bundle when the product must control the exact sequence of actions, such as checking a bridged balance, harvesting rewards, borrowing, repaying, or depositing through a protocol-specific path.

## Related APIs & Next Steps

### When to Use Other APIs

* **[Bundle API](https://docs.enso.build/api-reference/defi-shortcuts/bundle-a-list-of-actions.md)**: When you need custom multi-step logic or want to orchestrate specific actions in sequence, or you need actions beyond `swap`, `deposit` and `redeem` the route API uses
* **[Nontokenized Positions](https://docs.enso.build/api-reference/defi-shortcuts/routing-to-a-non-tokenized-position.md)**: For lending positions that don't issue tokens (like Aave debt positions)
* **[Approval Endpoint](https://docs.enso.build/api-reference/defi-shortcuts/approve-enso-contract.md)**: Managing token permissions when using `"router"` strategy

### Supporting APIs

* **[Tokens API](https://docs.enso.build/api-reference/tokens/tokens.md)**: Discover available tokens and their addresses across chains
* **[Prices API](https://docs.enso.build/api-reference/tokens/token-price.md)**: Get current token valuations for your UI
* **[Networks API](https://docs.enso.build/api-reference/integration/networks.md)**: List supported chains and their details

Updated 2026-11-07


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