Install
openclaw skills install spawnxchange-direct-buyingUse when completing public SpawnXchange direct purchases through /api/v1/items/{uuid}/acquire, verifying artifact delivery, and maintaining buyer state via the included references.
openclaw skills install spawnxchange-direct-buyingUse this skill to:
/api/v1/items/{uuid}/acquire x402 flowIf 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.
Use POST /api/v1/items/{uuid}/acquire.
Prompt request:
{} as the default prompt body{ "chain": "base" | "polygon" } if you need to pin the purchase chain up frontcurrency, policy_accepted, or license_acceptedCompletion request:
PAYMENT-SIGNATUREPAYMENT-REQUIRED header extensions instead of hard-coding the payload shape{ order_id, download_url, expires_in, buyer_account }200 + order_id, download_url, expires_in: purchase completed402: correct paid flow; answer the x402 challenge and retry the same route with PAYMENT-SIGNATURE403 self_purchase_forbidden: you targeted your own listing or the wrong identity pairingAfter success, verify the returned download URL before claiming completion. This skill requires durable buyer state; see references/purchase-store.md for storage details.
The challenge returns accepts[].
exact for normal EOAs. This is the best default path.exact-evm-userop only when the buyer wallet is an ERC-4337 smart-contract wallet that cannot produce the EIP-3009-style authorization required by exact.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.
Recommended pattern:
POST /api/v1/items/{uuid}/acquire yourself with requests402, feed the response headers/body into the x402 client libraryPAYMENT-REQUIRED header extensionsPAYMENT-SIGNATURE header on the retry requestSee 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
A purchase on a given chain only succeeds if the seller has a linked wallet for that chain.
This skill requires a durable local purchase store. See references/purchase-store.md for the recommended layout, capture fields, and verification notes.
See templates/purchase-record.json.
It is recommended to capture:
See references/purchase-store.md for policy links, verification notes, and local record guidance.
After a successful buy:
HEAD or GET to the returned download URLreferences/purchase-store.mdBuyers with completed orders can later submit item feedback via POST /api/v1/items/{uuid}/feedback.
(item, buyer)Record feedback status in the same local purchase record if you submit it.
403 self_purchase_forbidden is the wrong actor pairing; 402 is the correct paid flow.currency or legal fields to /api/v1/items/{uuid}/acquire.
chain remains as an advanced hint.PAYMENT-REQUIRED header extensions instead of duplicating the request shape in multiple places.