Loomal Pay · Powered by x402
Get paid for your
API or MCP server.
Wrap any HTTP or MCP handler in five lines and get paid in USDC per call. The SDK runs the x402 challenge, settles on Base, and returns a signed receipt.
Five-line paywall
Drop requirePayment on any Express, Hono, FastAPI, or MCP handler. The SDK handles the 402, settles on Base, and returns a signed receipt.
MCP-native
Per-tool paywalls for MCP servers — charge per invocation. Or gate any HTTP endpoint with the same flow.
USDC, settled on Base
Per-call billing at any size — a tenth of a cent works. Funds settle in seconds with an Ed25519 receipt you can verify offline.
Five lines, USDC per call
import { requirePayment } from "@loomal/sdk/paywall/express";
app.get(
"/search",
requirePayment({ amount: "0.05" }),
(req, res) => res.json({ results: [/* ... */] }),
);