@wharfkit/wallet-plugin-metamask - v4.0.2
    Preparing search index...

    Function hasSnapsSupport

    • Check if the current provider supports snaps by calling wallet_getSnaps.

      Parameters

      • provider: MetaMaskInpageProvider = window.ethereum

        The provider to use to check for snaps support. Defaults to window.ethereum.

      Returns Promise<boolean>

      True if the provider supports snaps, false otherwise.