moonpay/skills/moonpay-swap-tokens
Claude Code and agent skill by moonpay/skills
- community
Checking that the SKILL.md file is still in the repository.
Swap tokens on the same chain or bridge tokens across chains. Use when the user wants to swap, bridge, or move tokens.
Install
npx vskill@latest install moonpay/skills/moonpay-swap-tokensSKILL.md
The same SKILL.md was published earlier as solizardking/skillhub-main/moonpay-swap-tokens.
Swap or bridge tokens
Goal
Swap tokens on the same chain, or bridge tokens across chains. Two commands:
- `mp token swap` — same chain, different tokens
- `mp token bridge` — cross chain
Both build via swaps.xyz, sign locally, broadcast, and register for tracking.
Commands
Swap (same chain)
Supports exact-out: use --to-amount instead of --from-amount.
Bridge (cross chain)
Supports exact-out: use --to-amount instead of --from-amount.
Examples
Same-chain swap (SOL → USDC on Solana)
Cross-chain bridge (ETH → USDC.e on Polygon)
ERC20 swap (auto-approves if needed)
Supported chains
solana, ethereum, base, polygon, arbitrum, optimism, bnb, avalanche, bitcoin (bridges only)
How it works
- Resolves wallet name → address
- Builds unsigned transaction via swaps.xyz (handles decimal conversion)
- If ERC20 token needs approval, sends an approve transaction first, then re-builds
- Signs locally — private key never leaves the machine
- Broadcasts to the network
- Registers for tracking
token swap calls token bridge under the hood with from-chain = to-chain.
Tips
- If the user provides token names/symbols, resolve to addresses with
mp token search --query "USDC" --chain solana - Check balances first with
mp token balance list --wallet <address> --chain <chain> - Native tokens use
0x0000000000000000000000000000000000000000(EVM) orSo11111111111111111111111111111111111111111(Solana)
Related skills
- moonpay-discover-tokens — Search for token addresses
- moonpay-check-wallet — Check balances before swapping
- moonpay-auth — Set up wallets for signing
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/moonpay-swap-tokens/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/moonpay/skills/moonpay-swap-tokens)