x402 Payment Header & 402 Requirement Inspector
Paste an X-PAYMENT / X-PAYMENT-RESPONSE header or an HTTP 402 accepts body. Everything is decoded, validated and converted locally — no network calls, no keys.
Accepts standard or URL-safe Base64, a full X-PAYMENT: … header line, or plain JSON. Decoded bytes never leave this tab.
Validation checks
Structural and semantic rules for x402 v1/v2 payloads on Base.
Decoded payload
USDC atomic ↔ decimal converter
Base USDC has 6 decimals: 1 USDC = 1,000,000 atomic units. Works with BigInt, so 18-decimal-sized values never lose precision.
What exactly is inside an x402 X-PAYMENT header?
It is Base64-encoded JSON with an x402Version, a scheme (usually exact), a network (base, base-sepolia, or CAIP-2 like eip155:8453) and a payload. For exact EVM payments the payload holds an EIP-3009 authorization — from, to, value, validAfter, validBefore, nonce — plus the payer's 65-byte signature. The facilitator submits it on-chain with transferWithAuthorization.
Why do amounts look huge, and how do validAfter / validBefore work?
USDC on Base uses 6 decimals, so value: "250000" means 0.25 USDC — that is an atomic amount, not dollars. validAfter and validBefore are UNIX seconds bounding when the signed authorization may be settled: before validAfter the transfer reverts as not-yet-valid, after validBefore it is expired. Each authorization also carries a random 32-byte nonce so it can only be used once.