- 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 |
|---|---|---|---|
| Native Token | Yes | No | Yes |
| Callback Limit | Unlimited | ~30KB | ~9.5KB |
| Fee Token | Token itself | Native | Native |
| Amount Resolution | Dynamic (placeholders) | Pre-computed | Pre-computed |
Resources
- Crosschain Routing Guide - Complete guide to crosschain operations
- Bridge Action Reference - Technical details on bridge parameters
Updated
