Adjusting the Default Wallet Takip et
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 changingwindow.ethereum. - 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 usewindow.ethereum.
After changing the default wallet, it is best to refresh your browser or dApp page. Why?
- If you had Brave Wallet loaded, it won't be unloaded until the next refresh. When Brave Wallet is loaded it will not work properly with other extensions trying to access
window.ethereum. - An existing already opened tab will not change to use the new wallet setting, you will need a new tab or a page refresh.