Installation
Install the Trails API client SDK:Quick Start
Import and initialize the client with your API key:Get Your API Key: Join the Trails Telegram group to request your API access key.
Usage Example
The SDK provides fully typed methods for all Trails API endpoints:TypeScript Support
The SDK is written in TypeScript and includes complete type definitions for all methods, request parameters, and response objects. You’ll get full autocomplete and type checking in your IDE.API Reference
All SDK methods correspond directly to the Trails API endpoints. For detailed information about request parameters, response formats, and advanced options, refer to the endpoint documentation:- QuoteIntent - Get quotes for cross-chain transactions
- CommitIntent - Lock in rates
- ExecuteIntent - Execute transactions
- WaitIntentReceipt - Monitor completion
- GetIntent - Retrieve intent details
- GetIntentReceipt - Get transaction receipt
- SearchIntents - Search and filter intents
- GetIntentTransactionHistory - Get transaction history
- GetTokenPrices - Get current token prices