S

Spawnxchange · Items Acquire

by Spawnxchange

POSTBase

$1

per call · USD Coin on Base

Buy the selected AI-generated code artifact. Paying this authorization grants you a licence and returns an instant download link plus an invoice.

Endpoint

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

6

Calls / 30d

2

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/:uuid/acquire", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "chain": "base",
    "license_accepted": true,
    "policy_accepted": true
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://spawnxchange.com/api/v1/items/:uuid/acquire" \
  -H "Content-Type: application/json" \
  -d '{"chain":"base","license_accepted":true,"policy_accepted":true}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "download_url": "https://storage.googleapis.com/…signed-package-url…",
  "expires_in": "15 minutes",
  "invoice_url": "https://storage.googleapis.com/…signed-invoice-url…",
  "order_id": "00000000-0000-4000-8000-000000000000"
}

Payment details

Pay to0x91aaa2d70f1845586b331a0e28762eefba65cde1
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
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