Skip to main content

MetaMask SDK documentation

Seamlessly connect to the MetaMask extension and mobile app.

Supported platforms

With MetaMask SDK, you can connect your dapp to MetaMask in the following ways:

  • Desktop web dapps - Automatically connect to the MetaMask extension, or connect to the MetaMask mobile app using a QR code.

  • Mobile dapps - The SDK generates a deeplink that takes users directly to the MetaMask mobile app.

The following table expands on the SDK's connection methods:

Dapp locationUser wallet locationConnection methodMetaMask SDKOther SDKs
Desktop webWallet browser extensionAutomatic connection via browser extensionSupportedSupported
Desktop webWallet mobile appQR code scan with wallet mobile appSupportedLimited
Mobile browserWallet mobile appDeeplink directly to wallet mobile appSupportedLimited
Mobile dappWallet mobile appDeeplink directly to wallet mobile appSupportedLimited

tip

For a better user experience on mobile, it's important to use reliable RPC providers instead of public nodes. We recommend using services like MetaMask Developer to ensure better reliability and performance.