These routes are for performing simple or multi-step token exchanges, leveraging Enso’s aggregator to find the most efficient path for the swap.
Note on Route Mechanics: The steps listed below are illustrative of a possible path. Enso’s API dynamically calculates the most efficient route at the moment of execution, so the exact swaps and bridges may vary based on real-time market conditions.
Table of Contents

Swap USDC.e to PUSD on Plume

Swap bridged USDC.e for the PUSD stablecoin on Plume. Try this route →
// SDK Example
const client = new EnsoClient({
apiKey: 'your-api-key'
});

const routeData = await client.getRouteData({
 fromAddress: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',
 receiver: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',
 chainId: 98866,
 amountIn: ['1000000000000000000'],
 slippage: '300',
 tokenIn: ['0x54FD4da2Fa19Cf0f63d8f93A6EA5BEd3F9C042C6'],
 tokenOut: ['0xdddD73F5Df1F0DC31373357beAC77545dC5A6f3F'],
 routingStrategy: 'router'
});

// If using 'router' strategy, approval is often required for the input token.
await sendSmartWallet(client.getApprovalData(routeData.route.tokenIn[0]));
await sendSmartWallet(routeData.tx, routeData.gas);
Route Mechanics:
  • Swap bridged USDC.e to PUSD.

Swap BERA to HONEY

Swap the native gas token, BERA, for the native stablecoin, HONEY, on Berachain. Try this route →
import { Address, EnsoClient, RouteParams } from "@ensofinance/sdk";

const BERACHAIN_MAINNET = 80094;
const userAddress = "your-wallet-address" as Address;

const BERA = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" as Address;
const HONEY = "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590" as Address;

const routeParams: RouteParams = {
 fromAddress: userAddress,
 receiver: userAddress,
 chainId: BERACHAIN_MAINNET,
 amountIn: ["1000000000000000000"], // 1 BERA
 tokenIn: [BERA],
 tokenOut: [HONEY],
 routingStrategy: "delegate",
 slippage: "50", // 0.5% slippage
 referralCode: "kodiak-swap",
};

const route = await client.getRouteData(routeParams);
await sendSmartWallet(route.tx, route.gas);
Route Mechanics:
  • Swap BERA to HONEY through Enso’s routing.

Convert HYPE to Staked HYPE (kHYPE)

Stake the native HYPE token to receive its yield-bearing equivalent, kHYPE. Try this route →
const HYPE = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" as Address;
const KHYPE = "0xfd739d4e423301ce9385c1fb8850539d657c296d" as Address;

const routeParams: RouteParams = {
 fromAddress: userAddress,
 receiver: userAddress,
 chainId: HYPEREVM_CHAIN,
 amountIn: ["1000000000000000000"], // 1 HYPE
 tokenIn: [HYPE],
 tokenOut: [KHYPE],
 routingStrategy: "router",
 slippage: "50", // 0.5% slippage
 referralCode: "kinetiq-native",
};

const route = await client.getRouteData(routeParams);
// If using 'router' strategy, approval is often required for the input token.
await sendSmartWallet(client.getApprovalData(route.route.tokenIn[0]));

// sign with an EOA with `router` routing strategy
await sendSmartWallet(route.tx, route.gas);
Route Mechanics:
  • Swap native HYPE to kHYPE.

Swap USDC.e to get superOETH on Origin

Swap bridged USDC.e and convert it into a superOETH position on Origin. Try this route →
// SDK Example
const client = new EnsoClient({
apiKey: 'your-api-key'
});

const routeData = await client.getRouteData({
 fromAddress: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',
 receiver: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',
 chainId: 98866,
 amountIn: ['1000000000'],
 slippage: '300',
 tokenIn: ['0x78adD880A697070c1e765Ac44D65323a0DcCE913'],
 tokenOut: ['0xFCbe50DbE43bF7E5C88C6F6Fb9ef432D4165406E'],
 routingStrategy: 'delegate'
});
await sendSmartWallet(routeData.tx, routeData.gas);
Route Mechanics:
  • swap USDC.e for SUPEROETH