# Trails ## Docs - [AbortIntent](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/abort-intent.md) - [CommitIntent](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/commit-intent.md) - [ExecuteIntent](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/execute-intent.md) - [GetChains](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/get-chains.md) - [GetEarnPools (deprecated)](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/get-earn-pools.md) - [GetExactInputRoutes](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/get-exact-input-routes.md) - [GetExactOutputRoutes](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/get-exact-output-routes.md) - [GetExchangeRate](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/get-exchange-rate.md) - [GetFiatCurrencyList](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/get-fiat-currency-list.md) - [GetIntent](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/get-intent.md) - [GetIntentHistory](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/get-intent-history.md) - [GetIntentReceipt](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/get-intent-receipt.md) - [GetTokenList](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/get-token-list.md) - [GetTokenPrices](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/get-token-prices.md) - [QuoteIntent](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/quote-intent.md) - [SearchIntents](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/search-intents.md) - [WaitIntentReceipt](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/wait-intent-receipt.md) - [YieldCreateEnterAction](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/yield-create-enter-action.md): Generate unsigned deposit transaction calldata for a DeFi yield market - [YieldCreateExitAction](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/yield-create-exit-action.md): Generate unsigned withdrawal transaction calldata for a DeFi yield position - [YieldGetAggregateBalances](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/yield-get-balances.md): Fetch a wallet's earn balances across chains and yield positions - [YieldGetMarkets](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/yield-get-markets.md): List and filter DeFi markets available through the Trails earn system - [YieldGetProviders](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/endpoints/yield-get-providers.md): List DeFi protocols available through the Trails earn system - [Getting Started](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/introduction.md): Learn how to integrate the Trails API for cross-chain transactions - [Trails API SDK](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/trails-api-sdk.md): TypeScript/JavaScript client for the Trails API - [Pay Gas with Any Token](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/architecture/alt-fee-tokens.md): Users can pay gas in any permit-compatible, non-native token - [How Trails Works](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/architecture/how-it-works.md): Core architecture and design of the Trails transaction rails protocol - [Pricing & Fees](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/architecture/pricing-fees.md): Understanding the fee structure and pricing model for Trails transactions - [Protocol Architecture](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/architecture/protocol.md): Core architecture and design of the Trails protocol - [Trails Contracts](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/architecture/smart-contracts.md): Trails protocol smart contracts and security audits - [Liquidity Sources](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/architecture/unified-liquidity.md): How Trails integrates with Liquidity providers including solvers, fillers, and bridges - [HydrateProxy and Composable Actions](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/architecture/v1-5.md): How HydrateProxy enables dynamic on-chain value injection, and how Composable Actions expose it as a typed developer interface. - [Gasless Transactions](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/examples/gasless.md): Enable users to pay gas fees with ERC-20 tokens like USDC or USDT instead of native gas. - [Refunds & Recovery](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/examples/refunds.md): How Trails handles automatic refunds and how users retain full control over their funds - [Tokens, Chains & Prices](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/examples/tokens-chains-prices.md): Use Trails built-in indexer and methods to retrieve supported tokens, chains, and live prices - [Intent & Transaction History](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/examples/transaction-history.md): Retrieve account & intent transaction history for an address with the Trails SDK. - [Wallet Compatibility](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/examples/wallet-compatibility.md): Comprehensive wallet integration support and compatibility across different blockchain ecosystems - [x402 Payments](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/examples/x402.md): Learn how to integrate Trails with gasless HTTP payment authentication using x402 - [Quickstart](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/get-started.md): Integrate Trails in under 5 minutes - [What is Trails?](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/intro.md): The onchain transaction rails for every token from every chain with every wallet with one, aggregated balance - powered by intents. - [Cross-Chain Execution](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/overview/cross-chain-execution.md): Overview of cross-chain execution capabilities, transaction routing, and multi-blockchain coordination mechanisms - [LLM Integrations](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/resources/llm-integration.md): Integrate Trails with AI agents for automated payments, from MCP servers to custom function calling. - [Supported Chains](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/resources/supported-chains.md): Complete list of supported blockchain networks, chain IDs, and token availability. - [Building Actions](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/composable-actions/building-actions.md): Full builder API: swap, lend, deposit, assertCondition, and custom - [Dynamic Values](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/composable-actions/dynamic-values.md): Runtime placeholders for amounts and addresses: dynamic() and self() - [ERC-20 Helpers](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/composable-actions/erc20-helpers.md): Token registry, calldata builders, and slippage helper for composing actions - [Markets & Providers](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/composable-actions/markets-and-providers.md): Discover markets and supported providers at runtime - [Overview](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/composable-actions/overview.md): Composable Actions allow developers to easily specify multiple actions to take on a destination chain that can compose with multiple protocols. - [Quickstart](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/composable-actions/quickstart.md): Compose multiple DeFi steps into a single cross-chain intent - [Supported Chains](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/composable-actions/supported-chains.md): Chain identifiers and swap provider coverage for composable actions - [Configuration](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/configuration.md): Complete configuration reference for the Trails SDK - [Customization](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/customization.md): Customize the Trails widget appearance with CSS variables - [Getting Started](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/get-started.md): Installing and using the Trails SDK - [Hooks](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/hooks.md): React Hooks and utilities available in the Trails SDK - [Earn](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/modes/earn.md): DeFi yield and staking deposits with the focused Earn component - [Fund](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/modes/fund.md): Deposit funds into a wallet, protocol, or chain with the focused Fund component - [Pay](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/modes/pay.md): Accept exact-output payments with the focused Pay component - [Swap](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/modes/swap.md): Cross-chain token swaps with the focused Swap component - [Withdraw](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/modes/withdraw.md): Guided token withdrawals with the focused Withdraw component - [Route Providers](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/quote-providers.md): Configure and optimize route providers for cross-chain interactions - [Theming and Customization](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/theming.md) - [Tokens & Chains](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/sdk/tokens-and-chains.md): Working with supported tokens and chains in the Trails SDK - [Composable Actions](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/use-cases/composable-actions.md): Chain multiple DeFi steps into a single cross-chain intent using the composable actions builders. - [Earn](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/use-cases/earn.md): How Trails supports common flows for DeFi protocols, yield opportunities, perpetual exchanges, vault deposits, and more to accelerate TVL and volume. - [Fund](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/use-cases/fund.md): Trails supports depositing funds directly into your protocol, exchange, app, or chain with any token from any chain or via fiat onramps. - [Pay](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/use-cases/pay.md): Accept stablecoin payments from any chain with automatic bridging and swapping. - [Swap](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/use-cases/swap.md): Leverage Trails to swap and bridge tokens cross-chain seamlessly for your app. ## OpenAPI Specs - [trails-api.gen](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/trails-api.gen.yaml) - [before-annotations-trails-api.gen](https://anypay-docs-sdk-0-15-0-updates.mintlify.app/api-reference/before-annotations-trails-api.gen.json) ## Optional - [Demo Playground](https://demo.trails.build/widget) - [Trails Status](https://status.trails.build)