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
36
votes
3 answers

TestRPC/Ganache: the tx doesn't have the correct nonce

I have been experimenting with truffle recently and followed the following tutorial: http://truffleframework.com/tutorials/pet-shop Whenever I try to setup a transaction I keep getting the same error below Error: Error: the tx doesn't have the…
user1664
  • 481
  • 1
  • 7
  • 6
28
votes
4 answers

How to connect ethers.js with metamask?

I am using the ethers.js documentation: https://docs.ethers.io/ethers.js/html/cookbook-providers.html . I am getting the error when setting up the provider -: Uncaught ReferenceError: web3 is not defined I want to connect my Decentralized…
Aashutosh Singh
  • 389
  • 1
  • 3
  • 4
21
votes
6 answers

How to Logout of MetaMask account Using web3.js

I am using MetaMask for sending transactions to contract in my DApp. I need help in How to Disconnect MetaMask account from my DApp when the user clicks on logout button. Front-end: ReactJS Back-end: Web3js, Solidity (Ethereum)
Umair Janjua
  • 324
  • 1
  • 2
  • 11
20
votes
2 answers

How to trigger change blockchain network request on MetaMask

I am using web3 for my first dapp test and I'd like to make so MetaMask will prompt the user to change the network to Binance (BSC) network if it is not selected already, just like here: How to trigger such a request?
Andrea D_
  • 2,028
  • 3
  • 15
  • 38
16
votes
2 answers

Metamask automation with Selenium webdriver

I'm trying to get to a Dapp that needs Metamask extension to access it. I added it through chrome extension. I know how to add the extension to the chrome instance in selenium but I don't know how to add a password etc..Could anyone download…
gabe
  • 163
  • 1
  • 1
  • 7
14
votes
6 answers

How to check if Metamask is connected after page refreshing

My dApp have to connect to MetaMask. There are two rude solutions in the docs: make user to click connect btn every time manually or just pop up connection confirmation after page load. I want to implement the only convenient solution: first time…
14
votes
1 answer

How to avoid "This gas fee has been suggested by" message in MetaMask using web3js

I'm currently in the process of upgrading an Ethereum dApp (using React JS) to conform to the new EIP-1559 standard (A.K.A. the London hard fork). The app uses web3.js (v1.5.2) to initiate transactions which take on a form something like const…
Joel Collins
  • 429
  • 3
  • 10
14
votes
3 answers

Is there any way to initiate a disconnect request to the Metamask wallet?

I'm building a decentralized application where users can connect their cryptocurrency wallet (Metamask) to my website. They can initiate a connection request by clicking a button. On success, the wallet is connected and my website can interact with…
vladwho
  • 141
  • 1
  • 4
12
votes
6 answers

Error HH604: Error running JSON-RPC server: error:0308010C:digital envelope routines::unsupported

I am setting up hardhat in Linux. I have set up the react app first using these commands. npx create-react-app react-dapp cd react-dapp Then I have installed some hardhat dependencies using this command. npm install ethers hardhat…
enstazao
  • 121
  • 1
  • 8
12
votes
2 answers

MetaMask - RPC Error: Error: MetaMask Tx Signature: User denied transaction signature

In javascript I run contract's method contract[methodName](...params, { from: myAccount }, (err, response) => { console.log('get transaction', methodName, err, response); if (err) return reject(err); resolve(response); }); and then…
11
votes
1 answer

Verify user is owner of an NFT via MetaMask connection? Make sure connected users public eth address is the same as of the NFT?

I need to verify on my own domain/server the user which has connected his MetaMask wallet is the owner of a specific NFT in order to allow him special functions? Basically, I want to give the user access to an area that only the owner of this NFS…
Oliver
  • 647
  • 4
  • 20
11
votes
4 answers

How do I add ether to my localhost Metamask wallet with Hardhat?

I've connected metamask to a node created with hardhat. I can connect to this node on http://localhost:8545 network in metamask after setting the chain id to match the hardhat network chain id (31337) How can I send ether to the accounts/addresses…
goonerify
  • 1,668
  • 25
  • 27
10
votes
6 answers

Metamask not connecting to localhost 8545

I was trying to follow a tutorial from devto.io and to send transactions to the smart contract, I would need to connect my MetaMask wallet using one of the accounts created when I ran npx hardhat node command. To do so, I opened MetaMask and updated…
fairdev610
  • 148
  • 1
  • 1
  • 10
10
votes
1 answer

where is the privatekey and transation store in chrome file using metamask extension

i want to know where is the privatekey and transation store in google chrome file using metamask extension. can you help me? it is in /Users/jackson/Library/Application Support/Google/Chrome/Default/Extensions???
少年追梦
  • 121
  • 1
  • 1
  • 6
9
votes
6 answers

Invalid address or ENS name

I can't understand what the problem is. When I am run the app I am getting this error: Unhandled Runtime Error Error: invalid address or ENS name (argument="name", value=5.050201689117535e+47, code=INVALID_ARGUMENT, version=contracts/5.5.0) My code…
Ishtiaq Mahmood
  • 154
  • 1
  • 2
  • 8
1
2 3
57 58