Zo moonpay swap tokens

From zocomputer/skills · View interactive version

Zo moonpay swap tokens is an AI agent skill from the GitHub repository zocomputer/skills. 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.

How to use this skill

Skill file

MoonPay Swap Tokens

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

What Zo Uses

Prerequisites

Preflight

Before any write action:

  1. Confirm auth:
mp user retrieve
  1. Confirm the wallet:
mp wallet list
  1. Check source balance:
mp token balance list --wallet <address> --chain <chain>
  1. If the user gave token names instead of addresses, resolve them first:
mp token search --query "USDC" --chain solana
  1. Generate a quote before execution:
mp token quote \
  --from-chain <from-chain> \
  --from-token <from-token> \
  --from-amount <from-amount> \
  --to-chain <to-chain> \
  --to-token <to-token>
  1. Summarize back to the user:

Then require explicit confirmation before executing the swap or bridge.

Swap Command

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

Bridge Command

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

Failure Handling

Safety Notes

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.