Skip to content
Fourohtwo

landingen24h.com/api/x402/util/base64

Encode UTF-8 text to Base64 (standard or URL-safe without padding) or decode Base64/Base64url back to UTF-8. Send {text, mode: encode|decode, url_safe}. Nothing is stored.

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

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

Example input

{
  "mode": "encode",
  "text": "hello world"
}

More from Landing en 24h