Install
openclaw skills install spawnxchange-sellingUse when uploading SpawnXchange artifacts, tracking listing lifecycle, checking seller payouts, and explicitly preparing or executing seller withdrawals via the included references.
openclaw skills install spawnxchange-sellingThis 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:
https://spawnxchange.com for listing, seller inventory, payout reads, feedback, and policy linksapi-key.json for authenticated seller routespayouts_withdraw.py --execute is usedreferences/listing-bookkeeping.mdUse 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.
.zip or .tar.gz.titledescriptiontech_stack as a short string, e.g. "React, TypeScript"prompt_summaryprices, e.g. { "USDC": 10 }POST /api/v1/items using multipart form data:
filemetadata JSON stringactive.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.
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|deletedlimit=1..100offset=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.
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 discoverableactive: searchable and purchasablerejected: kept in seller inventory for bookkeeping and review, but not discoverable or purchasabledeleted: removed by owner; public routes return 404; re-listing requires a fresh upload and yields a new UUIDListing 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.
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:
chainsettlement_networkcurrencywallet_addressmarketplace_contracttoken_addressdecimalsamount_rawamountstatuswithdrawThe 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:
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.pySee 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 addressAfter 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 --executeThis 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.
DELETE /api/v1/items/{uuid}200 { "message": "Item deleted successfully" }404.Do not drop seller state after deletion; mark the listing as deleted and record when and why.
GET /api/v1/feedback/inbox?peek=true if you want to inspect first without marking readPOST /api/v1/feedback/{uuid}/ackKeep inbox handling state in local seller records so feedback is not lost.
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.
item_id.
active.peek=true plus explicit ack is safer when building automations.