---
eip: 5749
label: EIP-5749
title: "The 'window.evmproviders' object"
status: Final
type: Standards Track
category: Interface
created: 2022-10-04
requires: 1193
official: https://eips.ethereum.org/EIPS/eip-5749
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-5749.md
canonical: https://eips.huatuo.xyz/eip-5749/
lang: en
tldr: Proposed a window.evmproviders map where every browser wallet registers its EIP-1193 provider with a name and icon, so dapps can list all installed wallets instead of fighting over window.ethereum.
tags: [wallet, provider, browser, javascript, interface]
---

# EIP-5749: The 'window.evmproviders' object

> Add 'window.evmproviders' and suggest the eventual removal of 'window.ethereum

**TL;DR:** Proposed a window.evmproviders map where every browser wallet registers its EIP-1193 provider with a name and icon, so dapps can list all installed wallets instead of fighting over window.ethereum.

## What problem does it solve?

Browser wallets traditionally inject their provider into a single global, `window.ethereum`. When a user has two or more wallet extensions installed, they race to set that variable and the last one to load usually wins. Users get unpredictable behaviour, dapps cannot offer a real choice, and new wallets struggle to get a foothold because users are effectively limited to one.

ERC-5749 proposes a shared object, `window.evmproviders`, where every wallet adds itself under its own key. A dapp or onboarding library can then show a picker with all installed wallets.

## How it works

- `window.evmproviders` is a plain object: keys are wallet identifiers (recommended to be the extension name in snake_case, only lowercase letters, digits and underscores), values are providers.
- Each value is a normal [EIP-1193](/eip-1193/) provider extended with an `info` field:

| Field | Meaning |
| --- | --- |
| `uuid` | UUIDv4 unique to the wallet, stable across versions |
| `name` | Display name of the wallet |
| `icon` | Base64-encoded SVG data URI |
| `description` | Short description of the wallet |

- A wallet injects itself with `window.evmproviders = window.evmproviders || {}` and then sets its own key.
- A dapp reads `Object.values(window.evmproviders)` to get every available wallet and renders a selection menu from `info`.
- `window.ethereum` is not removed by this proposal; the spec only suggests it could eventually be phased out.

## Sample code

Wallet side (injected script) and dapp side:

```ts
// --- Wallet extension ---
const provider = createMyEip1193Provider();          // your existing provider
(provider as any).info = {
  uuid: "6b0f9c4e-2f1a-4c1b-9a9e-0c3f5c2d7e11",       // fixed per wallet
  name: "Example Wallet",
  icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4=",
  description: "An example browser wallet",
};
window.evmproviders = window.evmproviders || {};
window.evmproviders["example_wallet"] = provider;

// --- Dapp ---
const wallets = Object.values(window.evmproviders ?? {});
for (const w of wallets) {
  const img = document.createElement("img"); // render icons via <img>, never inline SVG
  img.src = w.info.icon;
  img.alt = w.info.name;
  img.onclick = () => w.request({ method: "eth_requestAccounts" });
  document.body.append(img);
}
```

## Things to know

- Status: **Final**, but the ecosystem converged on [EIP-6963](/eip-6963/) (Multi Injected Provider Discovery) for the same problem. EIP-6963 uses window events instead of a shared mutable object, which avoids injection-order races and one extension overwriting another's entry. For new work, implement EIP-6963.
- SVG icons can contain JavaScript. Always render them through an `<img>` tag, never by inserting the SVG markup into the page.
- A shared global object can be tampered with by any script or extension on the page, so treat `info` as self-reported, not verified.
- Dapps that only read `window.ethereum` keep working; nothing in this proposal breaks them.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-5749
