⚠️ DEPRECATEDThis repository is deprecated and no longer actively maintained. MetaMask SDK has been superseded by MetaMask Connect, a ground-up rewrite with a streamlined API, direct wallet communication (no relay server), and multichain support out of the box.
Migrate to:
@metamask/connect-evm— drop-in EVM dapp integration (browser, Node.js, React Native)@metamask/connect-multichain— multichain dapp integration (EVM + non-EVM)Migration guide & docs: https://docs.metamask.io/metamask-connect
MetaMask SDK enables developers to seamlessly connect their dapps to the MetaMask extension and mobile app.
You can use the SDK via the following platforms and libraries:
- Wagmi (recommended)
- JavaScript
- Dynamic SDK
- Web3Auth SDK
- React Native
- Web3-Onboard
See the MetaMask SDK documentation for more information.
- Session persistence
- Multi MetaMask provider (let user choose between browser extension and mobile wallet)
- Batch RPC calls (send multiple requests to your wallet at once)
- Read-only RPC calls and Infura integration
- Wagmi hook integration (alpha)
- i18n
- Full modal UI customization
- Smart contract library (coming soon)
Install the SDK:
yarn add @metamask/sdkor
npm i @metamask/sdkSee the full list of JavaScript SDK options.
To contribute to MetaMask SDK, see the contribution guidelines.
Fill out this form for a complimentary design optimization workshop.