detect-provider
detect-provider copied to clipboard
A tiny utility for detecting the MetaMask Ethereum Provider, or any Provider compliant with EIP-1193.
I'm building a hybrid app using Ionic. When I serve the app in the browser (Chrome), it works fine asking for the Metamask authentication (opens Metamask as expected). However when...
This is the release candidate for version 2.0.0.
This changes all refs to v12 to point to v14 as v12 is no longer LTS
``` const detectProv = async () => { const provider = await detectEthereumProvider() let web3 = new Web3(provider) let chainID = await web3.eth.getChainId() window.alert(chainID) if (window.ethereum) { handleEthereum(); } else...
Bumps [@metamask/eslint-config](https://github.com/MetaMask/eslint-config) from 4.1.0 to 5.0.0. Release notes Sourced from @metamask/eslint-config's releases. 5.0.0 Changed BREAKING: Enable semi in base config (#101) BREAKING: Disallow spaces before parentheses of named functions (#101)...
TIL: Our current mobile script injection technique violates some CSPs! I just got off a call with a team that currently can't use MetaMask because their page's CSP refuses to...
A privacy respecting wallet will not inject into the page until *after* the user tells it to so websites cannot fingerprint the user. Unfortunately, this script as currently written doesn't...
detectEthereumProvider get unknown return , it's error in the typescript
## Steps to reproduce 1. Install & setup MetaMask 2. Install & setup another injected wallet (e.g. CoinbaseWallet) 3. `const provider = await detectEthereumProvider({ mustBeMetaMask: true })` 4. `await provider.request({...
``` Module not found: Error: Can't resolve '@metamask/detect-provider' in '/Users/steve/sites/vue3-web3modal/src/Web3Modal/components/web3Modal' ``` Even After installation. Folder in node_modules is empty