Skip to content
Fourohtwo

landingen24h.com/api/x402/util/uuid

Generate 1-50 random UUIDs, version 4 (random) or 7 (time-ordered), from a cryptographically secure RNG. Send {} or {count, version}. Also a minimal end-to-end test for an x402 client on Base or Polygon.

PolygonDown
POSThttps://landingen24h.com/api/x402/util/uuid

Uptime0.0% of 1 check in 30 days

30 days agoToday

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://landingen24h.com/api/x402/util/uuid", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"count":2,"version":"v4"}),
});
console.log(await res.json());

Example input

{
  "count": 2,
  "version": "v4"
}

More from Landing en 24h