Recommended Reading

We recommend that all web3 site developers read the Basic Usage section.

Recent Breaking Provider Changes

If you are an Ethereum application developer and are looking for information about our January 2021 provider API changes, please see our Migration Guide for more details.

MetaMask injects a global API into websites visited by its users at window.ethereum. This API allows websites to request users' Ethereum accounts, read data from blockchains the user is connected to, and suggest that the user sign messages and transactions. The presence of the provider object indicates an Ethereum user. We recommend using @metamask/detect-provider to detect our provider, on any platform or browser.

The Ethereum JavaScript provider API is specified by EIP-1193.

Loading...
Loading...
Loading...
Loading...

The Ethereum JavaScript provider API is specified by EIP-1193.

Loading...