moonpay-buy-crypto
Buy crypto with fiat via MoonPay. Returns a checkout URL to complete the purchase in a browser.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- moonpay-buy-crypto
- tags
- [ "trading" ]
- description
- Buy crypto with fiat via MoonPay. Returns a checkout URL to complete the purchase in a browser.
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md151 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
Buy crypto with fiat
Goal
Generate a MoonPay checkout URL for buying crypto with a credit card or bank transfer. The user completes the purchase in their browser.
Command
mp buy \
--token <currency-code> \
--amount <usd-amount> \
--wallet <destination-address> \
--email <buyer-email>
Supported tokens
btc, sol, eth, trx, pol_polygon, usdc, usdc_sol, usdc_base, usdc_arbitrum, usdc_optimism, usdc_polygon, usdt_trx, eth_polygon, eth_optimism, eth_base, eth_arbitrum
Example flow
- User: "I want to buy $50 of SOL with my credit card."
- Run:
mp buy --token sol --amount 50 --wallet <address> --email user@example.com - Open the returned checkout URL in the user's browser so they can complete the purchase.
Notes
- This is fiat-to-crypto (credit card / bank), not a token swap.
- For token-to-token swaps, use the moonpay-swap-tokens skill instead.
- The
--amountflag is in USD (e.g.--amount 50= $50 worth of the token). - The
--tokenflag uses MoonPay currency codes, not mint addresses. - The checkout URL handles KYC and payment processing.
Related skills
- moonpay-swap-tokens — Swap between tokens (no fiat).
- moonpay-discover-tokens — Search for tokens.
- moonpay-auth — Ensure user is logged in.
04 同仓库更多 Skills
recipe-performance
Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold/warm/background-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout/paint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.
mexc-spot-websocket
MEXC Spot WebSocket workflows for public streams, protobuf handling, depth maintenance, listen keys, and private streams without exposing API keys.
mexc-spot-rest
MEXC Spot REST workflows for public data, signed account requests, orders, wallet/admin actions, and secure signing without exposing API keys.
mexc-futures-websocket
MEXC Futures WebSocket workflows for public streams, private account/order/position streams, ping/pong, subscriptions, and depth maintenance.
0xklen-version-and-refresh-sanctions-lists
暂无简介
verify-tests-cover-changed-lines
Use when a PR adds code that the existing suite may not exercise. Measures patch coverage — the share of newly changed lines hit by tests — before approving.