Skip to content
Fourohtwo

x402-gateway.blackwoodstate8.workers.dev/v1/qr-code

Use when you need a qr code generator for a URL, text, Wi-Fi or payment link as an SVG image. Do not use for reading or decoding an existing QR code, logos, colored codes or PNG output. Returns JSON with a QR code for your text or URL as SVG markup and an SVG data URL, with error correction level and border options, generated by the uqr library for 0.004 USDC per call. Typical response time 500 ms

BaseAnswering
POSThttps://x402-gateway.blackwoodstate8.workers.dev/v1/qr-code

Uptime100% of 4 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402-gateway.blackwoodstate8.workers.dev/v1/qr-code", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"ecc":"M","text":"https://x402-gateway.blackwoodstate8.workers.dev"}),
});
console.log(await res.json());

Example input

{
  "ecc": "M",
  "text": "https://x402-gateway.blackwoodstate8.workers.dev"
}