End-to-end Across Protocol integration playbook. Default to the Swap API for all cross-chain bridging and swapping. Use the App SDK (@across-protocol/app-sdk) when you need programmatic quote and route control in TypeScript. Fall back to the suggested-fees API only for custom swap routing or niche bridge-only flows. Covers intent lifecycle, Swap API integration, embedded cross-chain actions, deposit tracking, fee collection, and security checklists.
Use this Skill when the user asks for:
The Swap API classifies routes using a shorthand based on whether each token is directly bridgeable (B) or requires a swap to/from a bridgeable token (A = Any):
| Abbreviation | Meaning | Example | |--------------|---------|---------| | B2B | Bridgeable → Bridgeable | USDC on Arbitrum → USDC on Base (no swaps, bridge only) | | A2B | Any → Bridgeable | WBTC on Arbitrum → USDC on Base (origin swap + bridge) | | B2A | Bridgeable → Any | USDC on Arbitrum → WBTC on Base (bridge + destination swap) | | A2A | Any → Any | WBTC on Arbitrum → DAI on Base (origin swap + bridge + destination swap) |
These abbreviations appear in crossSwapType responses and in refund behavior defaults.
GET /swap/approval for all crosschain swaps. It returns executable calldata to sign and submit.POST /swap/approval when you need embedded destination actions (mint, stake, deposit).appFee + appFeeRecipient for integrator fee collection./suggested-fees only when you control your own swap infrastructure and just need bridge fee quotes.depositV3 calls manually).exactInput (default): user specifies how much to send. Best for "swap X tokens" flows.minOutput: user specifies minimum to receive. Best for simple swaps without post-bridge actions.exactOutput: user needs a precise amount on destination. Best for multi-step flows (for example, exact ERC-20 amount for a mint).slippage=auto.refundOnOrigin=true/false when needed.refundAddress > recipient > depositor.| Task | Use |
|------|-----|
| Crosschain swap (any token to any token) | Swap API GET /swap/approval |
| Bridge + destination action (mint, stake) | Swap API POST /swap/approval with actions body |
| Programmatic TypeScript integration | App SDK createAcrossClient() |
| Bridge-only with custom swap routing | /suggested-fees + manual depositV3 |
| Direct on-chain intent (ERC-7683) | AcrossOriginSettler.open() on supported chains |
| Track a deposit | GET /deposit/status with depositTxnRef or originChainId + depositId |
Always be explicit about:
approvalTxns in Swap API responses/swap/approval and /suggested-fees responseshttps://testnet.across.to/apihttps://app.across.to/api) once integration logic is verified.When implementing changes, provide:
npx skills add across-protocol/Across Protocol AI 代理技能下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer