Tools

What is that x402 402 response asking you to pay?

The x402 PAYMENT-REQUIRED header is base64-encoded JSON listing the ways to pay for a resource: amount, network, asset and destination. Paste it here and it is shown in readable form, without leaving your browser.

Last updated:

It only reads and displays the header: it does not verify signatures, does not contact any network or the resource address, and is not a security audit. What you paste is treated as text and is not sent to any server.

Paste the base64 text of the PAYMENT-REQUIRED header (version 2), with or without the header name in front. If it is version 1, paste the JSON body of the 402 response.

If you set it, it warns when a USDC option goes over it. Up to 6 decimal places.

The example is made up (the api.example.com service and a placeholder destination); it is not a real payment.

What the header says

Paste a header above or press “Use an example” to see how it reads.

Everything happens in your browser. What you paste or type is not sent to or stored on any server.

What the PAYMENT-REQUIRED header is

When you request a resource that is paid for with x402, the server answers with the 402 Payment Required status. In version 2 of the protocol, the payment instructions travel in the PAYMENT-REQUIRED header: a JSON object encoded in base64. The payer answers with another header, PAYMENT-SIGNATURE, and the server confirms the outcome with PAYMENT-RESPONSE (x402 HTTP transport specification).

In version 1 of the protocol the payment information goes in the JSON body of the 402 response, not in a base64 header, and uses other names (for example maxAmountRequired instead of amount). If you paste that JSON body, the decoder reads it too and warns you.

How to read each field

Field
FieldWhat it means
x402VersionProtocol version (the current one is 2).
errorOptional message from the server about why payment is needed.
resourceThe resource being charged for: its URL and, optionally, a description and content type.
acceptsThe list of accepted ways to pay. You pick one.
schemeThe payment scheme, for example exact.
networkThe network, in CAIP-2 format: eip155:8453 is Base and eip155:84532 is Base Sepolia.
amountThe amount in atomic units of the asset, written as text.
assetThe token used to pay (its contract address).
payToWho gets paid.
maxTimeoutSecondsMaximum time, in seconds, to complete the payment.
extraScheme-specific data.

The amount is in atomic units, not dollars. With USDC (6 decimals), "10000" is 0.01 USDC. When the asset is a known USDC, the decoder does the conversion for you; if it does not recognize it, it shows only the number, because the decimals depend on the token. To convert by hand, use the USDC converter.

How to get the value to paste

Request the resource without paying and look at the headers of the 402 response. From a terminal, curl -i prints them; in the browser, use the Network tab of the developer tools. Copy only the value of the PAYMENT-REQUIRED header.

Example
curl -i https://api.example.com/weather

What to do if the amount is more than you want to spend

Type your limit per payment and the decoder warns you when a USDC option goes over it. But a notice on a page does not stop an agent: the limit has to be enforced by a system the agent cannot edit. Read the guide to spending limits and the guide to what x402 is.

Frequently asked questions

Is what I paste sent to a server?

No. Decoding happens in your browser, the text is displayed only as text and the page neither sends nor stores it. You do not need to sign up either.

Does it verify that the payment or signature is valid?

No. It only translates the header into readable fields. It does not contact any network or the resource address, and it does not replace a security review.

Why is the amount not in dollars?

Because x402 writes it in atomic units of the asset. If the asset is a known USDC (6 decimals), the decoder converts it; if it does not recognize it, it does not invent the decimals and shows only the number.

Does Nouron Pass pay with x402 yet?

Not yet. Nouron Pass is in early access and works in the Sandbox; it does not process real payments or x402 payments. x402 is one of the payment methods we are evaluating.

Try these limits in the Sandbox

Nouron Pass is designed to enforce limits outside the agent. Today it runs in the Sandbox. Reserve your spot and we will write to you when your access opens.