Atomic amount as a JSON number

Quirk · GET /api/x402/amount-as-number · 402 / Challenge Construction

Emits the atomic amount as a JSON number instead of a string.

Explanation

The atomic amount is emitted as a JSON number instead of a string, which risks silent precision loss for large values. The spec requires string amounts, so the merchant's serializer must be fixed.

What to watch

A number-typed amount can silently lose precision; the spec requires a string.

Facilitator

Settled against the live Radius testnet facilitator (https://facilitator.testnet.radiustech.xyz). A valid payment runs a real /verify and /settle on-chain.

Metadata

Back to catalog