Live Demo
Try the Trails widget live. Configure, preview, and copy code.
React Starter Kit
Minimal React template for Trails with Earn, Swap, Pay, and Fund modes integrated.
NextJS Starter Kit
Minimal NextJS template for Trails with Earn, Swap, Pay, and Fund modes integrated.
Get Your API Key: Join the Trails Telegram group to request your API access key for Trails.
1
Install the SDK and dependencies
2
Import and Use the Widget
Add the widget to your React application, for example send 1 USDC cross-chain to a recipient on Base.
Next steps
Trails is optimized for a variety of common use cases or flows for your application:- Pay: Enable cross-chain, 1-click payments with any token for ecommerce platforms, NFT marketplaces, real-world asset purchases, and minimal-slippage stablecoin transactions.
- Swap: Embed low-latency, highly liquid cross-chain token swaps for your applications.
- Fund: Maximize TVL and transaction velocity through fully brandable funding widgets for protocol deposits such as perpetual exchanges, chain deposits, and liquidity provisioning.
- Earn: Streamline DeFi yield opportunities by enabling deposits from your app into already integrated tokenized vaults, lending pools, and yield strategies from any token on any chain.
- Configuration: Full list of variables & hooks to customize Trails including different modes, theming, enabling gasless transactions, events, and quote providers.
- API Integration: Want full control over your UI / UX or integrating server-side? Leverage our endpoints directly to build your own chain abstraction flows.
@latest with @1.0.0 or your desired version.