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

MetaMask does not inject window.ethereum: Uncaught (in promise) TypeError: Cannot read property 'request' of undefined

To start, let me mention this is an in-browser project, so i can only use So a few months back I made a dapp, which worked fine even tho I never set a provider,…
Bleiserman ADN
  • 141
  • 1
  • 1
  • 6
8
votes
5 answers

How do I accurately convert ETH to WEI when sending transaction?

I am trying to send ETH from one account to another but the conversion from ETH to WEI keeps giving me headaches. In this case, I am trying to send 0.11 ETH but in the confirmation window, I get 313.59464925 ETH instead. // This is my transaction…
cy23
  • 354
  • 1
  • 3
  • 12
8
votes
1 answer

How to detect,launch and connect to metamask mobile app by clicking on a button on the webapp like on opensea?

I implemented a shortcode that connects to metamask browser extension and shows the user account using web3 and reactjs, this code works well when using the desktop browser, but when I try it on mobile browser, metamask mobile version doesn't open…
kool Erick
  • 101
  • 1
  • 6
8
votes
1 answer

How do I get all the tokens inside my Metamask wallet by web3 or others?

I make login with metamask on my website (Laravel & Vuejs). I installed Web3 and doing actions such as getAccounts, Sign , getBalance and etc. But I want to get all tokens(Such as BNB, RARI and etc) balance in metamask. I wrote this code: // …
Amin
  • 387
  • 1
  • 6
  • 17
8
votes
3 answers

Switch Metamask Network to chain 1 (Ethereum Mainnet)

This past week Metamask introduced a new function called "wallet_addEthereumChain" which allows the user to automatically add a new Etheruem RPC to their wallet when prompted. This function also allows the user to change the network they are…
Alexander Barry
  • 81
  • 1
  • 1
  • 3
7
votes
2 answers

How to connect Metamask to Rootstock networks?

I am building a DApp which connects to Rootstock Testnet and Mainnet via MetaMask. Unfortunately, I didn't find Rootstock among the available networks out of the box in MetaMask. ​ In this tutorial I found the information on how to manually add…
Jeremy Then
  • 525
  • 2
  • 12
7
votes
5 answers

Error: invalid BigNumber value (argument="value", value={"value":"25000000000000000"}, code=INVALID_ARGUMENT, version=bignumber/5.5.0)

I have tried changing the values from 0.025 ether to 1 ether then also its showing the same error. Also, I have tried with the rational number like 1/8 still not working. LOOKED into some answers but they didn't resolve the error. I have the same…
Megabyte
  • 139
  • 1
  • 2
  • 9
7
votes
0 answers

Metamask mobile browser not injecting window.ethereum

I'm having an issue where Metamask's mobile browser simply isn't injecting window.ethereum at all into my website. This is extra confusing since I'm doing everything the same way I did in a previous website that worked fine. if…
7
votes
7 answers

MetaMask - RPC Error: Cannot set properties of undefined (setting 'loadingDefaults') error

I'm building a staking function and hitting the following error after giving permission to access my token: "MetaMask - RPC Error: Cannot set properties of undefined (setting 'loadingDefaults')" Staking function Solidity contract: // Staking…
Julien
  • 73
  • 6
7
votes
2 answers

Cypress test approach for testing with Metamask

I want to test how my application interacts with Metamask (e.g. is the wallet open?) and create a flexible test configuration that enables me to access the application by 'mounting' the Metamask interface in a similar way to how ordinary 'login' is…
dotnetspec
  • 91
  • 1
  • 5
7
votes
4 answers

Using web3 from MetaMask in React

I'm attempting to use the web3 from MetaMask in a React js app like so: import Web3 from 'web3'; componentDidMount(){ if (typeof web3 !== 'undefined') { console.log(web3.currentProvider); // Use…
iicaptain
  • 1,065
  • 1
  • 13
  • 37
6
votes
2 answers

How to connect your Android App with metamask?

So I am using wallet connectV2, what I am trying to do is to connect my metamask wallet with my App and I am trying to follow the walletConnect2 sample app code. But I am having trouble connecting it as there is no popup appearing when selecting…
Mukesh
  • 97
  • 4
6
votes
4 answers

Integrating MetaMask with Flutter Mobile Application

I want to add feature in my mobile app to send ether from one address to another address and for this I need to integrate metamask with my flutter mobile application. What package can I use for this purpose? I want to send ether through metamask but…
Rehan
  • 131
  • 1
  • 8
6
votes
0 answers

How to use origin value in substrate pallet

The ensure_signed function of pallets/template/lib.rs contains a parameter named origin of type OrginFor<>. I have been looking inside various projects and all I see is doing ensure_signed(origin)?. My question is how actually should I get something…
Sudip Ghimire
  • 677
  • 6
  • 15
6
votes
2 answers

Connect to MetaMask via chrome extension

I am making a chrome extension that requires MetaMask authentication. I started developing it as a web application, but as a chrome extension, it doesn't detect MetaMask... This is my web application code right now: function toggleButton() { …
RonKon
  • 133
  • 8
1
2
3
57 58