The Graph Gateway Launches x402 Payment System for Subgraph Queries

🤖 Payment IS Authentication

By The Graph
May 14, 2026, 3:05 PM
twitter

The Graph Gateway has introduced x402 payment support, enabling direct pay-per-request access to Subgraph data without API keys or accounts.​

Key features:

  • Pay per query using USDC on Base or Base Sepolia
  • No registration, API keys, or session management required
  • Payment serves as authentication
  • One HTTP round trip: request → 402 response with price → sign USDC payment → retry → receive data

Implementation:

  • Install via npm: @graphprotocol/client-x402
  • Access endpoints at /api/x402/.​.​.​
  • Documentation available

Use cases: Particularly useful for AI agents requiring onchain data like DEX activity, positions, governance, or protocol metrics.​

The system is live and available for testing on both Base mainnet and Base Sepolia testnet.​

Sources
Read more about The Graph

Agent0 Subgraphs Launch Across Five Major Blockchains with The Graph Protocol

**Agent0 Subgraphs are now live** across Base, BNB Chain, Ethereum, Monad, and Polygon, providing real-time indexing for ERC-8004 agents. **What's being indexed:** - Agent identity and capabilities - Reputation scores and validation data - Cross-chain agent activity **Key features:** - Single GraphQL query replaces complex blockchain scanning - Millisecond response times with no RPC limits - Unified schema works across all five chains - Already processed over 1M queries **Built with The Graph Protocol** as a public good, the subgraphs enable developers to query agent data without building custom indexers. This infrastructure supports emerging use cases like agent marketplaces, runtime discovery, reputation dashboards, and cross-chain analytics. The launch addresses a fundamental need as AI agents begin transacting autonomously on-chain, requiring structured, real-time blockchain data at machine scale.

The Graph Launches x402 Payment Package with Three Integration Options

**The Graph protocol has released a new dedicated package** for x402 payments: `@graphprotocol/client-x402` Developers can integrate it three ways: - **CLI one-liner** - fastest implementation method - **Programmatic API** - for custom integrations - **Typed SDK** - includes full type safety for TypeScript projects **Payment options:** USDC on Base mainnet or Base Sepolia testnet **Get started:** - Install: `npm install @graphprotocol/client-x402` - [Documentation](https://thegraph.com/docs/en/subgraphs/guides/x402-payments/) The package enables developers to implement blockchain data payment flows directly into their applications.

🔓 The Graph Removes API Key Requirement for Network Access

**The Graph Network is changing how developers access Subgraph data.** Previously, querying Subgraphs required a Subgraph Studio account and API key - a setup that worked for traditional apps but created friction for: - Autonomous agents - Serverless functions - Ephemeral workloads that spin up and down This barrier made it difficult for modern, dynamic applications to integrate blockchain data seamlessly. **The change enables more flexible access patterns** without the overhead of persistent credentials, particularly benefiting short-lived processes and automated systems that need to query data without manual setup.

Agent0 Subgraphs Now Live Across Five Mainnets with Unified GraphQL Schema

**Agent0 Subgraphs are now operational across five major blockchain networks** - Base, BNB Chain, Ethereum, Monad, and Polygon - using a single GraphQL schema. **Key features:** - Real-time indexing of every ERC-8004 agent across all chains - No code rewrites needed when switching between networks - Already processed over 1 million queries - Accessible via [Graph Explorer](https://thegraph.com/explorer?search=agent0) **What this enables:** - Developers can query agent data with a single GraphQL request instead of scanning thousands of blocks - AI agents can discover, hire, and interact with each other using structured blockchain data - Machine-scale data access for agents that operate continuously The infrastructure indexes agent identities, capabilities, reputation, and validation data in milliseconds. Developers building ERC-8004 agents can now access comprehensive onchain data without building custom indexers.