Skip to content

Issue 320 x402 discovery - #369

Merged
Emmy123222 merged 4 commits into
Emmy123222:mainfrom
Fayedamz:issue-320-x402-discovery
Sep 3, 2026
Merged

Issue 320 x402 discovery#369
Emmy123222 merged 4 commits into
Emmy123222:mainfrom
Fayedamz:issue-320-x402-discovery

Conversation

@Fayedamz

Copy link
Copy Markdown
Contributor

closes #320

Summary
Adds standardized x402 discovery metadata at /.well-known/x402 so autonomous clients can discover StellarSearch’s paid resources and payment requirements without scraping human documentation.
Changes
Added a shared runtime-configured x402 discovery metadata builder.
Added Express support for GET /.well-known/x402.
Added the matching Vercel serverless handler and root-path rewrite.
Advertised resource templates for /search, /images, and /news.
Included active Stellar networks, Soroban USDC contract, exact payment scheme, amount, currency, and receiving address.
Added canonical priceDiscoveryUrl generation with optional PUBLIC_BASE_URL support.
Added five-minute cache headers for discovery responses.
Updated the Vercel service index and README documentation.
Added unit and API-level coverage for metadata shape, runtime configuration, URL derivation, method restrictions, and cross-runtime behavior.
Verification
205 tests passed across 18 test files.
Production build passed.
TypeScript validation passed.
git diff --check passed.
Existing payment approval, x402 verification, replay protection, and settlement behavior remains unchanged.
Branch
issue-320-x402-discovery

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Emmanuel's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@Fayedamz Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Emmy123222
Emmy123222 merged commit c4f4916 into Emmy123222:main Sep 3, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Serve standardized x402 discovery metadata under .well-known

2 participants