Exploring the intersection between TypeScript, Ethereum, and other exciting technologies.

Wallet Detector

1. Detection using web3_clientVersion

await window.ethereum?.request({
  method: "web3_clientVersion",
})

Result:

2. Detection using window.ethereum parameters

This method looks at common flags on the window.ethereum object

ethereum.isAvalanche
ethereum.isBitKeep
ethereum.isBraveWallet
ethereum.isCoinbaseWallet
ethereum.isExodus
ethereum.isFrame
ethereum.isKuCoinWallet
ethereum.isMathWallet
ethereum.isMetaMask
ethereum.isOneInchAndroidWallet
ethereum.isOneInchIOSWallet
ethereum.isOpera
ethereum.isPortal
ethereum.isTally
ethereum.isTokenPocket
ethereum.isTokenary
ethereum.isTrust
ethereum.isTrustWallet

Tools