Posted on Leave a comment

The Graph Adds x402 USDC Gateway for Instant On-Chain Data Access

The Graph Adds x402 USDC Gateway for Instant On-Chain Data Access

The Graph has rolled out x402 payment support for its Graph Gateway, enabling developers and AI agents to purchase on-chain data queries on a per-request basis using USDC. The integration eliminates the need for API keys or accounts, using HTTP 402 responses and stablecoin payments on Base for authentication.

The feature allows any HTTP-enabled program holding USDC to access indexed blockchain data instantly. When a request hits the x402 endpoint, the server replies with an HTTP 402 status containing pricing details in headers. The client then signs and broadcasts a USDC transaction on Base mainnet or Base Sepolia, and retries the request to receive the data. Payment itself serves as authentication, bypassing traditional billing flows.

x402 is an open standard developed by Coinbase, repurposing the long-reserved HTTP 402 code for automatic stablecoin payments. Circle, Stripe, and CoinGecko have also adopted x402 for pay-per-use APIs. By plugging into this ecosystem, The Graph turns indexed on-chain data into a commodity for machine-to-machine commerce, gated by USDC balances instead of human signups.

Leave a Reply

Your email address will not be published. Required fields are marked *