Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
37
votes
3answers
32k views

how to remove unused test accounts from Metamask

i use metamask chrome extension with testRPC to do my testing now metamask have over 20 dead accounts just sitting there in the list my question how to you clear loose unused test accounts from ...
16
votes
9answers
10k views

TX doesn't have the correct nonce - Metamask

I'm trying to call the leafPicked() function in my contract from web3 which launches Metamask as intended. After pressing accept the transaction shows as failed along with the error message pictured ...
15
votes
2answers
6k 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 ...
15
votes
4answers
72k views

How To Transfer Tokens Out Of Metamask Wallet

I have some tokens in my Metamask wallet and want to transfer them to an exchange to trade but I don't know how to do. Metamask now allows you to see the tokens as per the recent upgrade but I don't ...
14
votes
3answers
18k 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 ...
13
votes
9answers
15k views

Invalid Address Error when interacting with a smart contract with metamask

I want to call the methods with metamask of this simple contract: contract AssetPrices { mapping (uint => uint) public prices; uint public data; function EnterPrice(uint _time, uint _price){...
13
votes
3answers
10k 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 ...
13
votes
2answers
42k 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 ...
12
votes
1answer
6k views

Is an Account in MetaMask the same as an Ethereum Account (EOA)?

First, my setup: I use the Azure Ethereum Consortium Template, which creates one transaction node and two mining nodes in my configuration. I use MetaMask Chrome plugin to accept transactions, which I ...
11
votes
6answers
18k 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 ...
10
votes
5answers
4k views

Elegant way to detect current provider int web3.js

I want to know what provider the user is using (Metamaks, Mist...)so I can give better user experience. E.g. Give tips on how to unlock an account I'm currently doing this, but is far from elegant. ...
10
votes
2answers
2k views

Solidity Browser - Issue with every example => Error: Type “address” not supported for state variable

I am very new to blockchain and Ethereum. I want to get started with a BaaS cloud service and develop / execute some smart contracts. I successfully set up the Azure Ethereum template (https://github....
8
votes
1answer
1k views

Are tools like metamask putting decentralization in danger?

Does a tool like metamask, which connects your browser to a public ethereum node to simplify running DApps, put the basic idea of decentralization and trustless blockchain verification in danger? Is ...
8
votes
2answers
5k 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 ...
8
votes
2answers
687 views

TestRPC and Metamask: hanging on pending transactions

I'm using Remix and connecting to Testrpc via Metamask. I can successfully launch contracts to testrpc, but then it hangs on the subsequent calls that Remix makes to the public methods (Remix says "9 ...
7
votes
2answers
4k views

Why does my smart contract tokens not show up in MyEtherWallet or MetaMask?

I have deployed a very basic smart contract to the Rinkeby test network. The contract's address is 0xb145b6d8757b40ac80b5fe2a98ab6c8450a54585. I have made transactions to it using MetaMask, and they ...
7
votes
2answers
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 ...
7
votes
1answer
4k views

Sign a raw transaction with Metamask or Mist

Is there a way to use the private key from my Metamask or Mist account to sign a raw transaction? I cannot use ethereumjs-tx without the private key, but I want to be able to use injected Web3 and ...
7
votes
3answers
13k views

How to determine Gas Price and Gas Used?

I have got 2 questions actually: How to determine the gas price? Metamask fills this in for me, but it is always too low when I click on submit. Basically all values on ETH Gas Station seem too low? ...
7
votes
0answers
210 views

Error importing transaction: Transaction(InvalidChainId) in Private POA

Problem I am trying to send some transactions to my private chain, and all transactions are getting failed. I am receiving this error: Error importing transaction: Transaction(InvalidChainId) ...
6
votes
3answers
5k 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]...
6
votes
2answers
6k views

Using Ganache with an existing MetaMask account

I am attempting the Truffle "Ethereum pet-shop tutorial": http://truffleframework.com/tutorials/pet-shop I am in the stage where I am attempting to implement the smart contract on the local Ganache ...
6
votes
3answers
3k 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 ...
6
votes
1answer
2k views

Metamask web3.eth.account[0] is undefined

I am facing some problem with metamask. I ve copied the code below from the metamask documentation to load the web3 but i get always web3.eth.accounts[0] returns undefined when i try to get the ...
6
votes
3answers
25k views

Accessing ERC-20 tokens in MetaMask

I sent tokens (veri) from my ether wallet to meta mask address ether scan shows the transaction but i cannot see them or send them. If you have a solution please explain as if i were 4 yr old. cheers ...
6
votes
3answers
5k views

How to import web3 into a React project

I apologize preemptively for the very basic question. I have added and installed web3 using yarn in my react project. Inside my index.js file in /scr and based on the web3 docs I have tried both (...
6
votes
1answer
3k views

Sign message with Metamask and verify with ethereumjs-utils

Client side: web3.eth.sign(address, hash); // generates signature Server side: const ethutils = require('ethereumjs-util'); const extractAddress = function(signature, hash){ //signature and hash ...
6
votes
1answer
2k views

Sending value with transaction using Metamask and Browser-Solidity

Using browser-solidity in combination with metamask I am testing a new contract on testnet https://testnet.etherscan.io/address/0xc03db39c18b6056f8c3a3a5495a1e11f3ff8885a but when trying to call ...
6
votes
2answers
4k views

how to hook up web3 injected by metamask in angular 2

As described in metamask github, one can bootstrap metamask like this: window.addEventListener('load', function() { // Checking if Web3 has been injected by the browser (Mist/MetaMask) if (typeof ...
6
votes
2answers
711 views

How a dapp can call contract functions without running a local full node?

I have developed a contract and a basic dapp. It works on my local environment with my local test node. Now I would like to understand how it can be distributed so that a user doesn't have to run a ...
6
votes
2answers
599 views

Parity-like Solution for using Ledger Nano Anywhere

I'm looking for a "Parity-like" solution so that I'm able to use my Ledger Nano on any Ethereum-powered website that doesn't support a Nano natively (something like Radar Relay). I know I can do this ...
5
votes
1answer
1k views

How can I import the accounts from truffle develop into MetaMask?

I use truffle develop. It seems to me that the accounts in truffle develop are persistent. Pleas correct me if I'm wrong. How can I import the accounts from truffle develop into MetaMask?
5
votes
3answers
2k views

Can't get Metamask account in javascript

The command: web3.eth.accounts Returns an empty array despite Metamask having one account, how should I be retrieving the accounts in a way that will work with Mist and Metamask?
5
votes
3answers
449 views

How is Metamask able to send erc20 tokens without ABI?

When I use web3js and Truffle, I cannot send tokens to another wallet without the Token Contract ABI. But Metamask only requires the token contract address to recognize and send the ERC20 tokens. How ...
5
votes
2answers
4k views

How does MetaMask inject Web3?

I'm just getting started with Solidity and Truffle, and I'm quite confused regarding this example code: App = { web3Provider: null, contracts: {}, ... initWeb3: function() { // Is there an ...
5
votes
2answers
6k views

How to obtain all transaction of a contract?

I'm trying to obtain the all 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 ...
5
votes
3answers
3k views

Out of gas when calling contract method - Browser Solidity & Metamask

Trying to call sendFundsToFriend() method on the testnet contract https://testnet.etherscan.io/address/0xce8efd03766a309af57ddeb9c79f3e7cd23da0df (contract code at https://gist.github.com/anonymous/...
5
votes
2answers
6k views

Send transaction using MetaMask injected web 3

Metamasks injected web3 gives an error when using web3.eth.sendTransaction() web3.eth.sendTransaction({from:web3.eth.accounts[0], to:'', data: // hash to interact with contraact, gas:85000}); What ...
5
votes
3answers
3k views

What is the MetaMask workaround if Web3 is deprecated

While using MetaMask, adding Web3 to a Javascript program displays the following message in the Chrome console: "MetaMask: web3 will be deprecated in the near future in favor of the ethereumProvider" ...
5
votes
2answers
5k 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 ...
5
votes
1answer
3k views

Solidity/Web3.js Cannot send value to non-payable constructor

I have a simple contract that I built a small webapplication with. The contract is as follows: contract MyContract { address public creator; function MyContract() { creator = msg....
5
votes
1answer
885 views

Detect if MetaMask was just unlocked

I want to detect if my user unlock their metamask so I can redirect them to the right page as soon as they unlock instead of having them click away from the "your metamask is locked" page. Is that ...
5
votes
2answers
5k views

Export Metamask account to JSON file

I'm trying to use ethers-ens which requires an ethereum account in JSON format. How can I export or generate an account.json from my metamask account? Is there another way to use ethers-ens without ...
5
votes
3answers
466 views

Constant contract calls from web3 returning inconsistent values

I've got this dapp on the main net here. The following contract has been deployed at this address : pragma solidity ^0.4.19; import 'zeppelin-solidity/contracts/ownership/Ownable.sol'; import '...
5
votes
1answer
2k views

How to deploy truffle contracts to Rinkebey?

What are the parameters that I have to specify to be able to deploy solidity contracts using Truffle in the config file? I am using Metamask to store test ether and have a unique mnemonic to define ...
5
votes
1answer
985 views

Geth not synchronizing to MetaMask

I want to import my account of MetaMask(testnet) to the geth accounts list. First I copied the private key from MetaMask and saved to a txt file. After that I run this command : geth account ...
4
votes
1answer
3k views

How can I check if a user is logged in to Metamask?

I tried a very simple example of web3, it works if you Log In to Metamask and try to send some ETH. However if I'm not logged in to Metamask no errors and no tips are shown. How can I check if a ...
4
votes
3answers
2k views

How to check whether MetaMask is installed?

How to check from client-side JavaScript whether MetaMask is installed?
4
votes
1answer
260 views

Get all accounts that have interacted with contract

Other than looping through every transaction since the contract was mined is there a way to get every account that has interacted with a contract (or sent a transaction to an address) conveniently ...
4
votes
1answer
2k 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)...