Wallets
Injected Wallets
This module lets Web3 Onboard automatically detect Browser Injected Wallets such as Metamask or Coinbase Wallet. We recommend you install this module to get the most out of your Web3 Onboard implementation. This module supports EIP-1193, recognizes many injected wallets natively, and supports all EIP-6963 compatible wallets.
Note: Make sure to install the core module before installing other modules to Web3 Onboard.
Support all EIP-6963 Wallets out of the box
Web3 Onboard supports all EIP-6963 compatible wallets out of the box and will automatically recognizes any wallet which has integrated 6963 support.
Support all EIP-6963 Wallets out of the box
Web3-Onboard supports all EIP-6963 compatible wallets out of the box and will automatically recognizes any wallet which has integrated 6963 support.
Support all EIP-6963 Wallets out of the box
Web3-Onboard supports all EIP-6963 compatible wallets out of the box and will automatically recognizes any wallet which has integrated 6963 support.
Install
- Yarn
- Npm
Quickstart
To allow all injected wallets that are supported, don't pass in any options:
Filtering Wallets
Injected wallets that you do not want to support can be filtered based on the Platform
the user is on. For example you may not want to support the 'Detected Wallet' that is detected automatically and filter it via all platforms by passing false
:
Or you may want to only filter the 'Detected Wallet' on a select few platforms:
The following platforms can be used to filter wallets:
Adding Custom Injected Wallets
If there is an injected wallet that you would like to support in your dapp, but is not yet included in this repo, you can add a custom wallet module in the custom
field:
EIP-6963
This module supports any injected wallet that has implemented support forThis can be disabled by passing in disable6963Support
as true within the injected module init object.
Display Unavailable Wallets
You may want to display injected wallets that are not currently available to the user and you can use the displayUnavailable
option to do that:
This can be set to an array to specify which unavailable injected wallets to show, or set to true to display all unavailable injected wallets regardless of whether it has been detected in the window.
Then the issue of the order of wallets displayed becomes apparent when you have 21 injected wallets at the top of the wallets list. To solve this, all injected wallets are sorted alphabetically by default and there is an additional sort
parameter which receives the final list of wallets and then returns the list to be rendered. This allows, for example, setting MetaMask and Coinbase first and then the rest are sorted alphabetically:
You may want to display all unavailable injected wallets, but filter out specific wallets based on their availability. For example, I may want to display all unavailable wallets except when Binance and Bitski wallet is unavailable, then don't show them, but if they are available, then do show them. To do this, the filters value has been extended to have a new value: 'unavailable'
, as in; remove this wallet if it is unavailable, even though displayUnavailable
wallets is set:
If a wallet is selected, but is not available, the default error message is: Oops ${wallet.label} is unavailable! Please <a href="${wallet.externalUrl}" target="_blank">install</a>
if a download link is available for that wallet. If there isn't a download link for that wallet the default is: Please install or enable ${walletName} to continue
. You may want to customize that message, so there is the walletUnavailableMessage
parameter which is a function that takes the wallet object that is unavailable and returns a string which is the message to display:
Injected Wallets Supported Natively
- Metamask - Desktop & Mobile
- Binance - Desktop
- Coinbase - Desktop & Mobile
- Phantom - Desktop & Mobile
- Trust - Desktop & Mobile
- SafePal - Desktop & Mobile
- Zerion - Desktop & Mobile
- OKX Wallet - Desktop & Mobile
- Taho (Previously named Tally Ho wallet) - Desktop
- Opera - Desktop & Mobile
- Status - Mobile
- Alphawallet - Mobile
- Atoken - Mobile
- Bitpie - Mobile
- Blockwallet - Desktop
- Brave - Desktop & Mobile
- D'Cent - Mobile
- Frame - Desktop
- Huobiwallet - Mobile
- Hyperpay - Mobile
- IMtoken - Mobile
- Liquality - Desktop
- Meetone - Mobile
- Mykey - Mobile
- Ownbit - Mobile
- xDefi - Desktop & Mobile
- Tokenpocket - Desktop & Mobile
- TP - Mobile
- 1inch - Mobile
- Tokenary - Mobile
- Rabby - Desktop & Mobile
- MathWallet - Desktop & Mobile
- Bitkeep - Desktop & Mobile
- BitGet Wallet - Desktop & Mobile
- Sequence - Desktop & Mobile
- Core - Desktop
- Bitski - Desktop & Mobile
- Enkrypt - Desktop & Mobile
- Zeal - Desktop
- Exodus - Desktop & Mobile
- Frontier - Desktop & Mobile
- Rainbow - Desktop & Mobile
- DeFiWallet - Desktop & Mobile
- ApexWallet - Desktop
- BifrostWallet - Desktop & Mobile
- Safeheron - Desktop
- Talisman - Desktop
- OneKey - Desktop & Mobile
- Fordefi - Desktop
- Ronin Wallet - Desktop & Mobile
- Coin98 Wallet - Desktop & Mobile
- SubWallet - Desktop & Mobile
- Kayros - Desktop
- Lif3Wallet - Mobile
- StableWallet - Mobile
- Echooo - Desktop & Mobile
Build Environments
For build env configurations and setups please see the Build Env section here