Accept anything as payment! x402 proxy where sponsors pay for user access in exchange for actions




Payload Exchange is a proxy layer that intercepts x402 payment requests and introduces a third party: Sponsors. This expands the end usersâ experience to alternative payments other than stable coins or other monetary currencies, by having sponsors cover the payment (fully or partially) in exchange for user actions or data.
Imagine a near future where quality content providers put their resources (APIs, articles, videos, data endpoints, digital goods...) behind x402 payment walls. Majority of them might be a trivial task with a small fees, some even consumed by AI agents. For better user experience and more sophisticated agentic workflows, this x402 payments can be sponsored in exchange for some minor action or data from the user, really free way to pay with whatever you've got to offer.
In this ETHGlobal demo, the end users can experience this x402 resource access paid with their action from a native ChatGPT Payload Exchange app. For example, when they ask ChatGPT to plan a trip itinerary or research an ideal product for their needs, ChatGPT agent(s) can call a x402 gated tools for a specific content(e.g. paywalled NYTimes article) or execution(generate a Sora video). The user will be prompted to either pay with USDC or âfollow [sponsor] on Xâ or âprovide [desired verified data]â to get it for free. Without Payload Exchangeâs sponsors and x402, the users will have to fully subscribe to each tool instead of accessing that resource one time with micropayment, or have a crypto wallet ready to sign them every single call.
The Three-Way Relationship benefits all parties!:
How It Works:
We made x402 calls and payment accessible right from the ChatGPT interface! So any users can start chatting with the ChatGPT, and actually put through a payment with sponsor-backed actions like following account on X, or pay with USDC. We built a three-layer sponsorship proxy for x402 payments using Next.js 16, Hono API framework, Drizzle ORM with Neon PostgreSQL, and strategic integration of four partner technologies: Coinbase's CDP, x402 Protocol, Coinbase Bazaar, Polygon Resources, and VLayers ZK Proofs
x402 Protocol (Foundation Layer), CDP, Coinbase Bazaar The x402 protocol (via npm packages x402 and x402-fetch) powers the entire payment challenge mechanism. Our proxy (/server/hono/routes/proxy.ts:110-186) implements the x402 specification: parsing x402Version, extracting payment requirements from the accepts array, and using selectPaymentRequirements() to intelligently choose USDC on Base network. The x402 protocol's HTTP-native design (reusing HTTP 402 status code) allowed us to build a clean proxy without custom payment negotiation protocols. We integrated Coinbase Bazaar's x402 service aggregator (Bazaaro at bazaaro-agent.vercel.app) which intelligently routes queries through appropriate x402 services. This gives sponsors access to a diverse marketplace of x402 resources across chains without manual integration work.
VLayers ZK Proofs (Trust & Verification): We integrated VLayers Web Proof service (/server/lib/vlayer/) to generate cryptographic proofs of all proxy request/response pairs. The implementation (/server/lib/vlayer/webproof-parser.ts) parses hex-encoded web proofs containing HTTP transcript data. This solves a critical problem: how do sponsors verify resources are healthy without accessing the x402 responses they're paying for? The ZK proof layer creates an audit trail and reputation system for resource providers without sponsors needing to trust our platform.
Polygon Resources : Our resource registry (/server/core/resources/base-resources.json) includes x402 resources from multiple networks including Polygon-based services, widely expanding the range of usable x402 resources! As this protocol grows, this will be the crucial part to support more sophisticated agentic workflows.

