bazaar extension and passes the
cataloging rules, Rail402 catalogs the paid HTTP endpoint or MCP tool, and buyers can
find it with filters or natural-language search.
It is built on the unmodified @x402/stellar 2.30.0 scheme
and speaks x402 version 2 on the wire, so stock x402 clients and servers work with it without changes.
Next to exact, it settles upto payments, where the buyer signs a cap and the seller
settles what a call used, and it ships agent tools that find and pay resources under a spending cap.
The code is Apache-2.0.
The npm packages are at 0.5.7: the facilitator, the Bazaar and search,
upto, the agent tools and their
browser entries. The hosted testnet service runs 0.5.0 with exact and
upto. The latest container image is 0.2.1 (exact only); later versions of the service run from a source
checkout.What it does
Facilitator
/supported, /verify and /settle for the exact and upto schemes on stellar:testnet. It pays the
network fee and is never the source of the payment. stellar:pubnet can be configured but has not been
exercised end to end.upto payments
Capped, usage-based payments: the buyer signs a cap, the seller settles what the call used, through a
Soroban settlement contract that enforces it.
Bazaar catalog
Resources are cataloged only after a payment to them settles, and each listing is bound to the
payTo
that received the payment.Discovery API
GET /discovery/resources with type, payTo, network and extension filters, stable offset paging and a
public version history for each listing.Search
GET /discovery/search: BM25F and local embeddings fused with RRF, hard filters, constraints read from
the query text, and signed cursors.Agent tools
A buyer SDK, an MCP server (
rail402-mcp) and a CLI (rail402) that search the Bazaar and pay under a
spending policy.Where to start
Pick the path for what you are building. Each covers choosing the network, assets, trustlines, what the buyer signs and fee sponsorship, with a working testnet example.Sell
Charge for an HTTP endpoint or MCP tool with stock x402 packages and get listed in the Bazaar.
Buy and build agents
Pay x402 resources under a spending cap from a script, the CLI or an AI agent.
Operate a facilitator
Run Rail402: networks, assets, fee sponsorship and the Bazaar.