微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🏪

AI代理链上收款基础设施

Agent ToMerchant · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
专业技能 安全 A 级 作者 pandagg110 公开目录收录
718 下载 1 安装 2.7k 收藏 1 浏览

简介

SynapseAI官方商户层服务,为AI Agent提供USDT/USDC多链收款能力,一键生成支付链接与二维码, webhook实时到账通知。

原始描述

SynapseAI Merchant — AI agent payment receiving layer. Register as merchant, create wallets, generate payment links & QR codes, receive on-chain payments, an...

通过你的 Agent 添加

安装目录:agent-tomerchant/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/agent-tomerchant/
Codex CLI~/.codex/skills/agent-tomerchant/
DeepSeek Harness~/.agents/skills/agent-tomerchant/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

SynapseAI Merchant 是一套专为 AI Agent 设计的链上支付收款层。技能启用后,Agent 可注册成为商户,创建专属收款钱包,生成可分享的支付链接及二维码,实时接收来自客户的加密货币付款(支持 TRON、BASE、ETHEREUM、SOLANA 多链,USDT/USDC 稳定币)。完整流程包括:一次性商户注册 → 创建多钱包 → 生成支付链接 → 客户扫码/访问链接付款 → Webhook 回调通知 → 查询到账状态。商户状态可通过 /toggle 接口随时启停,无需重建数据。

显著优点

  1. 原生 Agent 集成:专为 AI Agent 场景设计,API 设计简洁,Bearer Token 统一认证,几行代码即可完成收款闭环。
  2. 多链多钱包架构:支持 4 条主流公链,单个 Agent 可创建多个独立收款地址,便于分产品、分客户、分渠道管理资金。
  3. 零开发支付页:自动生成品牌化的 /pay/{id} 页面,内置二维码展示,客户无需安装钱包即可查看付款信息。
  4. 实时 Webhook 推送:支持 payment.success/pending/failed 事件,附带签名密钥,确保回调安全可验。
  5. 柔性启停机制:merchant_enabled 状态开关可瞬间暂停收款,页面返回 403 友好提示,历史数据完全保留。

潜在缺点与局限性

  1. 链上确认依赖:收款最终性取决于各公链出块与确认速度,高峰期可能存在分钟级延迟。
  2. 代币范围有限:仅支持 USDT/USDC,不支持原生代币(ETH、SOL、TRX)或其他 ERC-20 资产。
  3. 外部依赖:服务托管于 SynapseAI 官方平台,存在单点可用性风险;需依赖 Supabase 作为底层存储。
  4. KYC/合规空白:文档未提及商户身份审核或交易合规审查,可能限制企业级应用场景。
  5. 私钥托管模式:钱包由平台代管,非 self-custody,存在托管方风险。

适合的目标群体

  • AI SaaS 开发者:希望为 API、订阅服务、数字内容快速接入自动化收款
  • 独立 AI Agent 创作者:需要无需编码收款页面的轻量化解决方案
  • 加密原生运营者:已熟悉 USDT/USDC 支付,追求多链覆盖与 Webhook 自动化
  • 自动化服务编排者:通过收款状态触发后续服务交付流程

使用风险

  • 平台持续性:服务处于早期阶段,长期运维承诺与 SLA 未明确,建议控制大额资金沉淀。
  • 密钥安全:Bearer Token 与 Webhook Secret 泄露将导致未授权操作与伪造回调,需严格保密。
  • 网络费用波动:链上 Gas 由付款方承担,但极端行情下可能影响小额支付体验。
  • 数据隐私:交易记录存储于 Supabase,需评估是否符合数据驻留与隐私合规要求。
  • 智能合约风险:底层托管合约未经公开审计说明,存在潜在代码漏洞可能。

技能正文


name: synapseai-merchant description: SynapseAI Merchant — AI agent payment receiving layer. Register as merchant, create wallets, generate payment links & QR codes, receive on-chain payments, and manage receiving status. homepage: https://wallet.synapseai.pro metadata: {"clawdbot":{"emoji":"🏪","requires":{"services":["supabase"]}}}

SynapseAI Merchant

Give your AI agent the ability to receive payments via dedicated merchant wallets, shareable payment links, and QR codes.

Authentication

All requests use Bearer token (same token from wallet registration):

Authorization: Bearer <registration_token>

URLs

Service URL
Merchant API https://wallet.synapseai.pro/api/merchant
Agent Toggle https://wallet.synapseai.pro/api/agent/{agentId}/toggle

Flow

1. Register Merchant     → POST /register          → merchant_enabled = true + first wallet created
2. Create More Wallets   → POST /wallet/create      → additional receiving addresses
3. Create Payment Link   → POST /payment/link       → shareable payment URL
4. Share Link / QR       → Customer pays via /pay/{id} page
5. Receive Webhook       → POST /webhook            → get notified on payment.success
6. Query Payments        → GET  /wallets            → check incoming payments
7. Disable/Enable        → POST /agent/{id}/toggle  → pause or resume receiving

Commands

Register as merchant (Bearer token) — One-time

Enable merchant capability for the agent. This sets merchant_enabled = true on the agent record and auto-creates the first merchant wallet.

This is a one-time action. Once registered, the agent is a merchant permanently (until disabled via toggle).

POST {MERCHANT_URL}/register
Authorization: Bearer <registration_token>
{
  "agent_id": "agt_abc123",
  "label": "My SaaS API Store",
  "network": "TRON",
  "currency": "USDT"
}

Response:

{
  "merchant_enabled": true,
  "wallet": {
    "id": "mw_7f8a9b0c1d2e",
    "address": "T1A2B3C4D5E6F7G8H9I0J1K2L3M4N5O6P7",
    "network": "TRON",
    "label": "My SaaS API Store",
    "currency": "USDT"
  }
}

If already registered, returns 409 Conflict.

Toggle merchant receiving (Bearer token)

Pause or resume merchant receiving capability. When disabled:

  • Payment pages return 403 "Merchant is not accepting payments"
  • Webhooks stop firing
  • Existing data (wallets, links, history) is preserved
POST {AGENT_TOGGLE_URL}/{agentId}/toggle
Authorization: Bearer <registration_token>
{
  "merchant_enabled": false
}

Response: updated agent object with merchant_enabled field.

Note: You can also toggle agent spending status by passing { "status": "DISABLED" } in the same endpoint. Both fields can be toggled independently.

Create merchant wallet (Bearer token)

Each merchant wallet is an independent receiving address. One agent can have multiple merchant wallets for different purposes (e.g. one per product, one per client).

POST {MERCHANT_URL}/wallet/create
Authorization: Bearer <registration_token>
{
  "agent_id": "agt_abc123",
  "label": "My SaaS API Store",
  "network": "TRON",
  "currency": "USDT"
}

Response:

{
  "wallet_id": "mw_7f8a9b0c1d2e",
  "address": "T1A2B3C4D5E6F7G8H9I0J1K2L3M4N5O6P7",
  "network": "TRON",
  "label": "My SaaS API Store"
}

Supported networks: TRON, BASE, ETHEREUM, SOLANA Supported currencies: USDT, USDC

Create payment link (Bearer token)

Generate a shareable payment URL that customers can visit to pay. Each link has a unique URL at https://wallet.synapseai.pro/pay/{id}.

POST {MERCHANT_URL}/payment/link
Authorization: Bearer <registration_token>
{
  "merchant_wallet_id": "mw_7f8a9b0c1d2e",
  "agent_id": "agt_abc123",
  "amount": 10.0,
  "currency": "USDT",
  "description": "Premium API Access - 30 days"
}

Response:

{
  "id": "pl_3e4f5a6b7c8d",
  "payment_url": "https://wallet.synapseai.pro/pay/pl_3e4f5a6b7c8d",
  "qr_code_url": null,
  "amount": 10.0,
  "currency": "USDT"
}

Share the payment_url with your customer. They will see a branded payment page with QR code and wallet address.

Configure webhook (Bearer token)

Receive HTTP notifications when payments are confirmed.

POST {MERCHANT_URL}/webhook
Authorization: Bearer <registration_token>
{
  "agent_id": "agt_abc123",
  "url": "https://your-api.com/payment-callback",
  "events": ["payment.success"]
}

Response:

{
  "id": "wh_9a0b1c2d3e4f",
  "url": "https://your-api.com/payment-callback",
  "events": ["payment.success"],
  "secret": "whsec_a1b2c3d4e5f6g7h8i9j0...",
  "active": true
}

Available events: payment.success, payment.failed, payment.pending

Keep the secret safe — use it to verify webhook signatures.

Query merchant data (Bearer token)

Fetch all merchant wallets, payment links, incoming payments, and ledger entries.

GET {MERCHANT_URL}/wallets?agent_id=agt_abc123
Authorization: Bearer <registration_token>
{
  "merchantWallets": [...],
  "paymentLinks": [...],
  "payments": [...],
  "ledger": [...],
  "webhooks": [...]
}

Get payment link info (public, no auth)

Fetch public info about a payment link. Used by the payment page.

Returns 403 if the owning agent has merchant_enabled = false.

GET {MERCHANT_URL}/payment/{payId}
{
  "id": "pl_3e4f5a6b7c8d",
  "amount": 10.0,
  "currency": "USDT",
  "description": "Premium API Access - 30 days",
  "status": "ACTIVE",
  "merchant_label": "My SaaS API Store",
  "merchant_address": "T1A2B3C4D5...",
  "network": "TRON"
}

Webhook payload

When a payment is confirmed, your webhook URL receives:

{
  "event": "payment.success",
  "payment": {
    "id": "pay_x1y2z3",
    "merchant_wallet_id": "mw_7f8a9b0c1d2e",
    "payment_link_id": "pl_3e4f5a6b7c8d",
    "tx_hash": "0x...",
    "amount": 10.0,
    "currency": "USDT",
    "payer": "0x...",
    "status": "CONFIRMED",
    "confirmations": 6,
    "created_at": "2026-03-15T..."
  }
}

Typical agent flow

1. Register as merchant  → POST /register
2. Agent receives customer request
   → Create payment link with amount + description
   → Return payment_url to customer
   → Wait for payment.success webhook
   → Deliver product/service to customer
3. If agent goes offline  → POST /agent/{id}/toggle { merchant_enabled: false }
   → All payment pages show "not accepting payments"
4. When agent returns     → POST /agent/{id}/toggle { merchant_enabled: true }

Error handling

All errors return {"error": "..."} with appropriate HTTP status:

Code Meaning
400 Bad request (missing fields, invalid amount)
401 Missing or invalid Bearer token
403 Merchant is disabled (merchant_enabled = false)
404 Wallet or payment link not found
409 Already registered as merchant
500 Server error

Architecture

AI Agent (Merchant)
  └── Agent API
        ├── /merchant/register      ← one-time merchant activation
        ├── /merchant/wallet/create  ← create receiving wallet
        ├── /merchant/payment/link   ← create payment link
        ├── /merchant/payment/{id}   ← public payment info (403 if disabled)
        ├── /merchant/wallets        ← query all merchant data
        ├── /merchant/webhook        ← configure notifications
        └── /agent/{id}/toggle       ← enable/disable merchant + agent
              ↓
        Payment Page (/pay/{id})
              ↓
        Customer pays → On-chain TX
              ↓
        Webhook → Agent notified → Delivers service

Database

Merchant status is persisted as merchant_enabled boolean on the aiwallet_agents table. This is the single source of truth for whether an agent can receive payments.

Notes

  • Registration is one-time — once registered, the agent is a merchant permanently (until disabled).
  • Disabling is reversible — toggle merchant_enabled to pause/resume without losing data.
  • Each merchant wallet is a separate address — use different wallets for different products or clients.
  • Payment links are shareable URLs with QR codes — customers don't need a crypto wallet app to see the details.
  • Always verify webhook signatures using the secret returned during webhook creation.
  • Payment links can expire — set expires_at if you want time-limited offers.
  • Use clear description strings — customers see these on the payment page.
  • The merchant receiving feature is integrated into the wallet dashboard — Enable Merchant in the header, manage wallets and links inline.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

payfinance-accountingapiautomationbackend

同类 Skill