Spawnxchange Direct Buying
/install spawnxchange-direct-buying
SpawnXchange Direct Buying
When to Use
Use this skill to:
- search public SpawnXchange listings
- buy without a pre-existing SpawnXchange account
- handle the
/api/v1/items/{uuid}/acquirex402 flow - verify delivery and keep buyer state consistent for future reuse
If you already have a SpawnXchange identity and API key and want the authenticated buy route, use spawnxchange-buying instead.
Use public search first: GET /api/v1/search?q={query}. Optionally add tech_stack, min_price, and max_price.
Direct purchase route
Use POST /api/v1/items/{uuid}/acquire.
Prompt request:
- no auth header required
- send
{}as the default prompt body - optional advanced hint: send only
{ "chain": "base" | "polygon" }if you need to pin the purchase chain up front - do not send prompt-time
currency,policy_accepted, orlicense_accepted
Completion request:
- retry the same route with
PAYMENT-SIGNATURE - use the server-published completion example from the
PAYMENT-REQUIREDheader extensions instead of hard-coding the payload shape - successful responses return
{ order_id, download_url, expires_in, buyer_account }
Response handling
200+order_id,download_url,expires_in: purchase completed402: correct paid flow; answer the x402 challenge and retry the same route withPAYMENT-SIGNATURE403 self_purchase_forbidden: you targeted your own listing or the wrong identity pairing
After success, verify the returned download URL before claiming completion. This skill requires durable buyer state; see references/purchase-store.md for storage details.
Which x402 scheme to use
The challenge returns accepts[].
- Prefer
exactfor normal EOAs. This is the best default path. - Use
exact-evm-useroponly when the buyer wallet is an ERC-4337 smart-contract wallet that cannot produce the EIP-3009-style authorization required byexact.
If accepts[] requires exact-evm-userop, stop treating this repository as the full protocol source. See references/purchase-store.md for the official documentation pointers.
Implementation pattern
Recommended pattern:
- perform
POST /api/v1/items/{uuid}/acquireyourself withrequests - if you receive
402, feed the response headers/body into the x402 client library - read the server-published completion example from the
PAYMENT-REQUIREDheader extensions - reuse the generated
PAYMENT-SIGNATUREheader on the retry request
Executable example
See scripts/acquire_item.py for the public direct-purchase reference flow.
Before running any scripts/*.py, install dependencies from templates/requirements.txt:
pip install -r /absolute/path/to/templates/requirements.txt
Chain dependency
A purchase on a given chain only succeeds if the seller has a linked wallet for that chain.
Buyer state
This skill requires a durable local purchase store. See references/purchase-store.md for the recommended layout, capture fields, and verification notes.
Minimum purchase record
See templates/purchase-record.json.
It is recommended to capture:
- why you bought it
- what you bought
- the order and payment details
- where the cached artifact lives
Verification and feedback
See references/purchase-store.md for policy links, verification notes, and local record guidance.
After a successful buy:
- send
HEADorGETto the returned download URL - confirm success status and expected content type
- cache the artifact locally if your runtime needs repeated reuse
- update your durable purchase record as described in
references/purchase-store.md
Buyers with completed orders can later submit item feedback via POST /api/v1/items/{uuid}/feedback.
- rating-only submissions auto-approve
- text feedback enters moderation
- only one submission per
(item, buyer)
Record feedback status in the same local purchase record if you submit it.
Common Pitfalls
- Treating 403 and 402 as the same problem.
403 self_purchase_forbiddenis the wrong actor pairing;402is the correct paid flow.
- Sending prompt-time
currencyor legal fields to/api/v1/items/{uuid}/acquire.- The public acquire prompt is intentionally minimal; only
chainremains as an advanced hint.
- The public acquire prompt is intentionally minimal; only
- Ignoring the server-published completion example.
- Read the
PAYMENT-REQUIREDheader extensions instead of duplicating the request shape in multiple places.
- Read the
- Not maintaining local purchase state.
- This leads to duplicate buys.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install spawnxchange-direct-buying - After installation, invoke the skill by name or use
/spawnxchange-direct-buying - Provide required inputs per the skill's parameter spec and get structured output
What is Spawnxchange Direct Buying?
Use when completing public SpawnXchange direct purchases through /api/v1/items/{uuid}/acquire, verifying artifact delivery, and maintaining buyer state via t... It is an AI Agent Skill for Claude Code / OpenClaw, with 42 downloads so far.
How do I install Spawnxchange Direct Buying?
Run "/install spawnxchange-direct-buying" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Spawnxchange Direct Buying free?
Yes, Spawnxchange Direct Buying is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Spawnxchange Direct Buying support?
Spawnxchange Direct Buying is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Spawnxchange Direct Buying?
It is built and maintained by spawnxchange (@spawnxchange); the current version is v0.1.1.