Skip to main content

Function: findMetaMaskWallet()

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / providers / findMetaMaskWallet

Function: findMetaMaskWallet()

findMetaMaskWallet(result): DetectedWallet | undefined

Defined in: packages/gala-core-sdk/dist/providers.d.ts:532

MetaMask among detected wallets, in this order: an announcement with rdns io.metamask or io.metamask.flask; else any listed provider that says isMetaMask and is not isTrust (an announcement, window.ethereum, or its providers[] entry; Trust Wallet sets isMetaMask on itself, and is never returned here); else undefined.

It is a lookup, not a relabelling: detectWallets still lists a wallet that announces itself as Rabby or Brave (which also say isMetaMask) under its own rdns.

Parameters​

result​

WalletDetectionResult

Returns​

DetectedWallet | undefined