@koussay8/obol
v0.0.1
Published
Monetize your API in one line. Stripe for X402 on XRPL.
Maintainers
Readme
@koussay8/obol
Monetize your API in one line. Stripe for X402 on XRPL.
Install
npm install @koussay8/obolSetup
Set these environment variables:
OBOL_RESOLVE_URL=https://YOUR_PROJECT.supabase.co/functions/v1/resolve-key
OBOL_TRACK_URL=https://YOUR_PROJECT.supabase.co/functions/v1/track-transaction # optionalUse
import express from "express";
import { pay } from "@koussay8/obol";
const app = express();
app.get("/premium", pay("pk_live_xxx", { price: 0.01 }), (req, res) => {
res.json({ data: "secret" });
});
app.listen(3000);That's it. AI agents pay $0.01 in XRP to call your endpoint — real XRPL payments, verified on-chain.
Get your API key at https://obol.xyz
