Obol
Stripe for x402 on XRPL. Monetize any API with crypto payments in one line of code. Built for AI agents and the pay-per-call economy.
Demo Video
Project Information
At a Glance
Stripe for x402 on XRPL. Monetize any API with crypto payments in one line of code. Built for AI agents and the pay-per-call economy.
Description
Obol is Stripe for x402 on XRPL. It lets developers monetize any API endpoint with real cryptocurrency payments; in a single line of code.
A merchant signs up, gets an API key and endpoint UUID from the dashboard, and wraps their route handler with obol.protect(). That's it. When a buyer (typically an AI agent) hits the endpoint without paying, they get back an HTTP 402 with machine-readable payment instructions. The buyer signs an XRPL transaction, retries the request, and gets the resource; all in one round-trip. Settlement happens on-ledger, automatically, after the business logic succeeds.
The primary buyer persona is AI agents and programmatic services, that is software that can read a 402 response, sign a transaction, and retry without human intervention. Obol turns any API into a pay-per-call service for the agentic economy.
What used to take 150+ lines of blockchain plumbing now takes 5 (which is a 97% percent code reduction). A complete merchant server fits in 40 lines including imports. And it's safe by default; developers never have to create wallets, manage private keys, or juggle environment variables if they don't want to. The dashboard generates and encrypts everything, so newcomers to crypto can start earning without touching a single secret.
Technical Details
Obol implements the x402 v2 protocol (HTTP 402 Payment Required) on the XRP Ledger. The SDK intercepts requests, issues 402 challenges with payment terms, verifies signed XRPL transactions via a T54 facilitator, and settles on-ledger after business logic succeeds; buyers never pay for failed requests. Zero dependencies, web-standard Request/Response, works in Node.js/Deno/Workers. Features in-memory config caching with stale-on-error fallback, idempotent settlement, fire-and-forget analytics logging, and full TypeScript type safety via discriminated union PaymentGate types. The dashboard handles wallet generation, AES-256-GCM key encryption, API key provisioning, and Supabase RLS.Merchants never touch the ledger directly.
Team
3Tom Gernez
fabparad
Koussay EL ADJEMI
Hackathon
HACK THE BLOCK 2026 Paris Blockchain Week XRPL Hackathon
Duration
Apr 11, 6:30 AM - Apr 12, 6:00 PM UTC