Skip to content
Back to skills

Zo Moonpay Swap Tokens

ASecurity

Swap tokens or bridge assets with MoonPay on Zo. Use when the user wants to swap one token for another, bridge between supported chains, or move crypto through a MoonPay wallet workflow.

  • 11 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 10, 2026
toolsgobash

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 10, 2026

npx -y skills add luokai0/ai-agent-skills-by-luo-kai --skill zo-moonpay-swap-tokens --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Zo Moonpay Swap Tokens?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Zo Moonpay Swap Tokens
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/luokai0-zo-moonpay-swap-tokens/badge)](https://www.skillsdirectory.com/skills/luokai0-zo-moonpay-swap-tokens)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: moonpay-swap-tokens
description: Swap tokens or bridge assets with MoonPay on Zo. Use when the user wants to swap one token for another, bridge between supported chains, or move crypto through a MoonPay wallet workflow.
compatibility: Created for Zo Computer
metadata:
  author: Zo
  category: Official
  display-name: MoonPay Swap Tokens
---

# MoonPay Swap Tokens

Swap assets on the same chain or bridge them across supported chains using MoonPay on Zo.

## What Zo Uses

- [Terminal](/?t=terminal) for `mp token swap`, `mp token bridge`, and balance checks

## Prerequisites

- MoonPay CLI installed
- User authenticated
- Source wallet available
- Source balance available on the intended chain
- Token addresses or symbols resolved

## Preflight

Before any write action:

1. Confirm auth:

```bash
mp user retrieve
```

2. Confirm the wallet:

```bash
mp wallet list
```

3. Check source balance:

```bash
mp token balance list --wallet <address> --chain <chain>
```

4. If the user gave token names instead of addresses, resolve them first:

```bash
mp token search --query "USDC" --chain solana
```

5. Generate a quote before execution:

```bash
mp token quote \
  --from-chain <from-chain> \
  --from-token <from-token> \
  --from-amount <from-amount> \
  --to-chain <to-chain> \
  --to-token <to-token>
```

6. Summarize back to the user:
- source wallet
- source chain
- source token and amount
- destination token and chain
- quoted output amount
- quoted fees / route timing if available

Then require explicit confirmation before executing the swap or bridge.

## Swap Command

```bash
mp token swap \
  --wallet <wallet-name> \
  --chain <chain> \
  --from-token <token-address> \
  --from-amount <amount> \
  --to-token <token-address>
```

## Bridge Command

```bash
mp token bridge \
  --from-wallet <wallet-name> \
  --from-chain <chain> \
  --from-token <token-address> \
  --from-amount <amount> \
  --to-chain <chain> \
  --to-token <token-address> \
  --to-wallet <wallet-name>
```

## Notes

- Same-chain swaps use `mp token swap`
- Cross-chain movements use `mp token bridge`
- Native tokens use chain-specific native-token placeholders

## Failure Handling

- If the wallet is missing, switch to `moonpay-auth`
- If the balance is insufficient, stop before execution
- If token identification is unclear, resolve it before execution
- If the quote step fails, do not execute the swap or bridge blindly
- If the user does not clearly confirm the write action, do not proceed

## Safety Notes

- This is a write skill. Explicit confirmation is required before execution.
- Never infer a destination token or chain if the user did not specify it clearly.
- Present the planned route and amount in plain language before running the command.

## Related Skills

- `moonpay-auth`
- `moonpay-check-wallet`
- `moonpay-buy-crypto`

Files in this skill

  • DISPLAY.json77 B
  • SKILL.md2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.