StealThis .dev

Web3 — Transaction Confirm / Signing Sheet

A glassy, wallet-style signing request sheet that slides up to confirm a swap, send, or token approval. Shows from/to addresses, a network badge, an animated swap visual, a fee and estimated-total breakdown, and an expandable panel revealing raw calldata, nonce and gas. Risk warnings flag dangerous approvals. Confirm spins through signing into a success state with a mock tx hash and explorer link; reject, Esc, and overlay clicks dismiss it with a full focus trap.

Apri in Lab
html css vanilla-js
Target: JS HTML

Codice

Transaction Confirm / Signing Sheet

A wallet-popup style confirmation sheet for signing on-chain transactions. It mimics the moment a dApp asks your wallet to sign: the request slides up from the bottom (centering as a modal on wider screens) with the requesting origin, a network badge, and a gradient-bordered hero card that states exactly what you are about to do — for example Swap 1.5 ETH → 4,210 USDC. All addresses, amounts, hashes and gas values use a monospace font and truncated 0x1234…ab9f formatting for trust and legibility.

Three sample requests are wired up: a swap, a send, and a flagged token approval that surfaces a red risk banner (“unlimited approval”). Each populates the same sheet with its own tokens, fee line, and estimated total. An Advanced details expander reveals the nonce, gas limit, max/priority fee, and the raw calldata in a scrollable code block with a copy button.

Pressing Confirm moves through a signing spinner into an animated success state showing a freshly generated mock tx hash and a block-explorer link; Reject, the close button, the Esc key, and clicking the dimmed overlay all dismiss the request. The dialog uses role="dialog" with aria-modal, a focus trap, restored focus on close, focus-visible rings, and a prefers-reduced-motion fallback.

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