Dapps work by communicating with a special object called
window.ethereum. Brave Wallet and extensions like MetaMask use this object to help connect you to dApps. However, only one wallet can provide
window.ethereum to websites. In Brave, we expose a setting in brave://settings/web3 to be able to change which wallet provides
window.ethereum. Here's a description of each setting:
Extensions (Brave Wallet fallback) - This is the default. Brave Wallet will expose
window.ethereumbut allow other extensions such as MetaMask to overwrite it.
Brave Wallet - Exposes
window.ethereumand prevents sites and extensions from changing
- Crypto Wallets (Deprecated) - Gives access to the old deprecated wallet. This option is not compatible with other extensions such as MetaMask.
Extensions (no fallback) -
window.ethereumwill not be provided by Brave Wallet at all. If you have extensions such as MetaMask, it is free to use
After changing the default wallet, it is best to restart your browser. Why?
- If you had Crypto Wallets loaded, it won't be unloaded until the next restart. When Crypto Wallets is loaded it will not work properly with other extensions trying to access
- Existing already opened tabs will not change to use the new wallet setting, you need a new tab or a browser restart.