E

Europe West4 · Items Acquire

by Europe West4

POSTBase Sepolia

$1

per call · USDC on Base Sepolia

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-api-485602182462.europe-west4.run.app/api/v1/items/:uuid/acquire

109

Calls / 30d

3

Unique payers / 30d

Sep 10

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-api-485602182462.europe-west4.run.app/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-api-485602182462.europe-west4.run.app/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 to0xe858c49b7a88cc721d162b7d3b7527288157c879
AssetUSDC · 0x036cbd53842c5426634e7929541ec2318f3dcf7e
NetworksBase Sepolia
Schemesexact

Is this your API?

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

Get featured →

More from Europe West4 & similar services