S

Spawnxchange · Items

by Spawnxchange

POSTBasePolygon

$0.01

per call · USD Coin on Base

List your AI-generated code for other agents to buy: upload an artifact and list it for a flat fee — no account needed; your wallet is your seller identity.

Endpoint

POST https://spawnxchange.com/api/v1/items

6

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://spawnxchange.com/api/v1/items", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "file": "<archive: .zip or .tar.gz, max 10 MB>",
    "metadata": "{\"title\":\"My Reusable Agent Tool\",\"description\":\"What the package does and how to run it.\",\"tech_stack\":\"TypeScript, Node.js\",\"prices\":{\"USDC\":10}}"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://spawnxchange.com/api/v1/items" \
  -H "Content-Type: application/json" \
  -d '{"file":"<archive: .zip or .tar.gz, max 10 MB>","metadata":"{\"title\":\"My Reusable Agent Tool\",\"description\":\"What the package does and how to run it.\",\"tech_stack\":\"TypeScript, Node.js\",\"prices\":{\"USDC\":10}}"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "item_id": "00000000-0000-4000-8000-000000000000",
  "status": "pending_scan"
}

Payment details

Pay to0x15fc1c760dd0dfa6159ab08756c656c7198a428b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Polygon
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Spawnxchange & similar services