Questions tagged [metamask]

A browser extension for browsers (i.e. Chrome, Brave) for interacting with distributed applications which require, by design, specific dapp browsers such as Ethereum Mist

Metamask is a cryptocurrency wallet which can be used on the Chrome, Firefox and Brave browsers. It’s also a browser extension. This means that it works like a bridge between normal browsers and the Ethereum blockchain.

The Ethereum blockchain is a network where users can build their own apps (which are called dApps) and cryptocurrencies. Ethereum also allows its users to write transaction guidelines called smart contracts. MetaMask can be used to store keys for Ethereum cryptocurrencies only.

So, the MetaMask wallet can be used for storing keys for Ether and ERC20 tokens on three different web browsers. It also allows users to browse the Ethereum blockchain from a standard browser. MetaMask requires no login and does not store your private keys in any server, instead they are stored on Chrome and password protected.

MetaMask is a dedicated way to allows you to run Ethereum Apps right in your browser without running a full Ethereum node. This wallet simplify the ethereum transactions. In Firefox browser you can download its extension and soon they will improve one for Google Chrome.

One of the core features of MetaMask is a secure identity vault, which lets you manage your identities on different sites and sign blockchain transactions.

The overall goal of MetaMask is simple:

“Our mission is to make Ethereum as easy to use for as many people as possible.”

Metamask official website's introduction video

862 questions
6
votes
2 answers

MetaMask conflicting with Coinbase wallet

I am trying to connect to the metamask from my dapp. following the docs: https://docs.metamask.io/guide/getting-started.html#connecting-to-metamask but when I call eth_requestAccounts method it's opening coinbase popup as well. how to work around…
Xaarth
  • 1,021
  • 3
  • 12
  • 34
6
votes
3 answers

How to keep MetaMask connection to the UI persistent with Web3-react?

I am working with web3-react and I cannot figure out how to keep the connection to the MetaMask wallet persistent upon browser refreshes. This is the code: // define the injectedConnectors const injectedConnector = new InjectedConnector({ …
Andrea D_
  • 2,028
  • 3
  • 15
  • 38
6
votes
1 answer

Disconnect wallet from site using web3

I am using web3 to connect to metamask using below method await window.ethereum.request({ method: 'eth_requestAccounts' }); var address = await window.ethereum.request({ method: 'eth_accounts' }); but when i am refreshing screen it still shows as…
Rohit Maurya
  • 730
  • 1
  • 9
  • 22
6
votes
4 answers

How to connect Metamask to Angular App using Web3.js?

I have just started exploring Blockchain technologies and made my first smart contract the other day. To continue, I have tried to make a frontend for the smart contract but I am facing difficulty connecting my Angular App to Metamask using…
nlanson
  • 357
  • 1
  • 3
  • 14
6
votes
3 answers

MetaMask - RPC Error: Permissions request already pending, in Angular 10

I have integrated the MetaMask with Angular and while opening up the MetaMask extension from the code I am getting this error. Following is my code for opening up the extension. I am calling this function on a click to open MetaMask where its giving…
Ahmer Khan
  • 747
  • 1
  • 10
  • 31
6
votes
2 answers

Get all Ethereum accounts from Metamask

I want to get all the accounts that a user has added in Metamask. I tried all web3.js methods to get accounts, but I always get just one account which is always the currently selected one. According to web3.js documentation, web3.eth.getAccounts()…
Vishal
  • 345
  • 1
  • 3
  • 10
5
votes
0 answers

MetaMask: How to sign multiple transactions with only one signature popup

I have to send multiple transactions from my front-end, usually for every transaction the user is asked to sign on MetaMask. Is there a way to sign all of them at once in MetaMask, instead of the popup happening for all of the transactions?
5
votes
3 answers

RPC Error - valid string HTTPs rpc in Metamask

In my project, I tried to connect with metamask on Ganache. But I got the error like the following. inpage.js:1 MetaMask - RPC Error: Expected an array with at least one valid string HTTPS url 'rpcUrls', Received: http://127.0.0.1:7545/ code:…
tomato
  • 153
  • 2
  • 10
5
votes
2 answers

"@metamask/detect-provider: Unable to detect window.ethereum" error even though Metamask is installed and running

I am trying to run a basic program that detects if the user has window.ethereum installed. When I run my program I get "@metamask/detect-provider: Unable to detect window.ethereum", even though I have Metamask installed and running in my browser.…
Andrew Gusty
  • 101
  • 1
  • 4
5
votes
3 answers

Accessing a private key in a MetaMask wallet

I have a simple Dapp and I want to sign a transaction but I don't have the private key as a string. The user is using a MetaMask wallet. After they grant web3 access to their account, how can I access the private key to sign a transaction? const…
Ryan Russell
  • 739
  • 1
  • 8
  • 21
5
votes
1 answer

WalletConnect error while integration in ReactJS - Uncaught (in promise) TypeError: this.send is not a function

I'm integrating WalletConnect in React DApp but am getting this.send is not a function I've identified that the issue is with WalletConnectProvider but i've followed the same steps that are mentioned in their documentation. Please review my code…
junaid2012
  • 121
  • 2
  • 4
5
votes
1 answer

Call contract methods with web3 from newly created account

I need to call methods from my contract in Ethereum without using MetaMask. I use Infura API and try to call my methods from account, recently created with web3.eth.create() method. This method returns object like this: { address:…
Alex Johnson
  • 173
  • 3
  • 15
5
votes
1 answer

How can I install the MetaMask extension in Electron?

I've successfully installed the extension from https://github.com/aragon/metamask-plugin When the Electron app is started I can see the MetaMask plugin loaded, but can't do much with it. There are some errors: Uncaught TypeError:…
noodles_ftw
  • 1,293
  • 1
  • 9
  • 17
4
votes
1 answer

How to establish a web3 provider connection from a Vue.js DApp?

I am intended to interact with Rootstock blockchain from a vue.js DApp to track wallet balance and send RBTC. ​ I want to establish a Metamask connection and use ethers.js web3 provider to interact with the Rootstock network. ​ I created a Pinia…
Irene Patrikios
  • 249
  • 1
  • 5
4
votes
0 answers

ethers: processing response error code -32000, SERVER_ERROR on BSC testnet while trying to approve on MetaMask

I am trying to get MetaMask to popup to approve a dapp to use my erc20 tokens like: const provider = new ethers.providers.JsonRpcProvider(url); // url === bsc testnet rpc const erco20Contract = new ethers.Contract( erco20ContractAddress, …
sdfsdf
  • 5,052
  • 9
  • 42
  • 75
1 2
3
57 58