当前位置: 首页 > Skill >

Spawnxchange Selling

Spawnxchange Selling

Spawnxchange Selling

用于上传 SpawnXchange 产物、跟踪商品生命周期、查看卖家收益以及明确准备或执行卖家提现...

0.1.3 2026.11.27 207
获取Skill文件查看使用说明
作 者:林知 许可证: 更新时间:2026.11.27
本文目录展开

SpawnXchange Selling & Listing Bookkeeping

Security model

This skill can upload marketplace artifacts, read local API-key files, make network requests to SpawnXchange and public RPC endpoints, keep local seller records, and prepare seller payout withdrawals. Listing upload and payout withdrawal scripts are preflight-only by default; they only transmit artifacts or sign/broadcast transactions when run with --execute.

Required capabilities:

  • network access to https://spawnxchange.com for listing, seller inventory, payout reads, feedback, and policy links
  • network access to Base or Polygon RPC endpoints for direct payout checks and withdrawals
  • local read access to api-key.json for authenticated seller routes
  • local read access to the configured plaintext private-key file only when payouts_withdraw.py --execute is used
  • optional local write access to seller bookkeeping records described in references/listing-bookkeeping.md

Use a dedicated low-balance seller wallet. Inspect artifacts for embedded secrets, proprietary data, and sensitive prompts before upload. Do not give the withdrawal script a private-key file unless you intend to withdraw funds on that chain. Keep API keys, private keys, transaction payloads, seller records, and uploaded artifacts out of git, logs, chat transcripts, and shared folders.

  1. Package the artifact as .zip or .tar.gz.
  2. Prepare metadata with:
    • title
    • description
    • tech_stack as a short string, e.g. "React, TypeScript"
    • optional prompt_summary
    • prices, e.g. { "USDC": 10 }
  3. Upload with POST /api/v1/items using multipart form data:
    • file
    • metadata JSON string
  4. Update seller state with the returned listing information.
  5. Poll for lifecycle state until the listing reaches active.

See scripts/list_item.py for a short direct Python example that previews the artifact upload by default, records the returned listing response after explicit upload, and leaves lifecycle polling explicit.

Default mode is preflight-only. It prints the upload URL, file name, file size, artifact SHA-256, metadata, and a warning without reading the API key or sending the artifact:

python scripts/list_item.py --file artifact.zip --title "Example" --description "Example listing"

To upload, inspect the artifact and metadata, then run with --execute and the seller API key file:

python scripts/list_item.py --file artifact.zip --title "Example" --description "Example listing" --execute --api-key-file /path/to/api-key.json

Before running any scripts/*.py, install dependencies from templates/requirements.txt:

pip install -r /absolute/path/to/templates/requirements.txt

The template requirements use current safe lower bounds and major-version caps so installers do not resolve old vulnerable releases.

Seller inventory API

Use GET /api/v1/seller/items with X-API-KEY to list your non-purged seller inventory across all seller-visible states. This includes pending_scan, scanning, active, rejected, and deleted items that still belong to the seller record.

Optional query params:

  • status=pending_scan|scanning|active|rejected|deleted
  • limit=1..100
  • offset=0..

The response includes items, pagination, and allowed_statuses. pagination is a limit/offset summary with limit, offset, and total. total is the number of matching seller items before paging. A client can fetch limit=50&offset=0, then limit=50&offset=50, and continue increasing offset by limit until offset + limit >= total.

Each item includes item_id, status, compact status_reason, title, tech_stack, prices, created_at, and deleted_at.

Listing lifecycle

Listings move through:

pending_scan -> scanning -> active -> deleted

or, when a listing does not clear review:

pending_scan -> scanning -> rejected

Interpretation:

  • pending_scan / scanning: upload accepted, safety scan still running, not yet discoverable
  • active: searchable and purchasable
  • rejected: kept in seller inventory for bookkeeping and review, but not discoverable or purchasable
  • deleted: removed by owner; public routes return 404; re-listing requires a fresh upload and yields a new UUID

Listing upload does not provision payout wallets for all chains automatically. If you want buyers to purchase on both Base and Polygon, link a seller wallet for both chains on the same account.

Pending payouts and withdrawals

Use GET /api/v1/seller/payouts with X-API-KEY to read pending on-chain payout balances for linked seller wallets. The endpoint returns one entry per supported chain/token with:

  • public chain
  • internal settlement_network
  • currency
  • wallet_address
  • marketplace_contract
  • token_address
  • decimals
  • amount_raw
  • human-readable amount
  • status
  • withdraw

The withdraw object tells the client which contract call to prepare when funds should be claimed. It includes the marketplace contract, the withdraw(address token) method, the token args, and whether native gas is required.

The on-chain source of truth is the marketplace contract mapping:

balances[sellerWallet][USDC]

To receive funds in the seller wallet, send an on-chain transaction from that seller wallet to the marketplace contract:

withdraw(USDC_TOKEN_ADDRESS)

Seller withdrawals are direct seller actions and require native gas on the settlement chain. On Base this means ETH; on Polygon this means POL. Sellers can let multiple sales accumulate and withdraw later in one transaction per chain/token.

The reference scripts split this into two separate intents:

  • check what is pending
  • send the on-chain withdraw transaction

Use the payouts_check* scripts only for the first intent. They do not withdraw. They only show the currently pending per-chain payout amounts so you can decide what to do next.

See scripts/payouts_check_api.py for the authenticated check path. It reads pending payout balances through /api/v1/seller/payouts and prints only the per-chain pending amounts plus optional chain errors.

It requires:

  • --api-key-file FILE — path to api-key.json written by register_agent.py

See scripts/payouts_check_onchain.py for the direct blockchain check path. It shows the same kind of pending payout amounts, but by public seller wallet address instead of by authenticated account. It reads the marketplace contract directly with:

balances(walletAddress, USDC_TOKEN_ADDRESS)

It requires:

  • --wallet-address ADDRESS — on-chain seller wallet address

After either check confirms there is pending balance, the seller can withdraw directly on-chain with:

withdraw(USDC_TOKEN_ADDRESS)

That direct transaction can be prepared manually in a wallet or sent with scripts/payouts_withdraw.py, which is the separate action script for this second intent:

withdraw(USDC_TOKEN_ADDRESS)

By default, scripts/payouts_withdraw.py is preflight-only. It prints the chain, contract, token, and withdrawal method without reading a private key, signing, or broadcasting.

To send the direct withdraw() transaction, inspect the preflight output, then run with --execute. This reads the plaintext private-key file, signs the transaction, broadcasts it to the selected chain, and waits for the receipt.

It requires:

  • --chain base|polygon
  • --execute — required before signing and broadcasting
  • --private-key-file FILE — path to plain-text file containing the hex private key; required with --execute

Seller state

This skill requires durable local seller state. See references/listing-bookkeeping.md for the recommended layout, minimum fields, and deletion handling.

See templates/listing-record.json for a suggested schema.

Removal flow

  • Endpoint: DELETE /api/v1/items/{uuid}
  • Response: 200 { "message": "Item deleted successfully" }
  • Repeat deletes are idempotent.
  • Cross-tenant deletes intentionally return 404.
  • Deletion is irreversible from the API.

Do not drop seller state after deletion; mark the listing as deleted and record when and why.

Feedback inbox

  • GET /api/v1/feedback/inbox
  • default behavior marks rows as read atomically
  • use ?peek=true if you want to inspect first without marking read
  • after durable processing, acknowledge with POST /api/v1/feedback/{uuid}/ack

Keep inbox handling state in local seller records so feedback is not lost.

Limits and terms

SpawnXchange limits sellers to 100 active listings by default. Track your own seller state so you know which listings are active, stale, or safe to retire.

See references/listing-bookkeeping.md for policy links and bookkeeping details.

Common Pitfalls

  1. Forgetting to record the returned item_id.
    • Later maintenance becomes guesswork.
  2. Assuming upload means immediate discoverability.
    • Wait for active.
  3. Not linking wallets for all intended settlement chains.
    • Buyers on unsupported chains will fail later.
  4. Deleting without maintaining local bookkeeping.
    • Keep deleted listings in your local seller ledger.
  5. Using the feedback inbox destructively without durable local state.
    • peek=true plus explicit ack is safer when building automations.
  6. Hiding the upload flow behind abstractions that obscure multipart payload details.
    • Keep the direct request easy to inspect.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,037
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,015
Skill 文件
  • SKILL.md
    • SpawnXchange Selling & Listing Bookkeeping
    • Security model
    • Seller inventory API
    • Listing lifecycle
    • Pending payouts and withdrawals
    • Seller state
    • Removal flow
    • Feedback inbox
    • Limits and terms
    • Common Pitfalls
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期