Stellar

Payments

x402 on Stellar

Unlock payments for the agent economy. Build with internet-native payments on Stellar.

What is x402?

x402 is an open payment protocol that lets any API or web service charge per request—no platform accounts, no billing system, no API keys required. A client hits your endpoint, pays in crypto, and gets the resource. All in one HTTP round-trip.

For AI agents that need to discover and pay for services autonomously, this is the difference between a workflow that runs and one that stalls.

A member of the x402 Foundation

The Stellar Development Foundation is a Premier member of the x402 Foundation, the Linux Foundation body stewarding the x402 standard under open, vendor-neutral governance. As a Premier member, SDF holds a seat on the Foundation's Governing Board, represented by Tomer Weller, SDF's Chief Product Officer, helping ensure payments for the agentic economy stay open, interoperable, and free from lock-in.

Use cases

Payments built for what comes next

For Institutions and Enterprises

Meter and monetize APIs, data, and services per request — with payments that settle on a public network in about 5 seconds, no billing integration required.

Agentic autonomy

AI agents can discover, authorize, and settle payments programmatically within user-defined spending rules. The workflow doesn't break where the payment begins.

Micropayments

Low, real-time settlement that makes fractional-cent pricing viable at scale.

Subscriptions and renewals

Users set programmable spending rules; agents execute payments within those parameters.

For Developers

Add a payment requirement to any endpoint with the x402 flow — no platform accounts, no API keys, no invoicing. Works with any client: browser, app, or AI agent.

Machine-to-machine payments (M2M)

High-frequency payments between automated systems — IoT devices, microservices, infrastructure — settling on Stellar within programmable spending rules.

Start building

1. Read the docs

x402 on Stellar quickstart: build a paid endpoint and make your first paid request.

2. Try the demo

Use the demo with a compatible wallet on Stellar Testnet or Mainnet.

3. Set up your facilitator

Stellar relayer SDK for custom facilitators and transaction infrastructure.

4. Give agents controlled spending power

OpenZeppelin smart account contracts (spending limits, multi-sig, scoped permissions).

x402 Resources

Connect with partnerships

Want to build with x402?

Talk to our team about integrating x402 on Stellar.

x402 is an open-source payment protocol. It is not a regulated financial service, and neither the Stellar Development Foundation nor the Stellar network operates, controls, or intermediates x402 transactions. Users, AI agents, and service providers integrating x402 are solely responsible for compliance with all applicable laws and regulations in their jurisdictions, including money transmission, sanctions, and consumer protection requirements. Programmable spending controls are available through smart account contracts but do not guarantee regulatory compliance. USDC is issued by Circle Internet Financial, LLC and is subject to Circle's terms and conditions. Availability of x402-compatible services and supported assets may vary by jurisdiction. The Stellar Development Foundation does not custody user funds, process payments, or control the Stellar network. Third-party services referenced herein, including the OpenZeppelin facilitator and managed relayer, are operated independently and subject to their own terms and conditions.