Pay-per-call API endpoints on Fractal Bitcoin. Random numbers, on-chain balances, timestamps — settled in FB, no accounts, no API keys. Built on the x402 protocol.
An agent or app calls a paid endpoint. No key, no signup, no card.
The server answers with a price and a fresh FB address derived from the provider's xpub.
The caller broadcasts one FB transaction — provider + network fee in a single tx, wallet to wallet.
We verify it on-chain and the endpoint serves. Funds never touch us — non-custodial by design.
Random numbers from block hashes, on-chain balance checks, permanent timestamps. Powered by a full Fractal node, billed in FB per request.
import { requirePayment } from "os-x402/sdk"; app.get("/v1/inference", requirePayment({ facilitatorUrl: "https://x402.fb", apiKey: process.env.SVC_KEY, price: 10_000 // sat (FB) }), (req, res) => res.json({ out: model(req) }) );
import { payAndFetch } from "os-x402/sdk"; // hits 402, pays a real FB tx, retries const r = await payAndFetch( "https://api.example.com/v1/inference", { wallet } ); console.log(r.data, r.txid);
An agent that hits a 402 pays it and retries — no human, no checkout. TypeScript and Python SDKs.
Built on the x402 protocol (MIT) by The Lonely Bit. Self-host or use our gateway.