Skip to main content

About MetaMask SDK

MetaMask SDK is a library that provides a reliable, secure, and seamless connection from your dapp to the MetaMask browser extension and MetaMask Mobile. You can install the SDK in existing dapps, and call any provider API methods from your dapp.

Get started

MetaMask SDK is the recommended method of integrating your dapp with MetaMask. You can get started by setting up the SDK.

Benefits of MetaMask SDK

Before MetaMask SDK, there were three ways to connect a dapp to a user's MetaMask wallet:

  1. Connect from a web dapp in a desktop browser to the MetaMask browser extension
  2. Connect from a web dapp in MetaMask Mobile's in-app browser to MetaMask Mobile
  3. Use third-party libraries to connect a mobile dapp to MetaMask Mobile

With MetaMask SDK, there are more ways to connect:

  1. Connect from a web dapp in a desktop browser to the MetaMask browser extension or to MetaMask Mobile
  2. Connect from a web dapp in a mobile browser to MetaMask Mobile
  3. Connect from desktop, mobile, and gaming dapps to MetaMask Mobile

MetaMask SDK enables your dapp to provide a seamless user experience for MetaMask users, from multiple dapp platforms, without relying on third-party libraries.

User experience

The following are examples of how a user experiences a dapp with the SDK installed, on various platforms.

When a user accesses your web dapp on a desktop browser that doesn't have the MetaMask extension installed, a popup appears that prompts the user to either install the MetaMask extension or connect to MetaMask Mobile using a QR code.

Get started

You can read more about the connection flow between the SDK and MetaMask.