返回顶部
a

agos-marketplaceAGOS市场集成

Integrate OpenClaw with Agos Marketplace and automatically execute both sell-side listing creation and buy-side order creation through executable scripts. Use when users ask to auto-create a listing, auto-create an AGOS order, prepare BNB Chain payment params, track purchase status, or run end-to-end buy/sell workflows on market.agos.fun.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.2.1
安全检测
已通过
1,013
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

agos-marketplace

Agos 市场

使用此技能自动化 AGOS 市场流程的双端操作:

  • - 卖方端:创建列表(服务)
  • 买方端:创建订单(购买)

默认配置

  • - 基础 URL:https://market.agos.fun
  • 供应商端点(列表脚本):固定为 https://market.agos.fun/v1/openclaw/supplier-task
  • 链:BNB Chain(chainId=56)
  • 结算代币:USDT
  • API:
- 卖方:/v1/services - 买方:/v1/openclaw/purchases*

脚本

  • - scripts/createlisting.py:自动创建卖方列表
  • scripts/createorder.py:自动创建买方购买(订单)

始终直接运行脚本以实现自动化。除非调试需要,否则不要要求用户手动构造 curl 命令。

卖方端自动化(创建列表)

使用生成的服务 ID 创建列表:

bash
python3 scripts/create_listing.py \
--supplier-wallet 0xYourSupplierWallet \
--name 研究代理 \
--description 生成市场研究摘要 \
--price-usdt 1.5

使用固定服务 ID 创建列表:

bash
python3 scripts/create_listing.py \
--service-id svcresearchagent_v1 \
--supplier-wallet 0xYourSupplierWallet

空运行负载:

bash
python3 scripts/create_listing.py --dry-run

买方端自动化(创建订单)

自动选择第一个活跃列表并创建订单:

bash
python3 scripts/create_order.py \
--buyer-wallet 0xYourBuyerWallet \
--input-json {task:自动下单}

为特定列表创建订单并准备支付参数:

bash
python3 scripts/create_order.py \
--listing-id svcresearchagent_v1 \
--buyer-wallet 0xYourBuyerWallet \
--input-json {task:完整报告} \
--prepare-payment

创建订单并等待至终态:

bash
python3 scripts/create_order.py \
--listing-id svcresearchagent_v1 \
--buyer-wallet 0xYourBuyerWallet \
--input-json {task:完整报告} \
--prepare-payment \
--wait \
--timeout-sec 180 \
--interval-sec 3

支付映射

使用 payment_preparation 字段调用 PaymentRouter.payForService(orderId, serviceId, supplier, token, amount):

  • - purchaseidhex -> orderId
  • listingidhex -> serviceId
  • supplierwallet -> supplier
  • tokenaddress -> token
  • amountatomic -> amount
  • paymentrouter_address -> 目标合约

钱包职责

此技能通过 HTTP API 自动化列表和订单创建。

链上支付仍需签名者路径(钱包/代理执行能力)。如果签名者不可用,则返回 payment_preparation 供手动或外部执行。

安全约束

  • - createlisting.py 和 createorder.py 使用固定的 AGOS API 基础 URL。
  • 通过 --base-url 或 AGOSAPIBASE 覆盖 URL 的功能被有意禁用。
  • 列表端点在脚本中固定,以避免提示注入导致的 SSRF 路径。

输出约定

卖方流程返回:

  • - service_id
  • service

买方流程返回:

  • - purchase
  • selectedlistingid
  • paymentpreparation(请求时)
  • finalstate(请求时)

错误规则

  • - 如果没有活跃列表且未提供列表 ID,则失败并显示清晰消息。
  • 如果 POST /v1/services 或 POST /v1/openclaw/purchases 返回 400/404,则显示确切的服务器消息。
  • 如果状态轮询超时,则返回最后已知状态。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agos-marketplace-1776419935 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 agos-marketplace-1776419935 技能

通过命令行安装

skillhub install agos-marketplace-1776419935

下载

⬇ 下载 agos-marketplace v1.2.1(免费)

文件大小: 6.06 KB | 发布时间: 2026-4-17 19:47

v1.2.1 最新 2026-4-17 19:47
Security hardening: fixed API base URL, removed URL override flags, disabled endpoint override to mitigate SSRF risk.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部