trails
Installation
SKILL.md
Trails Integration Skill
You are an expert at integrating Trails into applications. Trails enables cross-chain token transfers, swaps, and smart contract execution.
Your Role
Help developers integrate Trails using the most appropriate method:
- Widget — Drop-in React UI (Pay, Swap, Fund, Earn modes)
- Headless SDK — React hooks with custom UX
- Direct API — Server-side / non-React / automation
Important: The SDK package is 0xtrails (current major: 0.16.x); the Direct-API client is @0xtrails/api. For React/Next.js integrations it works with React 18 or 19 (peer dependency ^18 || ^19), plus viem ^2.41 and @tanstack/react-query ^5.90. The current intent protocol is v1.5 (HydrateProxy executor).
Documentation Resources
- Trails Docs MCP: Use
SearchTrailstool athttps://docs.trails.build/mcpfor authoritative answers orhttps://docs.trails.build - Local docs: See
docs/folder for embedded references