Repository navigation
Live x402 endpoint on Cloudflare Workers: an agent pays for a pre-deploy release check #2380
genesiscode2026
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The
examples/x402andexamples/x402-mcpdemos run a local server + client on Base Sepolia. Sharing the same pattern against a live mainnet endpoint in case it's a useful reference.A pre-deploy release gate: before
wrangler deploy, an agent calls a paid x402 endpoint that diffs two API/schema versions and returns a SAFE / REVIEW / BLOCK verdict, then pays ~$0.005 USDC on Base mainnet. The endpoint is a Cloudflare Worker using x402 v2 (no account, USDC on Base).Live endpoint:
POST https://genesis-agent-tools.genesisagenttools.workers.dev/api/flagships/release-guardianPayment-Requiredheader (x402 v2, $0.005, Base USDC).Payment-Signatureheader →{ ok, verdict, reasons, evidence }.It's the standard
@x402/fetchflow:wrapFetchWithPayment(fetch)→ POST → 402 → sign → retry → verdict.Happy to contribute a runnable example to
examples/x402/(gate a deploy behind a live paid check) if that fits — posting here first to confirm the pattern against a real endpoint.All reactions