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 | What it means |
|---|---|
| x402Version | Protocol version (the current one is 2). |
| error | Optional message from the server about why payment is needed. |
| resource | The resource being charged for: its URL and, optionally, a description and content type. |
| accepts | The list of accepted ways to pay. You pick one. |
| scheme | The payment scheme, for example exact. |
| network | The network, in CAIP-2 format: eip155:8453 is Base and eip155:84532 is Base Sepolia. |
| amount | The amount in atomic units of the asset, written as text. |
| asset | The token used to pay (its contract address). |
| payTo | Who gets paid. |
| maxTimeoutSeconds | Maximum time, in seconds, to complete the payment. |
| extra | Scheme-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.
curl -i https://api.example.com/weatherWhat 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.