简介
通过MoltsPay协议用USDC/USDT或支付宝CNY支付AI服务,支持8条链的无Gas交易与法币支付通道
原始描述
Pay for and use AI services via MoltsPay protocol. Trigger: User asks to generate video, use a paid service, etc. Auto-discovers services from /.well-known/a...
通过你的 Agent 添加
安装目录:moltspay-skill/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
MoltsPay Client Skill 是面向AI服务支付的跨链支付网关,核心功能包括:
钱包管理:moltspay init一键创建多链钱包(EVM统一地址+Solana独立地址),支持Base、Polygon、BNB、opBNB、Solana等8条链,原生集成USDC/USDT稳定币。
法币与加密双轨支付:
- Crypto Rail:Gasless交易(除BNB首笔需微量Gas),通过x402协议实现无ETH/MATIC/SOL的零Gas体验
- Fiat Rail:MoltsPay 2.0新增支付宝通道,可直接用CNY支付定价为人民币的服务,无需任何加密钱包余额
服务发现与支付:自动从/.well-known/agent-services.json发现服务,支持市场聚合浏览与单提供商直连。支付时通过--chain参数灵活选择结算链,智能处理单链自动选择、多链手动指定场景。
资金充值:提供"零加密知识"的QR码充值(借记卡/Apple Pay约2分钟到账),或直接链上转账两种模式。
显著优点
- 极致用户体验:无需理解Gas、私钥管理、链选择等复杂概念,扫码即用
- 多链聚合:单私钥管理EVM全生态+Solana双体系,余额状态统一管理
- 合规友好:支付宝法币通道服务中国用户群体,打通Web2与Web3支付鸿沟
- 安全机制:内置交易限额(单笔/日累计)、测试网水龙头、明确的错误处理指引
- 开放生态:标准JSON接口允许任意AI服务提供商接入
潜在局限
- 链间隔离:各链USDC余额不互通,需用户主动管理多链资金分布
- BNB特殊成本:首笔BNB交易需微量BNB Gas,打破"完全Gasless"承诺
- 法币覆盖有限:目前仅支持CNY/支付宝,未覆盖其他法币体系
- 依赖中心化:QR充值与支付宝结算依赖服务商托管,非纯自托管方案
- 生态早期:服务提供商数量有限,市场深度待培育
适合人群
- 希望用稳定币/USDT支付AI服务的加密原生用户
- 不愿学习复杂钱包操作、偏好扫码支付的Web2用户
- 需要服务中国市场、接受CNY结算的AI服务商
- 多链DeFi用户寻求统一的AI服务支付入口
常规风险
- 跨链资金误转:向EVM地址发送Solana USDC或反之将导致永久损失
- 服务商信任:支付后服务交付依赖提供商诚信,需选择声誉良好的服务方
- 汇率敞口:CNY与USDC定价服务存在隐含汇率风险
- 私钥安全:
init生成的私钥由客户端管理,设备丢失需重新初始化 - 监管不确定性:法币支付通道可能受地区支付政策影响
技能正文
name: moltspay-skill description: | Pay for and use AI services via MoltsPay protocol. Trigger: User asks to generate video, use a paid service, etc. Auto-discovers services from /.well-known/agent-services.json
MoltsPay Client Skill
Pay for AI services using USDC/USDT across 8 crypto chains (gasless), or in CNY via Alipay (支付宝) — the fiat rail added in MoltsPay 2.0.
When to Use
- User asks to generate a video, image, or use any paid AI service
- User asks about wallet balance or payment history
- User wants to discover available services
- User mentions "pay", "buy", "purchase" + AI service
Available Commands
| Command | Description |
|---|---|
moltspay init |
Create wallet (works on all EVM chains + Solana) |
moltspay fund <amount> |
Fund wallet via QR code (debit card/Apple Pay) |
moltspay status |
Check balance on all chains |
moltspay config |
Modify spending limits |
moltspay services <url> |
List services from a provider or marketplace |
moltspay pay <url> <service> --chain <chain> |
Pay for a service |
Supported Chains
| Chain | ID | Tokens | Notes |
|---|---|---|---|
| Base | base |
USDC, USDT | Recommended, lowest fees |
| Polygon | polygon |
USDC | Alternative EVM |
| BNB Chain | bnb |
USDC, USDT | High liquidity |
| opBNB | opbnb |
USDC | BNB L2, very low fees |
| Solana | solana |
USDC | Fast, separate wallet |
| Tempo | tempo_moderato |
pathUSD | Testnet only |
| Base Sepolia | base_sepolia |
USDC | Testnet |
| BNB Testnet | bnb_testnet |
USDC | Testnet |
| Solana Devnet | solana_devnet |
USDC | Testnet |
Fiat Rail — Alipay (new in MoltsPay 2.0)
In addition to the crypto chains above, MoltsPay 2.0 adds a fiat rail: pay in CNY via Alipay (支付宝).
| Rail | ID | Currency | Notes |
|---|---|---|---|
| Alipay | alipay |
CNY (yuan) | For services that price in CNY; no crypto balance needed |
- Use it the same way as a chain:
moltspay pay <url> <service> --chain alipay. - A service exposes a CNY price when its provider has the Alipay rail enabled; if a service is crypto-only, pay on one of the crypto chains instead.
- Settlement is handled by the Alipay rail — the agent does not manage a crypto wallet for these payments.
Wallet Setup
moltspay init creates wallets for all chains:
EVM Chains (Base, Polygon, BNB, opBNB, Tempo):
- Single address works on all EVM chains
- Same private key, different networks
Solana:
- Separate Ed25519 keypair
- Different address from EVM
After setup, tell user their wallet addresses and that they need to fund with USDC on their preferred chain.
Discover Services
Marketplace Discovery
List all services on MoltsPay marketplace:
moltspay services https://moltspay.com
Single Provider Discovery
List services from a specific provider:
moltspay services https://juai8.com/zen7
Shows provider name, wallet, supported chains, and all services with prices.
Present results as a table to users:
| Service | Price | Chains |
|---|---|---|
| text-to-video | $0.99 USDC | Base, Polygon, BNB |
| image-to-video | $1.49 USDC | Base, Polygon, BNB |
Never show raw JSON to users - always format nicely.
Chain Selection (Pay Only)
When paying:
- If server accepts only one chain → auto-selected
- If server accepts multiple chains → specify with
--chain
Examples:
# Pay on Base (recommended)
moltspay pay https://juai8.com/zen7 text-to-video --prompt "a cat dancing" --chain base
# Pay on Polygon
moltspay pay https://juai8.com/zen7 text-to-video --prompt "a cat dancing" --chain polygon
# Pay on BNB
moltspay pay https://juai8.com/zen7 text-to-video --prompt "a cat dancing" --chain bnb
# Pay on Solana
moltspay pay https://example.com/service image-gen --prompt "sunset" --chain solana
# Pay in CNY via Alipay (fiat, no crypto balance needed)
moltspay pay https://example.com/service text-to-video --prompt "a cat dancing" --chain alipay
Paying for Services
Use the moltspay pay command with the provider URL and service ID.
Parameters vary by service:
--promptfor text-based services--imagefor image-based services--chainto specify which chain to pay on--tokento specify token (USDC or USDT, default USDC)
Example: Zen7 video generation
moltspay pay https://juai8.com/zen7 text-to-video --prompt "sunset over ocean" --chain base
Spending Limits
Users can configure:
- max-per-tx: Maximum per transaction (default $2)
- max-per-day: Daily spending limit (default $10)
Use moltspay config to modify limits.
Funding Your Wallet
Option 1: QR Code (Easiest - No crypto needed!)
# Fund $10 on Base (recommended)
moltspay fund 10
# Fund $20 on Polygon
moltspay fund 20 --chain polygon
# Fund $10 on Solana
moltspay fund 10 --chain solana
Scan QR code → pay with US debit card or Apple Pay → tokens arrive in ~2 minutes.
No CDP credentials or crypto knowledge needed. Server handles everything.
Option 2: Direct Transfer
EVM Chains - Same address works on Base, Polygon, BNB, opBNB:
- Send USDC from Coinbase, MetaMask, etc.
- Make sure you're on the correct network!
Solana - Different address:
- Send USDC to your Solana wallet address
- Check with
moltspay status
⚠️ Important:
- Balance on Base ≠ Balance on Polygon ≠ Balance on Solana (separate!)
- Check balance per chain with
moltspay status - No ETH/MATIC/SOL needed for gas (gasless transactions via x402)
- Exception: BNB needs tiny amount of BNB for first approval (~$0.0001)
Common User Requests
"Generate a video of X"
- Check wallet status (
moltspay status) - If not initialized → run
moltspay init - If balance is 0 → tell user to fund wallet
- If funded → pay for text-to-video service with appropriate chain
- Return video URL to user
"What's my balance?"
Run moltspay status and report:
- Wallet addresses (EVM + Solana)
- Balance on each chain
- Spending limits
- Today's usage
"What services are available?"
Run moltspay services https://moltspay.com to list marketplace.
Format results as a clean table with service names, prices, and providers.
Error Handling
| Error | Solution |
|---|---|
| Insufficient balance | Fund wallet with USDC on the chain you want to use |
| Exceeds daily limit | Wait until tomorrow, or increase limit with moltspay config |
| Exceeds per-tx limit | Increase limit with moltspay config |
| Service not found | Verify service URL and ID |
| Chain mismatch | Server doesn't accept specified chain. Check supported chains. |
| Multi-chain required | Server accepts multiple chains. Specify --chain |
| BNB approval needed | First BNB payment needs tiny gas (~$0.0001 BNB) |
| Alipay not accepted | Service is crypto-only. Pay on a crypto chain instead |
Testnet Faucets
For testing without real money:
# Get 1 USDC on Base Sepolia
moltspay faucet --chain base_sepolia
# Get 1 USDC on BNB Testnet (+ 0.001 tBNB for gas)
moltspay faucet --chain bnb_testnet
# Get 1 USDC on Solana Devnet
moltspay faucet --chain solana_devnet
Limit: 1 USDC per address per 24 hours.
Links
- Docs: https://moltspay.com/docs
- Marketplace: https://moltspay.com/services
- GitHub: https://github.com/Yaqing2023/moltspay-skill
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。