Skip to main content

Integrate your dapp with the MetaMask wallet

Integrate your dapp with MetaMask to interact with your dapp users' Ethereum accounts. You can enable users to connect to their MetaMask wallets from the following dapp platforms:

  • Web dapps on desktop and mobile browsers
  • Desktop and mobile dapps
  • Games built on platforms such as Unity
Integrate using MetaMask SDK

Set up MetaMask SDK to start integrating your dapp with MetaMask. MetaMask SDK is a library that provides a reliable, secure, and seamless connection from your dapp to the MetaMask browser extension and MetaMask Mobile.

With the SDK installed, your dapp can use the MetaMask Ethereum provider API to request users' Ethereum accounts, read data from blockchains the user is connected to, suggest that the user sign messages and transactions, and more.

note

New to dapp development?

If you're new to dapp development or want to refresh your knowledge, we recommend starting with the following guides:

For an end-to-end example, you can also follow the Create a simple React dapp tutorial.

Want to use advanced features?

If you're a developer looking to optimize your dapp for MetaMask, you can connect to MetaMask from an existing dapp and implement MetaMask-specific functions, including:

Questions?

If you have questions about integrating your dapp with MetaMask, you can interact with the MetaMask team and community on the MetaMask channels on Consensys Discord.