route and bundle API operate in crosschain mode. On supported chains, the route API runs destination steps through an intent route by default.
For custom bundles, use the bridge action to facilitate cross-chain token transfers using one of seven supported bridge protocols: CCIP, CCTP (USDC-only), Relay, Stargate, Mayan, LayerZero Teller or Arbitrum native.
For example: bridge assets to chains where protocols exist, execute operations such as minting, then optionally bridge results back to your origin chain and deposit them in a yield-bearing position.
Solana destinations
The Route API supports EVM → Solana transfers. Enso can compose operations on the source EVM chain; the route ends with token delivery on Solana, without destination callbacks or composition. See Solana routing for the request requirements, example, route modes, and delivery tracking.Quick Start
- Crosschain Stablecoin Minting (Stargate)
- Crosschain Swap
Core Concepts
Bridge Protocols
Enso supports seven bridge protocols: CCIP (Chainlink), CCTP (Circle, USDC-only), Relay, Stargate (LayerZero), Mayan (Swift), LayerZero Teller (vault shares), and Arbitrum native (canonical deposits). Each has different characteristics for callback limits, native token support, and fee handling.
Protocol Discovery
Use protocol-specific APIs to discover bridge addresses:
GET /api/v1/ccip/router?chainId={chainId} for CCIP,
/cctp/bridge/tokenmessengerv2 for
CCTP, /layerzero/pool for
Stargate.Native Drop
Parent bridge calls calculate gas fees required for all child bridge
operations and include these costs in the initial transaction fee.
Post-Bridge Execution
Callback actions execute atomically within their destination transaction after
asynchronous bridge delivery. Monitor source and destination status separately.
Intent routes
A crosschainroute request uses an intent route when the route needs execution on the destination chain, such as a swap or deposit after bridging. The source transaction bridges an ERC-20 bridge token to a one-time intent address on the destination chain and publishes the encrypted intent. Enso’s keeper then runs the destination route and sends tokenOut to receiver. Native tokens are never the bridge token on an intent route.
Intents are used when useIntentAddress is omitted and the keeper supports both chains. A candidate whose bridge delivers tokenOut directly stays a plain bridge transfer. Candidates compete and the best one wins. Same-chain routes ignore useIntentAddress.
Set useIntentAddress to false to get a bridge callback route instead:
slippage=0, ignoreStandards, allowAsync=true, or ignoreAggregators values an intent cannot encode, and when it finds no intent route. Setting useIntentAddress to true with any of these options returns a 400.
An intent route response differs from a callback route:
intentcontains the intentaddressanddata.routeshows the destination steps as a singleensoroutehop.metadata.bridgeFeesincludes anintentExecutionentry. This is the keeper fee, charged in the bridge token.amountOutis net of the keeper fee. The keeper enforcesminAmountOuton the destination chain.validUntilis at most the intent deadline minus the bridge delivery estimate and a 2-minute buffer. This cap never sets it earlier than 60 seconds after the quote.
minAmountOut before the intent deadline, the bridged token is refunded on the destination chain. The refund goes to refundReceiver, or to receiver when refundReceiver is not set. The deadline is about 7 minutes for Relay, CCTP, Mayan and most Stargate lanes, and 45 minutes for CCIP. Slower bridge pathways get longer deadlines. A transaction submitted after validUntil still bridges, then refunds instead of running the destination route.
A caller fee with destinationFeeReceiver is charged by the keeper on the destination chain. Without destinationFeeReceiver, the fee is charged on the source chain, as on callback routes.
Track an intent route with GET /api/v1/bridge/route. The response includes an intent object with the keeper’s progress. The route status is delivered once the keeper has executed and failed once the bridged token is refunded. Until then it stays inflight with traversal set to awaiting-execution. The keeper’s transaction is intent.executionTxHash.
Bridge Protocols
Enso supports seven bridge protocols, each with different characteristics:When to Use Each Bridge
CCIP (Chainlink)
CCIP (Chainlink)
Best for: High-security transfers requiring source chain finalization guarantees.
- Higher callback data limit (30KB) allows complex post-bridge operations
- Waits for source chain finality before executing callbacks, ensuring transaction irreversibility
- Does not support native token bridging (use wrapped tokens)
CCTP (Circle)
CCTP (Circle)
Best for: Native USDC transfers across chains where the recipient shouldn’t need destination gas.See the CCTP Bridge use case for full details on fees, fallbacks, and the manual claim flow. Per-chain Fast/Standard support comes from Circle’s supported blockchains matrix.
- USDC only — bridges burn-and-mint, not wrapped
- Supports only the HyperCore deposit callback shape; use CCIP/Stargate/Relay for other post-bridge actions
- Auto-relayed by Circle’s Forwarding Service in both fast and standard modes
- Fees deducted from minted amount: protocol fee (Fast only, ~Iris
minimumFee* 1.20) + forwarding fee (low/med/high, always) protocolArgs.transferTypedefaults tofastwhere supported, otherwise silently falls back tostandard
Relay
Relay
Best for: Flexible bridging with dynamic amounts and native token support.
- Uses placeholder-based design for dynamic amount resolution
- No callback data limit (amounts resolved at execution time)
- Supports both ERC20 and native token bridging
- API-based fee calculation
Mayan (Swift)
Mayan (Swift)
Best for: Fast USDC, USDT, ETH and WETH transfers, and bridging to Solana.
- Solvers fill Swift orders on the destination chain, usually within seconds
- Bridges USDC, USDT (including USD₮0 and USDT0), ETH and WETH. Enso swaps other tokens into one of these first
- Supports Solana as a destination. Solana routes need an EVM
refundReceiver - No destination callbacks. Destination execution after a Mayan bridge runs only through an intent route
- One Mayan bridge per transaction
- Refunds go to the source chain, to
refundReceiver, or the spender or sender when it is not set - Route selection tries Mayan after the other bridges
Stargate (LayerZero)
Stargate (LayerZero)
Best for: Native token bridging and LayerZero ecosystem integration.
- Full native token support
- Tight callback data limit (~9.5KB) - keep callbacks concise
- Uses LayerZero messaging for cross-chain communication
LayerZero Teller
LayerZero Teller
Best for: Moving Veda BoringVault shares, such as eBTC, between chains where the vault runs a teller.
- Burns the shares on the source chain and mints the same amount on the destination
- Lanes come from verified teller deployments. Today that is eBTC between Ethereum and Optimism
primaryAddressis the source chain’s teller- The LayerZero fee is read on-chain at execution and paid in the native token
- No destination callbacks. Destination execution after a Teller bridge runs only through an intent route
- Track delivery with the Stargate status endpoint, which also detects Teller sends
Arbitrum native
Arbitrum native
Best for: ETH deposits from Ethereum to Arbitrum or Robinhood over the canonical bridge.
- Canonical parent-to-child deposits only. Withdrawals back to Ethereum are not supported
- Bridges ETH on the Ethereum → Arbitrum and Ethereum → Robinhood lanes. Enso swaps other tokens into ETH first
primaryAddressis the lane’s Inbox:0x4Dbd4fc535Ac27206064B68FfCf827b0A60BAB3ffor Arbitrum,0x1A07cc4BD17E0118BdB54D70990D2158AbAD7a2Dfor Robinhood- The retryable ticket’s submission and gas fees are added to
tx.valueand reported inmetadata.bridgeFees - Delivery waits for Ethereum finality, about 12 minutes
- No destination callbacks. Destination execution runs only through an intent route
- If the automatic redeem on the child chain fails, Bridge Status reports
ready_for_manual_execution, and anyone can redeem the ticket before it expires - Receivers with code on Ethereum, such as Safes, still receive the deposit, but any excess fee is refunded to the receiver’s aliased address on the child chain
When to use Route vs Bundle API?
Use Route API for: Limitations: The route API automatically selects the optimal bridge protocol - bridge protocol cannot be explicitly selected. Cannot handle custom post-bridge logic or multi-step protocol interactions. See Bridge Transaction Status to track delivery after submission. Use Bundle API for:- crosschain position minting
- crosschain yield strategies
- CCIP bridging with callbacks
- mixed bridge protocols
- Relay bridging with callbacks
- CCTP USDC bridging
Examples
1. Simple Cross-Chain Swap
Use Route API for basic cross-chain operations with automatic pathfinding.SDK
2. Crosschain Vault Zap
In this example, we’ll route 1,000 USDC on Ethereum into Ether.fiweETH on Base. At the time of writing, the route swaps USDC to weETH on Ethereum and bridges it to Base with Stargate.
Try this route →
3. Cross-Chain Position Minting
Crosschain routing enables you to mint positions on different chains and bridge them back, while signing only once. In this example, we’ll bridge USDC from Berachain to Ethereum, mint rUSD using Reservoir protocol, then bridge it back to Berachain. About Reservoir: Reservoir is a stablecoin protocol that mints rUSD (a USD-pegged stablecoin) by accepting USDC as collateral on Ethereum mainnet.Use the GET
layerzero/pool API
or client.getLayerZeroPool() from the SDK to find the correct pool address
and use it as the primaryAddress for stargate.bridge operation.- Destination atomicity: Callback actions succeed or revert together on the destination chain. A callback failure cannot revert a finalized source transaction. Refund and recovery behavior is bridge-provider specific; monitor Bridge Status.
- Gas management: The source request includes the destination execution fees calculated for the selected bridge route.
- Output chaining: Callback references are local to the callback array. Start supported bridge callbacks with
enso:balance, then reference that delivered balance with{ useOutputOfCallAt: 0 }.
Refund metadata
SuccessfulPOST /shortcuts/route, POST /shortcuts/bundle, and GET /shortcuts/route/nontokenized responses include metadata.bridgeRefundAssets. It is an ordered list of bridge-principal refund destinations for the transaction Enso selected; an empty list is expected for same-chain routes and bridge flows without a protocol refund path.
protocol, refund chainId, principal token, and recipient; symbol is present when token metadata is available. Relay reports its source-chain refund destination. Stargate and CCIP report a destination-chain entry only when the bridge has callback data. Intent routes include a destination-chain entry for the bridge token and the intent’s refund address.
mintOnBeraFromMainnet.ts
4. Crosschain Yield Strategy
Nested callbacks enable multi-hop workflows, allowing operations that span multiple chains where different protocols exist. In this example, we’ll deposit rUSD into a Dolomite vault on Berachain, minting the rUSD on Ethereum from USDC bridged out of Berachain. The user starts with USDC on Berachain and ends with yield-generating vault shares with a single signature.mintOnBeraDepositOnMainnet.ts
5. CCIP Bridge with Callback
Use CCIP for ERC20 token bridging with larger callback payloads. This example bridges SolvBTC from BNB Chain to Ethereum, then swaps it to native ETH.Use
GET /api/v1/ccip/router?chainId={chainId} to get the CCIP Router address for the primaryAddress parameter.ccipBridgeWithCallback.ts
6. Mixed Bridge Protocols
Combine different bridge protocols in a single workflow. This example uses Stargate for the outbound bridge and CCIP for the return bridge, useful when different protocols support different token pairs.mixedBridgeProtocols.ts
7. Relay Bridge with Callback
Use Relay for bridging with dynamic amount resolution. This example bridges ETH from Ethereum to Arbitrum and wraps it to WETH.relayBridge.ts
8. CCTP Bridge
Bridge native USDC across chains with Circle’s CCTP — burn on the source, mint on the destination. Both fast and standard transfers are auto-relayed by Circle’s Forwarding Service, so the receiver never needs destination gas.cctpBridge.ts
Reference
Bridge Action Parameters
All bridge protocols share a common set of parameters:refundReceiver is not a generic bridge-action argument. Route-level dust/refund fields and recovery behavior depend on the selected endpoint and bridge provider.
Protocol-Specific Parameters
- CCIP
- CCTP
- Relay
- Stargate
primaryAddress: CCIP Router address from GET /api/v1/ccip/router?chainId={chainId}Callback limits:- Data limit: ~30KB
- Gas limit: 200k minimum; Chainlink sets the maximum for each lane
- ERC20 tokens only (no native token bridging)
- Fee paid in native token
Callback Requirements
- First action must be the
balanceaction:
- Reference previous outputs: Use
useOutputOfCallAtto chain actions together
- Nested callbacks: Bridge actions within callbacks enable multi-hop workflows across multiple chains
- Callback data limits: Keep callbacks concise for Stargate (~9.5KB limit). CCIP supports larger payloads (~30KB). Relay has no practical limit. CCTP supports only the HyperCore deposit callback shape.
Protocol Discovery APIs
Updated 2026-11-07
