The Graph x402 USDC gateway goes live – machine-paywall for on-chain data?

The Graph has activated x402 payments inside its Graph Gateway, allowing developers and AI agents to purchase on-chain data queries on a pay-per-request basis using $USDC, according to an announcement from the project’s official X account. The team said that “Graph Gateway now officially supports x402 Payments,” meaning clients can access indexed blockchain data “without the need for an API key, account, or backend panel” by paying directly over HTTP with stablecoins on Base.
The Graph turns HTTP 402 into a $USDC paywall for Subgraphs
The Graph’s network currently indexes data from multiple chains, spanning token information, DEX trading pairs, governance events, NFT metadata and protocol activity, exposing it through Subgraphs that power thousands of DeFi and Web3 applications. Until now, developers typically had to register with Subgraph Studio and obtain an API key to query this data at scale, but the project said x402 “changes this access model” by letting any agent that speaks HTTP and holds $USDC pay for queries on demand.
Under the new flow, when an agent or program hits the x402-enabled endpoint, the server responds with an HTTP 402 status that includes pricing information in the headers, mirroring the standard described in Coinbase’s x402 documentation. The client then signs and broadcasts a $USDC payment on the Base mainnet (or Base Sepolia for testing) and retries the request, at which point the Graph Gateway returns the requested data, with “the payment itself serv[ing] as authentication,” the team explained.
The update adds a new /api/x402/ interface, a payments SDK, support for any tools compatible with the x402 protocol, and $USDC payments on both Base mainnet and Base Sepolia, while leaving the existing API key model unchanged, The Graph said. “Subgraph data is now directly accessible by any program or Agent that supports HTTP and holds $USDC,” the announcement noted, positioning the network as a native data feed for AI agents, bots and machine-to-machine workflows.
x402 itself is an emerging open standard developed by Coinbase to revive the long-reserved HTTP 402 “Payment Required” code as a built-in payment step for web resources, including APIs and model context calls. Coinbase describes x402 as “a new open payment protocol … that enables instant, automatic stablecoin payments directly over HTTP,” with agents receiving a 402, paying in $USDC, and then getting the resource, turning monetization into infrastructure rather than separate billing flows.
That concept is quickly spreading across the web stack: Circle has framed x402 as a backbone for “machine-to-machine micropayments with Gateway and $USDC,” while Stripe, CoinGecko and others have rolled out x402-powered pay-per-use APIs for data and AI agent access, as reported by crypto.news. By wiring The Graph’s Subgraph data directly into that ecosystem, the new x402 integration effectively turns indexed on-chain data into a first-class commodity for AI-native commerce, gated not by human signups and API dashboards, but by HTTP status codes and $USDC balances in autonomous wallets.