Skip to main content

Use MetaMask SDK

MetaMask SDK provides a reliable, secure, and seamless connection from your dapp to a MetaMask wallet client. It supports the following dapp platforms:

note

MetaMask SDK uses the Ethereum provider that developers are already used to, so existing dapps work out of the box with the SDK.

How it works

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.

SDK desktop browser example

You can try the hosted test dapp with the SDK installed. You can also download the React project example. Install the example using yarn and run it using yarn start.