StealThis .dev

Web3 — Send / Receive (address · QR · confirm)

A glassy two-tab wallet panel for sending and receiving fictional tokens on a mock chain. Send combines recipient validation with .nova name resolution, a token picker with live balances, amount-to-fiat sync with MAX, a network fee summary, and a review-confirm-sign flow that ends with a copyable transaction hash. Receive renders a CSS-grid QR block seeded from your address, network and optional request amount, plus one-tap copy and payment-link sharing.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Send / Receive (address · QR · confirm)

A single wallet card with a pill tab switcher gliding between Send and Receive. The Send tab validates the recipient as you type — raw 0x addresses get instant green/red border states, while .nova names trigger a mock resolver that returns a truncated monospace address after a short delay. A token selector dropdown lists four fictional assets (NOVA, LUM, USDX, ASTR) with balances and prices, and the amount field keeps a live fiat estimate in sync, with a MAX button that reserves the network fee.

Pressing Review transfer opens a confirm dialog with an irreversibility warning, the animated amount, the resolved recipient and the fee breakdown. Sign & send walks through Signing → Broadcasting states before landing on a success card with a freshly generated 64-char tx hash you can copy, and the token balance is debited locally.

The Receive tab draws a 21×21 QR-style grid in pure CSS, deterministically seeded from your address, the selected network and the optional request amount — change either and the pattern redraws while the caption updates (“Requesting 25 NOVA on Aster L2”). Copy-address, share-payment-link and every state change surface through a small toast helper; tabs, the token listbox and the network radio group are all keyboard-operable.

UI-only simulation — no real wallet, RPC, or on-chain calls. Mock data, fictional tokens.