Chromium engineering

How to build a Web3 browser: wallet, dApps and security

By Yasir Ahmed, Browser Security Engineer

Technically reviewed by Usman Khan, Lead Chromium Developer

Published 8 min read

Title card reading "Web3 browser" with a diagram of a dApp page calling an EIP-1193 provider that routes to a wallet in the browser process.
In a Web3 browser the wallet is part of the browser, so the browser itself holds keys and approves transactions.

Most “Web3 browser” articles list browsers to download. This one is for teams building one: where the wallet should live, the standards dApps expect, how to handle keys and signing, and the Chromium work behind it. It draws on Web3 browsers we built for clients. For the general build process, see our guide to building your own browser.

What is a Web3 browser?

A Web3 browser is a browser that can talk to blockchain apps (dApps) without extra software. Usually that means a crypto wallet built into the browser, and sometimes support for decentralized addresses such as ipfs:// links or a custom URL scheme.

Brave is the best-known example: its site describes Brave Wallet as a crypto wallet built into the browser, with no extension required. The Web3 browsers we have built show the range of what “Web3” can mean:

Web3 features in browsers we built
BrowserWhat we built in
GTXIPFS support, a gtx:// protocol, a built-in wallet and privacy hardening
MinegoA wallet protocol in the browser’s own code, a VPN, a side panel and links into Minego’s products
BrowseWeb3A built-in wallet, a native VPN and ad blocking, so users needed no extension
ORBITiAn orbit:// URL scheme, BlockCerts sign-in, notifications and chat

See the GTX, Minego, BrowseWeb3 and ORBITi case studies for the details, or our Crypto and Web3 page for all of them in one place.

Should the wallet be built into the browser or be an extension?

Build it in when the wallet is the product and you want it on every install with no extra step. Keep it an extension when you need it in Chrome, Edge and Brave too. A built-in wallet ships on your release schedule, but it is security-critical code you must carry through every Chromium update.

Built-in wallet vs extension wallet
Built into the browserWallet extension
InstallComes with the browserA second install from a store
Runs inYour browser onlyChrome, Edge, Brave and other Chromium browsers
UpdatesOn your release scheduleThrough store review
Access to the browserFull: your own UI, storage and processLimited to the extension APIs
UpkeepCarried through every Chromium updateBrowser and store policy changes

On Minego, the wallet protocol lived in the browser’s own code. When the wallet is part of the browser, the browser itself holds keys and approves transactions, so that code needs the care of any security-critical component: tight limits on what web pages can reach, careful review, and a plan for every Chromium update. Our extension vs custom browser guide covers the general trade-off.

A middle path is a wallet extension installed with the browser. On GTX, the wallet installed with the browser is a fork of MetaMask. If you fork a wallet, check its licence.

How do dApps talk to a Web3 browser?

Through an EIP-1193 provider: a JavaScript object with a request() method that dApps call for accounts, signatures and transactions. Announce it with EIP-6963 so dApps can find your wallet next to any others, instead of fighting over window.ethereum.

  • EIP-1193 (Final). The Ethereum Provider JavaScript API: one request() method, plus events such as accountsChanged, chainChanged, connect and disconnect. It also defines error codes, such as 4001 when the user rejects a request.
  • EIP-6963 (Final). Multi Injected Provider Discovery. The standard explains that wallets injecting into the same window.ethereum object race each other, and the last to load usually wins. With EIP-6963, each wallet announces itself with an event, and the dApp lets the user choose.
  • EIP-1102 (Stagnant). Defines eth_requestAccounts, the call that asks the user to connect. The Final EIP-1193 refers to the same method.
Announcing a built-in wallet (EIP-6963)
const detail = Object.freeze({
  // uuid: a UUIDv4 per page session; icon: a data URI, square, at least 96x96
  info: { uuid: crypto.randomUUID(), name: 'Your Wallet', icon: iconDataUri, rdns: 'com.example.wallet' },
  provider, // your EIP-1193 provider
})
const announce = () =>
  window.dispatchEvent(new CustomEvent('eip6963:announceProvider', { detail }))

window.addEventListener('eip6963:requestProvider', announce)
announce()

In a custom browser, inject this script into pages from browser code, not from a web-accessible file, and route every request() call to the browser process, where the wallet lives.

How should a Web3 browser handle dApp permissions and signing?

Give each site nothing until the user connects it, show every signature and transaction in plain words with the site’s real domain, and let users see and revoke connections. EIP-712 typed data lets you show readable fields instead of a raw hash.

  • Nothing by default. A site gets no accounts until the user approves eth_requestAccounts for that site.
  • Show the real site. Approval screens are browser UI, not web content, so a page cannot draw over them. A page can still draw a fake prompt inside the page, so anchor real prompts to the toolbar, where web content never appears. Show the domain from the browser’s own record of the page, not from anything the page sends.
  • Readable signatures. EIP-712 (Final) defines typed structured data signing, including a readable name for the signing domain. Show its fields, and treat requests to sign a raw hash as high risk.
  • Check the chain. Show which network a transaction is for. Transactions carry a chain ID under EIP-155 replay protection.
  • Easy to revoke. One page that lists connected sites and lets the user disconnect each.

Adding or switching networks has its own proposals, EIP-3085 and EIP-3326. Both are marked Stagnant, so check what the dApps you care about actually call before you rely on them.

How does a Web3 browser protect users from phishing and wallet drainers?

Check each site against a crypto phishing blocklist before the page loads, warn before unlimited token approvals and payments to new addresses, and update the list without waiting for a browser release.

  • Block known bad sites. MetaMask publishes eth-phishing-detect, a list of malicious domains targeting Web3 users. Check each navigation against a list like it in browser code, and ship list updates separately from browser releases. Check the list’s licence before you use it.
  • Warn on unlimited approvals. An ERC-20 approve call (EIP-20) lets a contract spend your tokens up to a set amount. When that amount is the maximum, say so in plain words before signing.
  • Warn on new addresses. Show the full address, and warn the first time a user sends to it.

Where should a Web3 browser store private keys?

Never in web-reachable storage. Encrypt keys with the wallet password and a key from the operating system’s protected storage, such as Keychain on macOS or DPAPI on Windows, unlock them only in the browser process, and never let page code or the renderer see them.

  • Use the operating system’s protected storage. On macOS, Keychain Services. On Windows, CryptProtectData, which Microsoft says typically lets only a user with the same logon credentials decrypt the data. On Linux, a Secret Service provider. This protects keys from other users and from a stolen disk, not from malware running as the same user, so also encrypt keys with the wallet password. On Linux, if no Secret Service provider is running, refuse to store keys rather than fall back to plain storage.
  • Keep keys in the browser process. Chromium’s Site Isolation docs plan for compromised renderer processes, so renderers should only ever receive signed results, never keys or seed phrases.
  • Lock the wallet. Ask for the password again after a timeout, and before showing a seed phrase.

Our enterprise browser guide covers the update path a security-sensitive browser needs, which matters just as much here.

What Chromium work does a Web3 browser need?

The wallet and its approval screens in browser code, a provider injected into pages, optional protocol handlers such as ipfs:// or your own scheme, and the rebrand. Then every feature has to be carried through each Chromium update, so keep each one a small, separate patch.

Which parts go where?

Where each part of a Web3 browser lives in Chromium
PartWhere it lives
Wallet, keys and approval screensBrowser process and browser UI
EIP-1193 provider and EIP-6963 announcementA script injected into pages by the browser
ipfs:// or a custom schemeA protocol handler in browser code
Name, icons, installer, updaterThe rebrand and your update server

What does a custom protocol involve?

On ORBITi, we built an orbit:// URL scheme so BlockCerts services have addresses inside the browser. A custom scheme only works if every service that hands out those links and the browser code that resolves them agree on one format, so both sides have to change together.

How do you keep it working after launch?

On GTX, we moved the fork from Chromium 98 to Chromium 114, sixteen major releases. Each patch had to be re-applied, fixed where it no longer fit and tested again, with IPFS, gtx:// and the wallet all still working at the end. Chrome now ships a new major version every two weeks; our fork maintenance playbook covers how to keep up.

How long does it take to build a Web3 browser?

A custom Chromium browser typically reaches its first release in 3–6 months, depending on the number of built-in features and platforms. A built-in wallet adds security review on top. After launch, every Chromium release is ongoing work.

The 3–6 month range comes from our custom browser timeline guide, and our Chromium browser cost guide explains what drives the price.

Final takeaway

A Web3 browser is a normal Chromium browser plus one very sensitive feature. Use the standards dApps already speak, keep keys away from web content, and plan the upkeep before the first release.

Frequently asked questions

Is Chrome a Web3 browser?

Not on its own. Chrome has no built-in crypto wallet, so users add a wallet extension to use dApps. A Web3 browser builds the wallet, or other Web3 features, into the browser itself, as Brave does with Brave Wallet.

Can a Web3 browser still run wallet extensions?

It can, if you leave extensions on. With EIP-6963, a page can see every wallet that announces itself, including your built-in one and any extensions, and let the user choose. Decide early whether extensions stay on, because it changes your security model.

Can a Web3 browser run on desktop?

Yes. Chromium builds for Windows, macOS and Linux, and a built-in wallet ships with each build. The GTX and Minego browsers we built both shipped for all three.

Can I build a Web3 browser for iPhone?

Yes, but not on Chromium in most countries. Apple’s App Store rules (guideline 2.5.6) require browsers to use WebKit outside the EU and Japan, so an iPhone Web3 browser is usually a WebKit app with its own wallet code.

Building a Web3 browser?

Tell us what the wallet and the browser have to do. Our Crypto and Web3 work includes built-in wallets, custom protocols and IPFS. We will map the Chromium work, the security review and the upkeep before you commit. See our Chromium browser development service.

Send a project brief