Skip to main content

Ethereum provider API

MetaMask injects a global JavaScript API into websites visited by its users using the window.ethereum provider object. This API is specified by EIP-1193, and it allows dapps to request users' Ethereum accounts, read data from blockchains the user is connected to, suggest that the user sign messages and transactions, and more.

The MetaMask Ethereum provider API contains the following:

View the provider API reference for all the provider properties, methods, and events.

Use MetaMask SDK with the provider API

You can call the provider API from a dapp with or without MetaMask SDK installed, but we recommend using the SDK to enable users to easily connect to the MetaMask browser extension and MetaMask Mobile. The SDK supports multiple dapp platforms including mobile and gaming dapps.

Get started by setting up the SDK.