Quick start
Drop in the script, optionally set a few theme variables, and HazeWallet is live.
<script src="https://hazewallet.com/embed.js?v=23" async defer></script>window.HazeWallet.open() / close() for custom integrations.HazeWallet gives websites and web apps a sleek self-custody wallet with one script tag, optional theming, a built-in launcher pill, a JavaScript API, and an optional buy flow for funding the wallet.
Drop in the script, optionally set a few theme variables, and HazeWallet is live.
<script src="https://hazewallet.com/embed.js?v=23" async defer></script>window.HazeWallet.open() / close() for custom integrations.Configure the launcher label and open behavior before the script loads.
<script src="https://hazewallet.com/embed.js?v=23"
data-position="right"
data-label="HazeWallet"
data-accent="#2ecfff"
data-accent-deep="#7750ff"
data-bg="#07112b"
data-radius="18px"
async defer></script>Choose right, left, top, or bottom. HazeWallet stays a compact vertical wallet panel while the host page remains visible behind it.
Use the script attributes generated by the Add Widget page, or CSS variables if you prefer to theme manually.
:root {
--haze-accent: #2ecfff;
--haze-accent-deep: #7750ff;
--haze-bg: #07112b;
--haze-radius: 18px;
}Primary brand color used in buttons, highlights, and selection states.
Secondary gradient color that gives the wallet the HazeWallet glow.
Controls the roundness of the pill launcher and wallet surfaces.
The default launcher is designed to feel polished, obvious, and clickable.
HazeWallet automatically injects the launcher into the page so the wallet is immediately usable with no extra work.
<!-- Prefer your own custom CTA? -->
<button id="wallet-button">Open Wallet</button>
<script>
document.getElementById("wallet-button")
.addEventListener("click", () => window.HazeWallet.open());
</script>Control the embedded wallet programmatically from your own site or app.
window.HazeWallet.open();window.HazeWallet.close();HazeWallet is built around practical self-custody flows that are simple for users and clear for builders.
Users can generate a new wallet directly in the browser and encrypt it locally with a password.
Existing users can paste a WIF and save it into the browser vault without sending private keys to a server.
The wallet shows a receive address and QR code for funding.
Transactions are signed locally and broadcast through the configured node.
The wallet includes a built-in buy view so users can request a quote and move into a provider checkout flow.
The user chooses a fiat currency and amount, confirms the destination address, and HazeWallet requests an estimate from the configured on-ramp relay.
HazeWallet remains self-custodial. The payment and identity checks belong to the external provider.
Short answers to the questions builders usually ask first.
If the HazeWallet widget appears blank, shows a browser "blocked" message, or simply never appears, the cause is almost always your website's headers — a Content-Security-Policy (CSP) and/or X-Frame-Options — not HazeWallet. A browser can only load one site inside an iframe on another site if the host page's CSP allows it. HazeWallet itself sends permissive embedding headers, so the rule you need lives on your domain.
frame-srcThis is what lets your site embed the widget:
frame-src 'self' https://hazewallet.com https://www.hazewallet.com;
When the wallet flow shows one of your own pages inside the widget (for example a payment or checkout page), that page must permit itself and HazeWallet in frame-ancestors:
frame-ancestors 'self' https://hazewallet.com https://www.hazewallet.com;
frame-ancestors 'none'. It means "never allow framing." A browser drops the whole frame-ancestors directive if 'none' is present, so it must be removed — not combined with allowed domains.X-Frame-Options: DENY on pages that must open inside the wallet — it blocks iframe embedding entirely. Remove it (or don't send it) for those pages.'self'If your site opens a page of its own in an iframe, and that page embeds HazeWallet, then both frame-src and frame-ancestors should include 'self' as well.
default-src 'self';
script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src https://fonts.gstatic.com;
img-src 'self' data:;
connect-src 'self' https://cloudflareinsights.com;
object-src 'none';
base-uri 'self';
form-action 'self';
frame-src 'self' https://hazewallet.com https://www.hazewallet.com;
frame-ancestors 'self' https://hazewallet.com https://www.hazewallet.com;
upgrade-insecure-requests
Content-Security-Policy header to your merged value above.X-Frame-Options is set to DENY, remove that header for those pages.curl.exe -sI https://YOURDOMAIN.COM/ | findstr /I "content-security-policy x-frame-options"
Confirm the returned Content-Security-Policy contains the frame-src / frame-ancestors entries above, and that X-Frame-Options: DENY is not being sent on the pages that must be framed.
A HazeWallet error page, a 502, or a broadcast/API failure is a separate issue and should not be treated as a CSP/embedding problem.
No. The core value proposition is that builders can add the widget without a HazeWallet signup or partner dashboard.
No. The wallet is self-custodial and the private key stays on the user's device.
Yes. Use the theme variables to control accents, background tone, and border radius so the pill launcher and wallet feel native.
Yes. Call window.HazeWallet.open() from any interaction in your interface.