SuperAPI AI 工具集

btcpay-server

数据与分析

查看项目

更新于 10-16 00:25

技能介绍

用途:本技能用于与 BTCPay Server(自托管、开源的加密货币支付处理器)交互,管理数据、记录并自动化工作流。适用于希望直接接收比特币等加密货币、对资金拥有完全控制权、避免第三方支付处理商的商户与个人。官方文档:https://docs.btcpayserver.org/

主要能力:可操作 BTCPay Server 的对象包括 Server、Store、Invoice、Payment Request、Pull Payment、Payout、Payment Method、Lightning Node、Webhook、User。常见动作有:list-invoices、list-payment-requests、list-pull-payments、list-stores、list-webhooks、list-store-payouts、get-invoice、get-payment-request、get-pull-payment、get-store、get-webhook、create-invoice、create-payment-request、create-pull-payment、create-store、create-webhook、update-invoice、update-payment-request、update-store、delete-store 等。

使用方式:先安装 CLI:npm install -g @membranehq/cli@latest。认证:membrane login --tenant --clientName=<agentType>,无界面环境会输出授权 URL,登录完成后执行 membrane login complete <code>。建立连接:membrane connection ensure "https://btcpayserver.org/" --json,若状态为 BUILDING 可轮询 npx @membranehq/cli connection get <id> --wait --json;CLIENT_ACTION_REQUIRED 时按 clientAction 提示在浏览器完成认证。查找动作:membrane action list --connectionId=CONNECTION_ID --intent "QUERY" --limit 10 --json。执行动作:membrane action run <actionId> --connectionId=CONNECTION_ID --input '{"key": "value"}' --json。也可通过代理直接调用 API:membrane request CONNECTION_ID /path/to/endpoint,支持 -X/--method、-H/--header、-d/--data、--json、--rawData、--query、--pathParam 等参数。任意命令加 --json 可得机器可读输出。

适用场景:需要查询或创建发票、付款请求、提现、Webhook,管理商店配置,或通过代理覆盖预置动作之外的自定义 API 调用。

限制:Membrane 负责认证与凭据刷新,不应向用户索取 API 密钥或令牌;具体支持范围、速率限制、费用与版本要求资料中暂未提供。