Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
3 votes
2 answers
7k views

MetaMask and Access Ethereum Private Chain from other PC in the same network (for test)

My goal: To simulate the Ethereum blockchain with different clients. So, they create their own accounts, i.e. public/private keys, and store them locally. So all are for testing. Assume, I have set ...
Aydin's user avatar
  • 2,107
9 votes
2 answers
15k views

Approve contract to withdraw funds from users's wallet

I want to achieve the following flow: A user clicks a button allowing my contract to spend funds on the user's behalf A user clicks a second button whereupon funds are transferred from the user's ...
Conviley's user avatar
  • 390
8 votes
1 answer
11k views

Connecting the wallet of to your dApp and different Ethereum wallet types

How users can use connect their different wallets, like MetaMask, mobile wallets and hardware wallets with a dApp? What wallets are supported?
Mikko Ohtamaa's user avatar
12 votes
5 answers
19k views

How to verify MetaMask account holder is the real owner of the address?

I'm making a dapp that will make calls to a Node.js server. I expect the user to have MetaMask installed and I want to verify that he is the real owner of the current address on MetaMask (i.e. ...
adrianmcli's user avatar
5 votes
4 answers
10k views

How to import account form geth console to metamask (private blockchain)

I want to import accounts from geth console(private network) but I can't. I have UTC file when I create account with geth but when I open file and copy mac and paste to metamask (private key) account ...
E Eak's user avatar
  • 51
4 votes
2 answers
4k views

If Metamask Gas calculations are nearly perfect why do we still get out of Gas error?

Pardon me if this question seems a bit naive. I have written a smart contract (for proof of existence) and simulating it in Ganache. Inside it I have logic to store data in a mapping created between ...
tanmay's user avatar
  • 428
18 votes
3 answers
20k views

How can I get my accounts into metamask or vice versa?

I need my accounts in Metamask to match my local machine so I can deploy from the machine (using truffle), and test in a browser. How can I either: Upload my local geth accounts to Metamask Bring ...
ZMitton's user avatar
  • 2,730
17 votes
2 answers
9k views

To which remote ethereum nodes does Metamask plugin send signed transactions? and are they exposed to denial of service attacks?

So Metamask allows in it UI to connect to different ethereum nw (public/ testnet) right. Do who is maintaining these peers? Can I trust these peers?. If so, can I setup similar service on my machine ...
siddesh sangodkar's user avatar
16 votes
6 answers
26k views

Better pattern to detect web3 default account when using metamask

Context: I want to use blockies to render an identicon on the page, i get the defaultAccount from web3, for this, the user has to be logged on to metamask with a selected address from his wallet. The ...
Jorge Alvarado's user avatar
16 votes
2 answers
26k views

Does metamask store private key on server or anywhere else?

I have created my private key using myetherwallet using offline option. Now Metamask allows us to import account by providing private key or Json File that has private key. Does metamask store ...
LP13's user avatar
  • 323
6 votes
3 answers
4k views

Block gas limit exceeded when compiling contract Solidity browser

Using Solidity Browser ( https://ethereum.github.io/browser-solidity/ ) to mine a contract on testnet with injected web3 and metamask account, throws this error: callback contain no result Gas ...
Juan Ignacio Pérez Sacristán's user avatar
6 votes
4 answers
53k views

How To Connect Web3 With MetaMask?

No tutorial can help me, I have watched almost every major tutorial on Youtube and read a ton of results from Google... I have on my HTML file imported the web3.min.js (copied from Truffle pet-shop ...
Igor Marcos's user avatar
5 votes
2 answers
9k views

Ethereum tokens and decimals

What is the best way to deal with decimals as I create a currency? Let's use an example. I have KARLCOIN (KARL), and I have 1,000,000 of them, and the token has 6 decimals places. This token will ...
diabetesjones's user avatar
0 votes
1 answer
922 views

web3.js doesn't return all accounts

I'm trying to put together a simple application using Truffle, Metamask and ASP.NET. I've created a bunch of test accounts in Metamask, I then start testrpc explicitly specifying a couple of those ...
John M's user avatar
  • 111
15 votes
4 answers
20k views

How to obtain all transaction of a contract?

I'm trying to obtain all the transactions of a contract, but in all cases I only obtained [] or undefined. I'm following this posts: Common useful JavaScript snippets for geth web3 filter option not ...
Gawey's user avatar
  • 804
6 votes
1 answer
4k views

MetaMask shows "UNKNOWN FUNCTION" when calling method send function

I'm trying to configure communication between a web front end and a deployed Ethereum contract (on Rinkeby). I'm trying to call a simple method that updates a value, which looks something like this: ...
SuperCodeBrah's user avatar
2 votes
3 answers
5k views

Issue with New version of Metamask: Remix cannot detect the Metamask address

I have just installed Metamask version: 6.3.1 Now in Remix, the address of my account in metamask is not detected. The account box in remix remains always blank now (see picture below). Note that I ...
user153465's user avatar
0 votes
2 answers
10k views

Unable to connect to metamask using web3

I have tried everything but just can't get the web3.currentProvider to work. I have metamask installed and working and somehow want to connect the website on the test network. Has there been some ...
Shuvam Agarwal's user avatar
0 votes
1 answer
244 views

Size limit decrypting files with Metamask

Trying to decrypt with Metamask a digital content previously encrypted with Metamask itself, the extension hangs up when the size of the encrypted file exceeds approximately 200Kb. I found no evidence ...
blockmined's user avatar
13 votes
2 answers
47k views

How to get tokens out of a metamask account

I transferred tokens (GNT) from an exchange to a metamask account but I can't figure out how to get them out. They do not show up in metamask, but etherscan shows them. I tried to import the account ...
user7659's user avatar
  • 131
13 votes
3 answers
42k views

Where does metamask store the wallet seed? (file path)

I have a Windows installation that cannot be booted anymore. I'd like to copy the file containing the Metamask wallet seed to another machine and have that Metamask installation use it. The same ...
Jesbus's user avatar
  • 10.3k
8 votes
1 answer
6k views

Reset MetaMask nonce

I am testing stuff on Ganache and am using Metamask to send transactions to simulate user behavior with the app. Now here's the issue. If I restart Ganache it resets all accounts (no problem with that)...
JBrouwer's user avatar
  • 1,052
7 votes
2 answers
2k views

MetaMask not showing the testrpc accounts

I run testrpc on the terminal and I get the 9 accounts but when I go on crhome and check on metamask after selecting the testrpc blockchain it won't show any of the 9 accounts from metamask but ...
Adam's user avatar
  • 271
6 votes
1 answer
732 views

How do you use natspec comments to provide a confirmation text?

According to the docs: Additionally, there is another type of comment called a natspec comment, for which the documentation is not yet written. They are written with a triple slash (///) or a ...
Franco Victorio's user avatar
6 votes
4 answers
19k views

How can I connect a local Hardhat network to Metamask?

I have started a Hardhat network with default configuration using npx hardhat node. After running this command, I see Started HTTP and WebSocket JSON-RPC server at http://127.0.0.1:8545/ and a list of ...
vaer-k's user avatar
  • 221
6 votes
1 answer
7k views

Verifying personal.sign signature with pyethereum

I'm trying to verify a signed message from Metamask with pyethereum. I can not seem to recover the correct address from the signature. Lack of documentation isn't helping matters. On the client ...
Mike Shultz's user avatar
  • 1,212
5 votes
3 answers
13k views

Metamask not connecting to localhost

I have started an rpc server as follows : geth --datadir ./chaindata --rpc --rpcapi="db,eth,net,web3,personal,web3" It says that an http endpoint is started . But i cant access this endpoint ...
Zach Dev's user avatar
5 votes
4 answers
13k views

MetaMask verification on a server with web3.personal.sign

How to verify MetaMask account holder is the real owner of the address? I recently saw this post and tried it immediately, unfortunately, I am not getting the right result from the server. I think it ...
Florian Pircher's user avatar
4 votes
1 answer
2k views

Detecting a Reverted Transaction with Web3

I am using Web3 to submit transactions and it seems as though whenever a transaction is successfully mined but reverted I don't get that error on my frontend. Is there anyway to detect when the ...
Dan's user avatar
  • 279
4 votes
3 answers
11k views

How to use a metamask Wallet from web3,py?

I deployed contracts to Ropsten test net using truffle and a metamask wallet to pay for the transactions and Infura as a Hosted ethereum node. To do that in Truffle, I have to use the truffle-...
fccoelho's user avatar
  • 195
4 votes
2 answers
11k views

How to login with web3 without MetaMask?

Is it possible to sign a user in web3 without MetaMask? I am trying to execute a smart contract I created and I'm using Infura to connect to the Kovan test network, but web3.eth.accounts[0] is ...
Kevin T's user avatar
  • 41
3 votes
1 answer
8k views

Window.ethereum undefined on tab with local webpage

I have the metamask extension. When I do typeof(window.ethereum) in the console for a chrome tab, I get the type as object. However if I open mywebpage.html in a tab, which is just a heading around: &...
pongoS's user avatar
  • 143
3 votes
4 answers
15k views

Signing message: Provided address is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be converted

Provided address is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be converted is not a dupe, this is about signing messages My code: const ...
user avatar
3 votes
2 answers
8k views

This transaction is expected to fail. Trying to execute it is expected to be expensive but fail, and is not recommended

Metamask is giving me that error. I am on ropsten network, I never had this issue before and I have enough funds: I have tried multiple times still getting same error. While it says "I will try ...
Yilmaz's user avatar
  • 1,540
3 votes
3 answers
14k views

Reinstalled MetaMask, account lost?

I had 3 accounts under my MetaMask Chrome extension. One of them had some small deposit. I have reinstalled the extension and used seed phrase to get access again. However, I can see only one account (...
Andy Victors's user avatar
3 votes
1 answer
3k views

Need only sign transaction feature (not send transaction)

I am developing an online store BNB as a payment. Customers will sign transactions using Metamask and then frontend code(js) need to post call to our backend server with the txHash, and then we will ...
Rahul Sharma's user avatar
2 votes
1 answer
3k views

Best security practices for contract deployment?

I'm using Truffle to develop an ERC721 smart contract. Truffle expects HDWalletProvider to be installed so that Truffle can sign transactions for you, however this requires storing your mnemonic ...
BarefootDev's user avatar
2 votes
4 answers
989 views

I might have fallen for an Ethereum Smart contract scam and I don't know what to do

I deployed an Ethereum Smart contract and loaded it up with funds, but it seems I can’t withdraw any amount from it. It always shows this error message and the amount is always 0 Eth. If you look on ...
user avatar
2 votes
3 answers
3k views

How to airdrop tokens successfully

I have the script for airdropping tokens, all I need is to know what and how to input these value on the drop section of remix script:token,recipient,values. Assuming I want to send to 5 addresses, ...
souljay's user avatar
  • 21
2 votes
1 answer
628 views

Metamask Warning

In an effort to improve user privacy, MetaMask will stop exposing user accounts to dapps by default beginning November 2nd, 2018. Dapps should call provider.enable() in order to view and use accounts. ...
Rohan Dhar's user avatar
1 vote
1 answer
578 views

How to bundle own web3 version and using Metamask

I am a bit of a javascript noob and have some questions about using web3js and Metamask. My objective (for now) is to display the ether balance as displayed on my Metamask (where I am logged in). ...
Ytsen de Boer's user avatar
1 vote
1 answer
2k views

"Updated :" How to see "output" of "web3.personal.sign" in "browser"? ("Method personal_sign not supported")

Note: I updated the html / JavaScript code according to the answer and I used THIS META MASK sample code for web3 provider. However, I receive the same error. I eventually did not understand that do I ...
Questioner's user avatar
  • 2,670
0 votes
1 answer
654 views

problem connecting web3 v 1.2.1 with metamask : 'currentProvider' of undefined

I am using Web3 v1.2.1 with nodejs v10 and following this link. I am having issue connecting with metamask,below is my code snippet: const Web3 = require('web3') const window = require('window'); ...
cryptoKTM's user avatar
  • 431
0 votes
1 answer
419 views

Can Metamask be used for all ERC20 token?

How can I use WETH with Metamask wallet? I can see ETH in my Metamask (Rinkeby TestNet, it works on Mainnet) but can not use other tokens. Any Repository or lead will be appreciated. If yes, What will ...
Rohit Mittal's user avatar
0 votes
1 answer
767 views

Comparison of Metamask vs Ganache [closed]

I watched some videos about Metamask but I am so confused by it Metamask: To use the final application like the end user would. Based on that, what is the purpose of React then? What are the ...
Junior's user avatar
  • 45
0 votes
1 answer
7k views

Transaction is stuck pending but not available to be cancelled in MyEtherWallet

My transaction has been stuck pending for 4 days now, but I can't even cancel it on MyEtherWallet as it is showing up as "Transaction Not Found" on their check transaction page. https://etherscan.io/...
Nicoloo's user avatar
0 votes
1 answer
2k views

Token doesn't show in MetaMask

I bought some ICON (ICX) tokens on Binance, then transferred them to MetaMask. I still see the transaction on Etherscan. Initially, the tokens showed in MetaMask (tokens held went from 8 to 9), but ...
jeffstack's user avatar
30 votes
6 answers
44k views

How can I detect change in account in Metamask?

When a user changes to a different account in metamask, is there a way to detect it asynchronously in code? I currently use this.web3.eth.getAccounts((err, accs) => { this.account = accs[0]...
bbusdriver's user avatar
  • 1,124
21 votes
8 answers
24k views

Trying to use window.ethereum.request in Typescript errors out with Property 'request' does not exist on type 'EthereumProvider'

Except for one unanswered question from last November, I cannot find anything . . . . I am revamping some typescript code (in Visual Studio) for the Metamask January change. Previously, I was using ...
Mark Waser's user avatar
20 votes
5 answers
33k views

Metamask: How to access/call deployed contract's functions using Metamask

I'm learning Solidity. I've set up Metamask, truffle and testrpc. I can send ether from one account to another via metamask. But I want to Metamask to access my deployed contract, and call my ...
Aydin's user avatar
  • 2,107