1inch-swap

Installation
SKILL.md

1inch Swap

Use the authenticated MCP tool swap. Do not hand-build calldata for normal flows.

Recommended: connect the user's wallet first (WalletConnect)

Unless the user explicitly wants to sign with their own tooling (private key, cast, viem), offer WalletConnect before executing: pair via the walletconnect tool (see the 1inch-walletconnect skill), then call swap. With an active session, execute defaults to true — the tool handles approve txs, EIP-712 signing, submission, and native escrow sends through the connected wallet, and the user simply approves each prompt in their wallet app. No key handling, no manual signing steps.

  • Set execute: false only when the user wants unsigned calldata / typed data to sign elsewhere.
  • Set execute: true explicitly to require a wallet session (errors if not connected).

Modes

  • Classic — on-chain via aggregation router; user pays gas. preferredType: "classic".
  • Fusion — gasless intent; resolvers fill. preferredType: "fusion".
  • Cross-chain — set dstChain; preferredType: "crosschain".

Approaches

Installs
10
Repository
1inch/1inch-ai
GitHub Stars
2
First Seen
Aug 10, 2026
1inch-swap — 1inch/1inch-ai