You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build/apps/x402.mdx
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,12 @@ x402 is an open protocol from the Coinbase Developer Platform that enables progr
11
11
12
12
On Stellar, x402 works with Soroban authorization so that clients can pay for API requests via signed auth entries, ideal for micropayments and payment enabled apps. To build an x402-enabled service or integrate payments into your app, see [Build Applications](./README.mdx) and the resources below.
13
13
14
+
## Demo
15
+
16
+
Try the [x402 Demo](https://stellar.org/x402-demo). Send an x402 payment on Stellar Testnet or Mainnet and see the x402 payment flow in action. ([source code](https://github.com/stellar/x402-stellar))
17
+
18
+
[](https://stellar.org/x402-demo)
19
+
14
20
## x402 Compatible Wallets
15
21
16
22
To support x402 on Stellar, a wallet must support [auth-entry signing](../guides/transactions/signing-soroban-invocations.mdx#method-2-auth-entry-signing) (Soroban authorization entry signing). The following wallets support auth-entry signing:
@@ -28,13 +34,23 @@ Freighter Mobile does not currently support x402; use the Freighter browser exte
28
34
29
35
:::
30
36
31
-
## x402 Facilitator
37
+
## x402 Facilitators
38
+
39
+
You can use a facilitator to verify and settle x402 payments. Two options are available for Stellar:
40
+
41
+
### Coinbase x402 Facilitator
42
+
43
+
Coinbase’s x402 facilitator supports Stellar on **Testnet** with sponsored fees. Check which networks and options are supported:
### Build on Stellar Relayer (with OpenZeppelin x402 Plugin)
32
48
33
-
The [OpenZeppelin Relayer x402 Plugin for x402](https://github.com/OpenZeppelin/relayer-plugin-x402-facilitator) implements the x402 Facilitator API so you can serve x402 payments directly from a Relayer instance. The x402 Facilitator leverages the OpenZeppelin Relayer Framework. It works with the [Coinbase x402](https://github.com/coinbase/x402) ecosystem and exposes the expected `/verify`, `/settle`, and `/supported` endpoints under the Relayer plugin router.
49
+
The [Relayer Plugin for x402](https://github.com/OpenZeppelin/relayer-plugin-x402-facilitator) implements the x402 Facilitator API so you can serve x402 payments directly from a Relayer instance. The x402 Facilitator leverages the OpenZeppelin Relayer Framework. It works with the [Coinbase x402](https://github.com/coinbase/x402) ecosystem and exposes the expected `/verify`, `/settle`, and `/supported` endpoints under the Relayer plugin router.
34
50
35
-
### How to Use
51
+
####How to Use
36
52
37
-
The x402 facilitator Service is now live on Testnet and Mainnet. Under the hood, the plugin leverages OpenZeppelin Channels to submit transactions onchain via a managed Relayer and Facilitator setup.
53
+
This x402 facilitator service is available on Testnet and Mainnet. Under the hood, the plugin leverages OpenZeppelin Channels to submit transactions onchain via a managed Relayer and Facilitator setup.
38
54
39
55
#### Testnet
40
56
@@ -56,10 +72,12 @@ This version supports x402 v2 specification. For x402 v1 support, please use a p
56
72
57
73
:::
58
74
59
-
## Resources
75
+
## Examples
60
76
77
+
-**x402 on Stellar (Stellar repo)** — Tools, examples, and references for the x402 protocol on Stellar. Use this as the canonical source for Stellar-specific x402 demos and tooling. [View on GitHub](https://github.com/stellar/x402-stellar)
61
78
-**x402 Starter Template** — A starter template for building payment-enabled applications with x402. Simplified scaffolding demonstrating x402 payment protocol integration with browser wallet support; use it as a foundation for micropayment-enabled services, SaaS applications, or any project that needs frictionless web payments. [View on GitHub](https://github.com/ElliotFriend/x402/tree/stellar-browser-wallet-example/examples/typescript/fullstack/browser-wallet-example)
62
79
-**Economic Load Balancer** — An intelligent multi-chain payment router that automatically selects the most cost-efficient network for high-frequency AI agent micropayments. [View on GitHub](https://github.com/marcelosalloum/x402/tree/x402-hackathon)
80
+
-**1-shot Stellar x402 app** — Example x402 app with a video paywall and guide for building payment-enabled apps on Stellar. [View on GitHub](https://github.com/oceans404/1-shot-stellar/tree/main/x402-app)
63
81
64
82
## Additional Documentation
65
83
@@ -71,8 +89,10 @@ This version supports x402 v2 specification. For x402 v1 support, please use a p
71
89
72
90
## Learn more
73
91
74
-
-[x402 Demo](https://stellar.org/x402-demo) — A demo site for an x402 transaction on Stellar
92
+
-[x402 on Stellar (Landing page)](https://stellar.org/x402) — Stellar x402 overview and resources
93
+
-[x402 on Stellar (Blog)](https://stellar.org/blog/foundation-news/x402-on-stellar) — Foundation news and announcement
75
94
-[x402 protocol (Coinbase Developer Platform)](https://docs.cdp.coinbase.com/x402) — Official x402 protocol overview and spec
76
95
-[x402 protocol specification](https://www.x402.org/) — x402 Specification and Whitepaper
77
96
-[Coinbase x402 GitHub](https://github.com/coinbase/x402) — Official x402 Protocol GitHub Repo
97
+
-[x402-stellar (npm)](https://www.npmjs.com/package/x402-stellar) — npm package for x402 on Stellar
78
98
-[Signing Soroban invocations](../guides/transactions/signing-soroban-invocations.mdx) — Auth-entry signing and transaction signing on Stellar
0 commit comments