detect-provider
detect-provider copied to clipboard
A tiny utility for detecting the MetaMask Ethereum Provider, or any Provider compliant with EIP-1193.
We use Yarn v3 for our other libraries, so we're following suit here.
In order to align with our other libraries, we should: - Add `typedoc` as a dependency (use the same version as in the module template) - Add a `build:docs` package...
In order to align with our other libraries, we should ensure that the `.github` directory reflects the module template. Note that before this ticket is completed, we will need to:...
In order to align with our other libraries, we should: - Remove `16.x` from the CI matrix - Update `node.engines` in `package.json` to `^18.18 || >=20`
In order to achieve standardization with our other libraries, we should: - Remove `browserify` as a dependency - Add `tsup` as a dependency (copy version from module template) - Remove...
To achieve consistency with our other libraries, we should - Convert the tests in this repo from Tape to Jest (also using TypeScript instead of JavaScript) - Add `@types/jest`, `jest`,...
In order to achieve standardization with other libraries, we should: - Update the set of ESLint config packages in dependencies to reflect the module template along with the ESLint config...
I am getting this using the request similar to the preview example: ``` import detectEthereumProvider from "@metamask/detect-provider"; const provider = await detectEthereumProvider({ mustBeMetaMask: true, }); if (provider) { const accounts...
It appears that [EIP-6963](https://eips.ethereum.org/EIPS/eip-6963) is headed for finalization. Once this EIP has been implemented in all MetaMask clients, this package should be updated as well. In particular, we should define...
## Summary When Coinbase Wallet and MetaMask extensions are both installed, the Coinbase Wallet Extension will modify the ethereum object of the window. According to their [documentation](https://docs.cloud.coinbase.com/wallet-sdk/docs/injected-provider-guidance), the advised solution...