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
4
votes
1 answer

Metamask (web3) connect wallet and send transaction - how to change blockchain to Bianance smart chain (BEP-20) network instead of Ethereum?

there is simple source code in HTML and JS about button to connecting wallet as a web3 and loading ETH transaction in Metamask. javascript const ethereumButton = document.querySelector('.enableEthereumButton'); const sendEthButton =…
Davidcz
  • 375
  • 1
  • 2
  • 11
4
votes
1 answer

window.ethereum.providers undefined - allow user to select MetaMask OR Coinbase Wallet as web3 provider

How do we allow users to choose which browser wallet / provider they use when interacting with web3 websites? This is for basic HTML / WordPress websites not using TypeScript / React, etc. According to Coinbase Docs, the Coinbase Wallet SDK is not…
Dave
  • 51
  • 1
  • 2
4
votes
3 answers

Ethers.js returns the same wallet address even if I switch accounts

I'm using Ethers.js to allow users to connect their Metamask wallets to my app. Here's the code that I have: import { ethers } from "ethers" async function connect() { const provider = new ethers.providers.Web3Provider(window.ethereum, "any") …
Yulian
  • 6,262
  • 10
  • 65
  • 92
4
votes
1 answer

Ether.js works fine on desktop but not with metamask app (android/ios)

I noticed that my little vanilla JS script to get people to connect to my "dapp" works fine on desktop with metamask, but doesn't work with metamask mobile app. It gives me an error as if the "Provider" was not set. const provider = new…
Tryneed
  • 65
  • 3
4
votes
2 answers

MetaMask Web3: is there any way to make sure website user is connected to a particular network?

I am developing an application that uses the MATIC token on the MATIC network. I want to make sure the user is connected to this network with MetaMask, is this possible? Right now in my client.js attached to my html page, I just have the…
JDS
  • 16,388
  • 47
  • 161
  • 224
4
votes
2 answers

How to send some custom tokens with MetaMask API?

It seems the example code on the MetaMask documentation page, sends ETH only. How should I customize the sample code to send some custom tokens? const transactionParameters = { nonce: '0x00', // ignored by MetaMask gasPrice: '0x09184e72a000', //…
Alex
  • 1,623
  • 1
  • 24
  • 48
4
votes
3 answers

Internal JSON-RPC error with MetaMask on Polygon Blockchain. `ERC721: transfer caller is not owner nor approved.`

I am making an NFT marketplace. When I deployed my contract on the Mumbai-testnet. The createToken function might work cause it brings up the Metamask for the Gas Fee but after that, the Error occurs something regarding the ONWNERSHIP. (Error image…
Megabyte
  • 139
  • 1
  • 2
  • 9
4
votes
1 answer

How to cancel a payment that awaits confirmation in Metamask using web3?

I'm working on a crypto payment system using ethers Web3Provider web3.eth.sendTransaction(transactionObject) After the user calls this method, this dialog is shown: In the app the user is able to close the payment dialog leaving this pending. Is…
Edaurd B
  • 173
  • 1
  • 9
4
votes
1 answer

Deeplinking to connect to Mobile Wallets using Wallet Connect

I am trying to create a mobile application that can connect to mobile wallets (Metamask and TrustWallet) via the WalletConnect Protocol. For reference, what I am trying to achieve would be something like what opensea and rarible mobile apps are…
0x797979
  • 41
  • 1
  • 1
  • 2
4
votes
3 answers

Metamask is not connecting my blockchain network

I'm building a todoList Web-App using blockchain. I'm stuck when I tried to connect the blockchain server to metamask. When I try to add new network as mentioned in my Ganache(HTTP://127.0.0.1:7545) then I miss chainID and When I fill the chainID…
Uttam
  • 718
  • 6
  • 19
4
votes
2 answers

Ethereum.on How to get error if chain is not added into metamask yet

With this method app is listening for chain change: ethereum.on('chainChanged', (chainId) => { }) but if the chain to which the user is going is not added yet into metamask it throws : inpage.js:1 MetaMask - RPC Error: Unrecognized chain ID…
4
votes
0 answers

How to send custom token with metamask API in web

const transactionParameters = { nonce: '0x00', // ignored by MetaMask gasPrice: '0x09184e72a000', // customizable by user during MetaMask confirmation. gas: '0x2710', // customizable by user during MetaMask confirmation. to:…
4
votes
0 answers

How to prevent "MetaMask Ether Faucet Error 500" when retrieving one ether?

I am not able to request 1 ether from faucet.metamask.io. When I open the metamask extension it says connected, regardless. I also removed AdBlocker from this page. On top of that, I tried other faucets and they failed. Any ideas on how to fix…
Lee Marreros
  • 355
  • 2
  • 8
4
votes
0 answers

How can i use metamask in my mobile app ( flutter / dart )

I want to create a mobile app with metamask but when i search for this idea i just found only web project. So how can i use metamask Wallet info in my mobile app. Anyone work on like this project? I need an roadmap and suggestion.
Furkan Ç
  • 41
  • 3
4
votes
0 answers

How to fetch Metamask account using Python-Flask?

I am learning to build Dapps using Python. I am using Flask for the web scripting part and Ganache as a local blockchain. Currently, I am using this method to fetch account in Python. ganacheURL = "HTTP://127.0.0.1:7545" web3 =…
Gaurav
  • 333
  • 1
  • 16