This workflow demonstrates bridging tokens using Relay protocol with automatic post-bridge execution. Relay uses a placeholder-based design for dynamic amount resolution, making it ideal for complex workflows where amounts are determined at execution time. Route Mechanics: This bundle swaps USDC to ETH, bridges to Arbitrum via Relay, then wraps to WETH: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.
- Swap USDC to native ETH on Ethereum using Enso routing
- Bridge ETH from Ethereum to Arbitrum using Relay (supports native tokens)
- Check ETH balance on Arbitrum after successful bridge
- Wrap ETH to WETH on Arbitrum
relayBridgeWithCallback.ts
- Relay supports both ERC20 and native token bridging
- No callback data limit - uses placeholder-based design for dynamic amounts
- Fee is taken from the bridged token amount (no separate fee token)
- API-based quote system determines optimal routing
- For Relay,
primaryAddressis the token address itself
Key Differences from Other Bridges
| Feature | Relay | CCIP | Stargate | CCTP |
|---|---|---|---|---|
| Native Token | Yes | No | Yes | No (USDC only) |
| Callback Limit | Unlimited | ~30KB | ~9.5KB | Not supported |
| Fee Token | Token itself | Native | Native | USDC (from minted amount) |
| Amount Resolution | Dynamic (placeholders) | Pre-computed | Pre-computed | Pre-computed |
| Token Coverage | ERC20 + native | Whitelisted ERC20 | OFT-enabled tokens | USDC only |
Resources
- Crosschain Routing Guide - Complete guide to crosschain operations
- Bridge Action Reference - Technical details on bridge parameters
Updated
