Agentic Payments: A Working USDC Example
Agentic payments explained with a live endpoint: an AI agent reads a 402 quote, checks it, pays USDC on Base or Solana and receives proxy access.
By Proxies.sx Team. Reviewed .
Agentic payments are payments that software agents make on their own, within limits set by a person. Proxies.sx sells proxy bandwidth that an agent can buy this way today: the agent asks for a product, receives an HTTP 402 quote with the USDC amount and recipient, checks it against published pricing, sends the transfer on Base or Solana, and retries with the transaction hash to receive a capped proxy credential. No account, card or human checkout is involved in the purchase itself.
Read live x402 pool pricingNo key or payment needed.
In this guide
What agentic payments are
An agent that browses, scrapes or calls APIs eventually meets something that costs money. Agentic payments let it pay at that point instead of stopping for a person to sign up and enter a card. HTTP has reserved a status for this for decades: MDN describes 402 Payment Required as a nonstandard code reserved for future use, with no standard use convention. x402 is one convention for it, described by its site as an open, neutral standard for internet-native payments.
The four decisions an agent makes
- Quote. Ask for the product and read the price, asset, network and recipient from the 402 answer.
- Approve. Compare the quote with what the person allowed: product, amount, recipient. Stop if anything differs.
- Pay. Send the transfer from a wallet the agent controls.
- Use. Present the proof, store the result safely and use what was bought.
The IETF draft on status code 402 adds that clients that pay without direct human involvement need constraints on how much, how often, and to whom they will pay.
Example: an agent buys proxy access
Here is the whole purchase for 1 GB of our peer pool. The agent reads our 402, compares payTo and the amount with the published pricing, pays, sends the proof and receives a credential capped at 1 GB.
| # | From | To | Message |
|---|---|---|---|
| 1 | Agent | api.proxies.sx | GET /v1/x402/pool?tier=peer&country=us&traffic=1 |
| 2 | api.proxies.sx | Agent | 402 with accepts: Base and Solana, amount, asset, payTo |
| 3 | Agent | api.proxies.sx | GET /v1/x402/pricing to compare payTo |
| 4 | Agent | Base or Solana | USDC transfer of the quoted amount |
| 5 | Agent | api.proxies.sx | Same request plus Payment-Signature and X-Claim-Secret |
| 6 | api.proxies.sx | Agent | 200 with the credential and a session token |
The full terminal purchase is in the curl quickstart.
Guardrails that work today
- A low-balance wallet. The agent's wallet holds only what it may spend.
- An approval record. The purchase approval guide lists what to record before the agent pays.
- A cap per credential. What the agent buys stops at the GB it paid for.
- Quote checks. The recipient must match the published pricing endpoint, the asset must be official USDC, and the amount must match the requested GB. The IETF draft notes that an attacker who can insert or modify responses can substitute their own payment information, and that clients should not act on payment information received over an unauthenticated connection.
Two ways to settle an x402 payment
| Direct transfer (Proxies.sx today) | Facilitator-settled x402 | |
|---|---|---|
| What the client sends | The hash of a USDC transfer it already made | A signed payment payload |
| Who moves the money | The client's wallet | A facilitator, from the signed authorization |
| Client libraries | Any wallet library plus an HTTP client | x402 client libraries such as @x402/fetch |
The x402 documentation describes the facilitator as an optional but recommended service that verifies and settles payments. Our endpoints do not accept signed payloads for payment today; the client compatibility guide explains what that means for your code.
What a team needs before letting an agent pay
- A wallet for the agent, funded with a fixed amount on Base or Solana.
- A written limit: which products, how much per purchase, which recipients.
- Storage for credentials and session tokens that keeps them out of logs and transcripts.
- A recovery habit: a claim secret on every paid request, and the transaction hash kept with it.
- A tool. The MCP wallet mode handles the Base flow for MCP clients; the curl quickstart shows the raw HTTP.
For a plain-language view of why agents buy bandwidth, read how AI agents buy proxy bandwidth.
Common questions
Do agentic payments need a crypto wallet?
This example does, because x402 at Proxies.sx settles in USDC. Other agentic payment programs use cards or accounts; an account with an API key is also available here.
Can the agent buy without any human setup?
Someone has to fund the agent's wallet and decide its limits. After that, each purchase runs without a checkout page.
What stops an agent from overspending?
The wallet balance, your approval rules and the cap on each credential. Proxies.sx does not offer a spend cap of its own on x402 purchases.
Sources and test scope
Quotes, prices and response fields on these pages were read from the live API without payment on 30 November 2026, and the error texts come from the backend build running that day. The wallet account examples follow the source of that build, and their signing commands were checked offline against its verification code. Standards and third-party documentation were checked the same day. These pages do not establish current stock in a country.
Next steps
The x402 overview lists every endpoint. The wallet account recipe gives both purchase paths step by step: x402 direct, and signing in with the paying wallet. Agents can read the machine contracts directly: skill.md for the whole service, pool/skill.md for the Pool Gateway and marketplace/skill.md for the dedicated port. The MCP server gives Claude, Cursor and other clients the same tools, and the price list covers account purchases.
x402 guides: buy proxy access with USDC
Start from the x402 overview, or open the guide for the step you are on.