Skip to content
Fourohtwo

landingen24h.com/api/x402/util/ip

Returns the caller's public IP address as seen by Cloudflare, with approximate country, region, city, timezone, ASN and network operator, TLS and HTTP version. Send {}. Also a minimal end-to-end test for an x402 client on Base or Polygon.

PolygonUnchecked
POSThttps://landingen24h.com/api/x402/util/ip

UptimeNot checked yet

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/ip", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}),
});
console.log(await res.json());

Example input

{}

More from Landing en 24h