# x402 payment on agentic402: USDC on Base, settled on success | agentic402

> How x402 payment works on agentic402: x402 v2, exact scheme, USDC on Base, verified before the tool runs and settled only after it succeeds. Fields and fees.

Source: https://agentic402.dev/docs/payments/

Published 3 December 2026 · Updated 3 December 2026

x402 payment on agentic402 uses x402 version 2 with the `exact` scheme, paid in USDC on Base mainnet (`eip155:8453`). Each payment is verified before the tool runs and settled only after the tool succeeds, so a call that returns an error costs nothing. There are no accounts, API keys or refunds.

## The round trip

1. The agent calls a paid endpoint without payment.
2. The server answers `402 Payment Required` with a base64 JSON offer in the `PAYMENT-REQUIRED` header.
3. The agent's x402 client signs a USDC transfer authorization for the offered amount and repeats the request with it in the `PAYMENT-SIGNATURE` header.
4. The server asks the facilitator to verify the signature and the funds, runs the tool, and if the tool succeeded asks the facilitator to settle. The result comes back with a `PAYMENT-RESPONSE` receipt.

## Fields in the 402 offer

These are the values our endpoints return, taken from a live 402 for fetch on 3 December 2026.

*Fields in accepts[0] of an agentic402 402 response*

| Field | Value | Meaning |
|---|---|---|
| scheme | exact | Pay exactly this amount |
| network | eip155:8453 | Base mainnet, as a CAIP-2 chain ID |
| amount | 5000 | In the asset's smallest unit; USDC has 6 decimals, so $0.005 |
| asset | 0x8335…2913 | The USDC contract on Base |
| payTo | 0xAF3E…f2C9 | The wallet that receives payments |
| maxTimeoutSeconds | 300 | How long the offer is valid |
| extra | {"name": "USD Coin", "version": "2"} | Token details the client needs to sign the authorization |

The full addresses are `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` (USDC) and `0xAF3E683729c949538412e3C0709E952A24d1f2C9` (our receiving wallet). The offer also carries a `resource` block describing the endpoint and, for every paid route except memory, discovery metadata that x402 catalogs read.

## When you are charged

The rule is simple: only a successful response is settled. Any response with a status of 400 or above leaves the payment unsettled, so the authorization is never used and no USDC moves. If settlement itself fails after the tool ran, the result is withheld rather than given away unpaid.

*What is charged*

| Situation | Charged |
|---|---|
| Unpaid request (you only see the 402) | no |
| Bad input, rejected before the 402 (400, 401, or 413 for a memory value over 1 MB) | no |
| Tool error after payment (403, 413, 415, 429, 502, 504) | no |
| Successful call (200 or 201) | yes, final |
| Free endpoints (reads, lists, status, verify) | never |

A wake job is paid when it's scheduled, since scheduling is the work. A job that later fails to deliver is not refunded. [The error reference](https://agentic402.dev/docs/errors/) lists every status per tool.

## The facilitator and its fee

We don't run blockchain infrastructure. A facilitator checks payment signatures and submits transfers on-chain for us: agentic402 uses PayAI at `facilitator.payai.network`. PayAI's pricing page listed $0.0015 per EIP-3009 transfer settled on Base mainnet on 3 December 2026. PayAI says its rate tracks the gas it pays to settle, plus 30%, and refreshes daily, so the fee moves, but it is charged per payment whatever the amount. That per-payment fee is why no agentic402 price is below $0.005: a cheaper price would mostly go to settlement.

The agent pays only the listed price. It never sends a transaction itself, so it needs no ETH for gas.

## Receipts, privacy and refunds

The `PAYMENT-RESPONSE` header on a successful call is a base64 JSON receipt that includes the payer address; `@x402/fetch` exports `decodePaymentResponseHeader` to read it. The payment itself is a public USDC transfer on Base, so the paying wallet, our wallet, the amount and the time are visible to anyone. Our application logs record the payer address per call, and for fetch the hostname fetched, with no request bodies, page contents or IP addresses.

There are no refunds. Failed calls are never charged in the first place, and a successful call delivered what was paid for.

## Paying over MCP

Over the [MCP server](https://agentic402.dev/docs/mcp/), an unpaid call to a paid tool returns a tool error whose content is the same payment offer. An x402-aware MCP client, such as one built with `@x402/mcp`, pays by sending the signed payment in the tool call's `_meta` field under `x402/payment`, and the receipt comes back under `x402/payment-response`. Input is checked before payment, and a tool that returns an error is not settled, as with HTTP.

## Related

- [Make your first paid call](https://agentic402.dev/docs/quickstart/)
- [What is x402?](https://agentic402.dev/guides/what-is-x402/)
- [API keys vs x402](https://agentic402.dev/compare/api-keys-vs-x402/)
- [Prices for every endpoint](https://agentic402.dev/pricing/)
