Questions tagged [metamask]

Question about the Metamask chrome's plugin.

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

How to use metamask for etheruem dapp

I am trying to create an application using ethereum ,where node.js has used to call methods of smart contract and angular as frontend . I want to use the metamask wallet so my apication can ...
5
votes
3answers
538 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
4answers
2k views

Balance may be outdated, Metamask

Metamask is showing an asterisk near the account balance, and the message "Balance may be outdated". Indeed the balance is outdated. This is true an all networks (Main, Ropsten, etc.) and different ...
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
1k 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 ...
5
votes
1answer
275 views

Native mobile Dapp - Sign transactions with user wallet

I'm starting a new project that involves a mobile Dapp and I have a question regarding signing transactions. Every mobile Dapp post that I read about offered two solutions: Use a Dapp browser, such ...
4
votes
1answer
4k 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
3k 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. ...
4
votes
4answers
532 views

Get rid of Metamask sign confirmation dialog

I am using web3 for users to sign some random string from web application. I give user string, he/she signs it after Metamask dialog's "Sign" button. but there is a problem when i want user to sign ...
4
votes
3answers
3k views

How to check whether MetaMask is installed?

How to check from client-side JavaScript whether MetaMask is installed?
4
votes
2answers
6k views

Send wei to payable function with web3 async

I want to send 100wei to a payable function in my deployed contract. But i don't want to sign the transaction because of to much effort to get this going. I just want to submit the transaction with ...
4
votes
1answer
285 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

Is it possible to use a specific version of web3 with Metamask?

I'm testing out Metamask under Chrome. I see that current Metamask (version 4.5.3) injects web3 version 0.20.3. Since web3 has a long history of volatile API, I would prefer to always stick to a ...
4
votes
1answer
1k views

Metamask integration with web3.py

I've used metamask with web3.js multiple times before, with no issue. It's simple to integrate it, like discussed here: https://github.com/ethereum/web3.py/blob/master/docs/providers.rst How does one ...
4
votes
2answers
856 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 ...
4
votes
1answer
4k 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)...
4
votes
4answers
535 views

Truffle Drizzle-box fails with TypeError: (0 , _drizzle.generateContractsInitialState) is not a function

Right after unboxing Drizzle-box I'm getting a TypeError: (0 , _drizzle.generateContractsInitialState) is not a function. Ganache is running on localhost:8545, contracts are deployed, Metamask ...
4
votes
1answer
3k 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 ...
4
votes
1answer
1k views

Mobile app to sign tx of another app (similar to Metamask in browser)?

I am looking at an architecture of a native (this is given!) iOS app which I want to integrate with an external wallet. For web apps we have the beloved Metamask which takes care of signing txs. Since ...
4
votes
1answer
163 views

What are the odds of getting same address or private-key or 12/24 set of mnemonic to 2 different people

Questions!! What are the chances that 2 people get the same set of those 12 or 24-word mnemonic?? In web3.js, there is a function ' web3.eth.accounts.wallet '... It spits out a set of accounts and ...
4
votes
1answer
1k 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: ...
4
votes
1answer
9k views

Transaction has been reverted by the EVM:

I have created a contract and contract is successfully deployed. I can see it on 'https://rinkeby.etherscan.io/' While accessing its ABI using web3 and paying money using meta mask Smart contract ...
4
votes
2answers
7k views

Lost my Seed Words for MetaMask

I am very shocked. After a crash on my computer, I lost my Seed Words file to access my MetaMask account. However, I found a Keystore file (UTC or json file), but when I import it into MetaMask I can ...
4
votes
1answer
332 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 ...
4
votes
1answer
3k views

Deploy smart contract to mainnet with Infura and MetaMask

I am trying to deploy my smart contract to the main net using the following code: truffle.js: module.exports = { networks: { live: { provider: new HDWalletProvider("mnemonic from ...
4
votes
2answers
986 views

callback contain no result Error: Error: [ethjs-query] while formatting outputs from RPC

Recently, every time I tried to interact with a contract function, using MetaMask (version 3.9.4) and Remix - Solidity IDE, I get this error callback contain no result Error: Error: [ethjs-query] ...
4
votes
1answer
78 views

How to automatically get user's wallet info if they are connected but NOT show the metamask pop up if they are not?

I don't want metamask to pop up on page load forcing a user to connect, so we only connect via a button - but after a user is connected if they refresh the page - they need to press the button again ...
4
votes
1answer
765 views

Using metamask from a local html file?

I'm building a DAPP it works fine when I host it from a server, but when the HTML file is local MetaMask gives this error: MetaMask does not allow file:// protocol, use http(s):// Any ideas what ...
4
votes
3answers
1k views

Why would I use Metamask instead of only using Web3.js in the browser?

It is my understanding that Metamask brings a convenient way for the user to interact with DApps by storing their wallets and by providing an interface that gives the user control of what the DApp is ...
4
votes
1answer
2k views

Using ether.js with metamask

I am considering using ether.js instead of web3js. One of the factors I am considering is the integration with metamask. Is there any support in ether.js to use metamask as wallet? If there isn't, ...
4
votes
2answers
1k views

Testing in ropsten network with truffle.js gives me this error

root@ubuntu-4gb-nyc3-01:~# truffle migrate --network ropsten (node:14686) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: this.provider.sendAsync is not a ...
4
votes
1answer
368 views

Metamask Error messages shows only revert

I have a little problem with the error messages I receive from MetaMask. In my dApp I have a modifiers which should throw an error with an error message. However, in MetaMask I only receive the RPC ...
4
votes
1answer
1k views

What is 'the last add pending transaction' in web3 filter?

I run this code using MetaMask to inject web3 object: var filter = web3.eth.filter('pending'); filter.watch(function (error, log) { console.log(log); }); From web3 api docs: When using the "...
4
votes
1answer
248 views

signed message different on opera and metamask

I am using the following code to sign a message: web3.currentProvider.sendAsync( { jsonrpc: '2.0', id: 1, method: 'personal_sign', params: [ `My account is ${this.accounts[0]}`...
4
votes
1answer
440 views

Passing Web3 & Contracts Between Components - React Redux & MetaMask

Curious what's the best way to access and pass a web3 contract instance provided by MetaMask between components when using react-redux. At this point, I'm tempted to do the following for both web3 ...
4
votes
1answer
414 views

How can I use swarm with metamask or parity node?

I want to use swarm, but I wan't to download the all blockchain data. Is it possible to use metamask or parity node instead?
4
votes
2answers
3k views

MetaMask transaction rejected

Why transactions are rejected in MetaMask after conforming it? When a transaction is carried out in metamask it first get approved. after sometime it shows rejected. metamask is showing something like ...
4
votes
1answer
1k views

How deploy a smart contract with meteor and metamask?

I will deploy a smart contract with meteor and matamask. My code in main.js : var inactivityTime = 1000; var continuityContract = web3.eth.contract(Continuity.abi); var continuity = ...
3
votes
4answers
5k views

whether metamask can be used on cell phone browser

whether metamask can be used on cell phone browser? any plugin for cell phone? thanks I try to use a wallet to send eth easily, but metamask can only work for desktop etc. for mobile, any metamask ...
3
votes
1answer
6k views

MetaMask injected Web3 not working in HTML file

I am using chrome with the MetaMask plugin installed. When I launch the below HTML file and look at the JS console, MetaMask doesn't inject web3 ("MetaMask - injected web3") like it does on every ...
3
votes
1answer
4k views

Why does the minimum transaction cost in ethgasstation and metamask differ so much?

On ETH Gas Station it says that the standard cost for transfer is ~$0.06 currently but when I send ETH on metamask I could't set the gas limit lower than 21000 which is roughly half dollar (10 times ...
3
votes
1answer
4k views

Is there a way to call a constant function asynchronously?

I'm trying to invoke a constant function test from a webpage. I've injected web3 object through MetaMask. contract A { function test(uint8 x) constant returns(uint8) { return x + 10; ...
3
votes
2answers
1k views

How to get wallet seed for account created using geth

I have private net and created 2 accounts using geth...I connected private net to metamask but accounts were not visible...I didn't get any seed while creating accounts using geth...Is the only option ...
3
votes
2answers
1k views

Best way for web3 to receive data from function return?

Now I'm trying to delelop my first Dapp (using Metamask plugin). everything is going to be all right, but I can't get one thing: Is it possible to receive return from function, using Web3 (not JS VM!) ...
3
votes
1answer
4k views

Can I do contract transactions with metamask?

In the metamask plug-in, when I click 'Send' there is a Transaction Data (Optional) blank at the bottom that I'm guessing I can put a hex string in that amounts to the {methodID:0xXXXXXXX, params:[X,A,...
3
votes
1answer
200 views

MetaMask blocks Web3 requests

I just set up a Block Explorer to interact with my private blockchain. The private Blockchain runs in a VM. The host system connects to the Block explorer (also on VM). When I have meta mask ...
3
votes
2answers
428 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 ...
3
votes
1answer
2k views

Can't retrieve Event logs with MetaMask Web3

I have no problem retrieving events with this code: contract.MyEvent({}, { fromBlock: 0 }).get((err, data) => console.log(data)) But when I use the exact same code in a browser that is using ...
3
votes
2answers
1k views

Retrieving logs using filter is not working?

web3 has been connected to Infura node, can send signed transactions but web3.eth.filter is not working(405 error)?
3
votes
1answer
2k views

Using Metamask Injected Web3 with React

Having trouble accessing Metamask's web3 object. Following the recommended guidelines for using Metamask's injected web3 object https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#...

1
2
3 4 5
22