deepdive

ERPC x402 Integration: Agent Payments on Solana

Editorial · Jul 5, 2026 · 8 min read

Solana infrastructure provider ERPC has integrated the x402 payment protocol directly into its JSON-RPC access layer on mainnet, allowing AI agents and other automated clients to pay for individual RPC requests using USDC. The integration is a notable expansion of x402 beyond its original use case of HTTP content monetization and into the plumbing layer that every blockchain application depends on. Instead of provisioning API keys, preloading balances, or negotiating rate-limit tiers, a client can now fetch a Solana block, submit a transaction, or query account state on a per-request basis with payment attached to the HTTP call itself.

How x402 Works in an RPC Context

The x402 protocol repurposes the rarely-used HTTP 402 status code — originally reserved for “Payment Required” — as a challenge-response mechanism for machine-to-machine settlement. When a client sends a request to an x402-enabled endpoint without payment, the server responds with a 402 status containing a payment challenge: a description of what is being charged, the amount, the payment recipient, and the settlement network. The client then constructs a payment — in ERPC’s case, a USDC transfer authorization on Solana — and resubmits the request with a payment header. The server verifies the payment, serves the response, and settles the transaction atomically. No account creation, no API key rotation, no monthly invoicing. The friction of onboarding is replaced by the friction of a single HTTP round-trip.

ERPC’s Implementation and What It Means for Solana Agents

ERPC sits in front of Solana’s JSON-RPC interface, meaning every standard RPC method — getAccountInfo, sendTransaction, getSlot, getTokenAccountsByOwner — can theoretically be gated behind x402 pricing. For AI agents operating on Solana, this matters because RPC access is the most common infrastructure dependency an autonomous system will have. An agent that needs to monitor token balances, check transaction status, or submit swaps makes dozens to hundreds of RPC calls per session. Under the traditional API model, the agent’s operator pre-funds an account, receives a key, and trusts the provider’s billing and rate-limiting. Under x402, each call is individually priced and settled. The agent holds USDC, attaches micropayments as needed, and the provider collects revenue per request without managing customer relationships or dunning flows.

Tradeoffs and Open Questions

Per-request payment sounds clean in theory, but the practical questions are substantial. First is latency: each x402-gated request requires at least two HTTP round-trips (challenge, then payment-plus-request) and an on-chain USDC transfer, which on Solana settles fast but is not free. For an agent making a single query, this is acceptable. For an agent issuing high-frequency calls — say, polling slot updates during a arbitrage window — the overhead compounds. Second is payment granularity: pricing each RPC method appropriately requires ERPC to balance what the market will bear against the cost of settlement itself. If a getSlot call costs a fraction of a cent but the USDC transfer fee consumes a meaningful percentage of that, the economics break. Third is privacy and tracking: x402 payments are on-chain, meaning an agent’s RPC spending pattern is visible to anyone watching the recipient address. Whether this matters depends on the use case, but it is a departure from the opacity of API-key-based billing.

The Broader Pattern: Infrastructure-as-a-Service for Agents

ERPC’s x402 integration is one data point in a larger pattern. The x402 standard, originally pushed for content monetization, is being adopted across infrastructure layers because AI agents need programmatic access to services that were historically billed to humans with credit cards. RPC providers, data APIs, inference endpoints, and storage layers are all candidates for per-call settlement. Solana’s low transaction costs and fast finality make it a natural settlement layer for micropayments, and USDC provides the price stability that neither SOL nor volatile tokens can. The question is whether enough agents will transact at sufficient volume to make x402-gated infrastructure commercially viable for providers, or whether the traditional API-key model absorbs AI-agent traffic through bulk pricing and enterprise tiers.

Sources

E
Editorial
Related reading

Related reading