Wrapped x402 — Browser Pay Modal (UMD)
Intercept HTTP 402 → show Pay modal → pay with Phantom or MetaMask → auto-retry with x402-proof.
ENV:
browser
Not connected
Connect Wallet
Disconnect
Controls
CALL REAL ENDPOINT (/premium)
MOCK 402 (NO BACKEND)
CLEAR OUTPUT
Last Response
Status
HTTP
—
Wallet
No wallet
Phantom
—
MetaMask
—
Select a wallet
Close
Phantom (Solana)
MetaMask (EVM)
Install Phantom / MetaMask if not detected.
Payment Required
HTTP 402
Close
Receiver
—
Amount
—
TTL
—
Nonce
—
Pay with Phantom
Pay with MetaMask
If a serialized transaction is provided, it will be sent; otherwise we sign a proof and retry.