Questions tagged [metamask]

Question about the Metamask chrome's plugin.

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

Remix IDE getting VM error invalid opcode

I am attempting to deploy a test contract on javascriptVM using Remix IDE in chrome. However when I try to execute the contract I receive this message in the status section. "transact to Notes....
3
votes
2answers
5k 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 ...
3
votes
1answer
641 views

Unable to detect MetaMask in browser

I'm a bit of a noob in javascript and I need some help. My objective is to create a client-side javascript program that uses Metamask as web3 provider and display the output of some web3 functions on ...
3
votes
2answers
779 views

How metamask works

I want to understand how MetaMask works. When a user connects to the main network using MetaMask, there are a few possibilities I can think of: MetaMask creates a dedicated full node (seems ...
3
votes
1answer
2k views

Elegant way to map web3.js error messages

when user's transaction fails before submitting to the blockchain, I want to know the failure reason, so I can give a better user experience. for example if user rejects a transaction in Metamask, or ...
3
votes
2answers
2k views

MetaMask: how can I access the web3 object locally and use my own node?

I am new to Ethereum and was looking for a way to run my dApp in Chrome instead of Mist. I encountered Metamask, which would in theory fit my needs perfectly. However, from a basic web point of view,...
3
votes
2answers
279 views

Solidity stuck at mining transaction

I am trying to deploy a contract in the ethereum blockchain with solidity. When i press the create button directly under it, a message saying "Waiting for transaction to be mined..." shows up ...
3
votes
1answer
3k views

How to connect web3.js 1.0.x to Metamask

I am using web3.js 1.0.0-beta.36 to connect to the blockchain. But unfortunately this code cannot connect to Metamask, if it has been enabled. var metamask = false; if (typeof web3 !== 'undefined') {...
3
votes
3answers
2k 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 ...
3
votes
3answers
5k 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 ...
3
votes
1answer
1k views

msg.sender returns 0x0000000000000000000000000000000000000000

This contract should return the sender's address: contract SimpleExample { function getSender() constant returns (address) { return msg.sender; } } The following Javascript calls ...
3
votes
1answer
694 views

How can you tell which version of Solidity to use when deploying contracts?

I've noticed in various smart contract tutorials that different versions of Solidity are declared at the top. I would assume that you would just use the latest but I've noticed that certain contracts ...
3
votes
3answers
2k views

Invalid sender error in MetaMask with private network in Azure ethereum BaaS

I had implemented Ethereum Blockchain as a service from Microsot azure. The client i am using is from Metamask. I am not able to send ether from one wallet to other and i get an error Invalid sender . ...
3
votes
1answer
168 views

What are best practices for submitting multiple sequenced transactions with web3?

I have a dapp that, as part of one logical user operation, must issue an approve() call on a token contract followed by a call to another contract that will use the funds. Since these each require ...
3
votes
1answer
916 views

Signing Transaction wtih Metamask (not sending)

I use the following code to sign and send a transaction in my backend: var txData = { nonce: nonceHex, gasPrice: gasPriceHex, gas: gasHex, data: contractData, from: ctx....
3
votes
1answer
584 views

Past transactions inconsistent on Metamask with Ganache

I completed the truffle framework pet shop tutorial using Metamask and Ganache. The blokchain (locally hosted on port 7545) stores my "pet adoptions" which are represented as ethereum transactions. I ...
3
votes
4answers
3k views

How do I get ETH into my testnet Metamask wallet?

After switching to testnet from the dropdown in Metamask, the address used is still my Mainnet address. web3.eth.getAccounts(function(a,b) { Merchant.accounts = b; console.log("Merchant ...
3
votes
1answer
1k views

How do i transfer from main eth network to kovan test network in metamask?

I transferred Ether to the main network in Metamask. This might seem like a stupid question, but how do I transfer that Ether to the Kovan Test Network? Cheers
3
votes
2answers
481 views

Cannot send transactions with MetaMask Chrome plugin

I am trying to send an ETH transaction with the MetaMask Chrome addon, and have done so successfully in the past. However now, there is no "Send" button visible in the window, as shown in the image. I ...
3
votes
1answer
83 views

Gnosis.js will not perform createEvent request when initialized using Metamask's web3

I'm trying to create an event on the Morden testnet via the gnosis api but gnosis.createEvent will not make the necessary request. I am able to load metamask's web3 into the config object I use to ...
3
votes
2answers
286 views

Signing transactions with Ledger Nano S on Ganache with Metamask

I am trying to sign transactions and move funds on a private Ethereum Blockchain with my Ledger Nano S on MetaMask. So far I have tried to do so in Ganache and via blockchain setup via custom RPC. ...
3
votes
1answer
2k views

Metamask Failed transaction when sending out BAT tokens

I've been trying to send some BAT tokens out of my metamask wallet for quite awhile and it keeps eating up all my eth gas fees. I even increased the gwei fee to 100 and paid .50 USD as the fee. And it ...
3
votes
1answer
680 views

How to programmatically deploy a solidity contract dynamically using Metamask?

I want to deploy a contract to Ethereum using Metamask and via a custom made UI. I have a problem with async calls and Metamask. I have attempted the code below which fails. Has anyone any sample code ...
3
votes
1answer
2k views

Automatic “Confirm Transaction” Metamask

I have a webapp and when I send a transaction I need to approve this tx by clicking "Accept" in Metamask. I would like to implement an automatic non-clickable confirmation. Is it possible? How? (...
3
votes
3answers
327 views

Solidity - Smart Contract - Send eth from external account to smart contract

I read this example http://solidity.readthedocs.io/en/latest/solidity-by-example.html#simple-open-auction to learn how to let my smart contract recieve eth from external account. It seems that I need ...
3
votes
1answer
1k views

Authorization via Metamask

On my site I do not want to use email/pass authorization, but insteand I'd like to use Metamask sign functionality (it is impossible to work with site without Metamask or browser with web3). I ...
3
votes
1answer
104 views

Error when deploying contract having struct with many strings

I am using Truffle with Ganache and MetaMask. I have a struct in my contract containing many fields as string data type struct User { string firstName; string lastName ...
3
votes
2answers
1k views

How to detect if the user cancels a transaction in Metamask?

I want to detect if the user has clicked a button that will make metamask popup asking them to submit, but then rejects the transaction. I have something like the following: Contract.deployed().then(...
3
votes
1answer
661 views

React: Re-render states after MetaMask transaction

The React frontend of my dapp successfully fetches the data from the private blockchain (Ganache) and updates the states accordingly. However, when I trigger a function via onClick that updates the ...
3
votes
1answer
270 views

Enter Ether to send

Very new to EJS and trying to figure this out. Posting here after trying for few hours. I am able to send an amount of ETH to a contract but don't have an option to choose how much. Trying to find a ...
3
votes
1answer
646 views

Watched events not registering as expected

I have created a simple contract with one event. I use web3 via MetaMask to watch for these events, however I can see the transactions on Etherscan but the Javascript callback is not being fired for ...
3
votes
1answer
857 views

Is possible accept/confirm transactions with a webapp like metamask?

I have a webapp for test, in this web i can do transactions with my smart contracts fro pay and change the states of this contracts. But for confirm the transactions, i'm using metamask with a ...
3
votes
1answer
809 views

I do not see my testnet transactions and Ether

I installed MetaMask, connected to Ropsten TestNet, clicked "Buy", then clicked "Ropsten Test Faucet". There, I clicked "request 1 ether from facuet", waited several seconds, and saw a transaction id ...
3
votes
1answer
931 views

Error contract code couldn't be stored, please check your gas amount

I get an error: Error contract code couldn't be stored, please check your gas amount. I know this error has been reported several times already. Strange thing is, until this morning, my dApp just ...
3
votes
2answers
4k views

Injected Web3 is not working in Browser-Solidity

I am using Metamask for ethereum testnet. And when i deploy my contract it run in my memory. And when I select the Injected Web3. It is not selected. Now what to do?? Please help me.
3
votes
2answers
298 views

Metamask injects one account in web3, but calls contracts using another account

Building a React app, MetaMask injects web3, I get accounts[0] from getAccounts(), then pass it to my contract functions together with other parameters. I want my modifiers to lock incoming function ...
3
votes
1answer
161 views

Metamas - Infura problem. Cannot read property 'currentProvider' of undefined

I got a problem. I am using code below to connect to the eth from node.js app. Everything works perfect as long as I have installed MetaMask in my browser. I can be logged in, logged out, all good ...
3
votes
0answers
1k views

Get RPC URL / IP of Metamask's current provider

Suppose I have multiple copies of the same dapp running on different servers which do not directly communicate with each other, for testing purposes, and can manually interact with different dapp ...
3
votes
0answers
74 views

How to get v,r,s parameters from transaction receipt in remix ide?

I am trying to get v,r,s parameters of a transaction so that I can use them to verify the signature. I am not sure but I think previously remix used to give these parameters in transaction receipt. I ...
3
votes
0answers
322 views

Why can't I fetch my Metamask account address with Next.js's getInitialProps?

I'm using Next.js to implement server-side rendering in my Ethereum app, however I can't fetch my Metamask address to display it in the top-right corner of the navigation bar in my index.js file. ...
3
votes
0answers
61 views

how to use getPublicEncryptionKey from eth-sig-util in a Dapp

The metamask repo includes small collection of ethereum signing functions: https://github.com/MetaMask/eth-sig-util There is a function (not exposed in readme section) named getEncryptionPublicKey ...
3
votes
0answers
134 views

Quorum :- metamask do not support privateFor feature of quorum

i got to know that metamask do not support privateFor because of which private transaction for quorum dapp was not behaving as expected. so, I can't use metamask for my quorum DApp to switch port and ...
3
votes
0answers
895 views

NetworkError when attempting to fetch resource. Resource URL: moz-extension://2…/contentscript.js Source Map URL: ../sourcemaps/contentscript.js.map

I get the following error message in Firefox Developer Tools Console following a successful sendTransaction: "Source map error: TypeError: NetworkError when attempting to fetch resource. ...
3
votes
0answers
234 views

Where is the latest MetaMask hello world dapp example?

MetaMask recently added a new permissions check. I'd like a copy-pasteable hello world dapp that includes all best practices and can check the balance of the current user's ERC20 balance for some ...
3
votes
1answer
197 views

Remix + Metamask not fetching any values

I have a simple test contract that stores a hash and I deployed it via Remix and Metamask pragma solidity 0.4.25; contract Hash { bytes32 hash; constructor(bytes32 _hash) public { ...
3
votes
0answers
92 views

Retrieve MetaMask version in web3.js

Is there a way to determine the version of the currently installed MetaMask extension from web3.js? I can't find it by inspecting the Web3 instance.
3
votes
0answers
293 views

How to export extended (master) public key from MetaMask

I want to export extended public key for watch-only access to all ethereum addresses in the MetaMask HD wallet at once. It's very usefull for tracking of all portfolio/wallets in one place, especially ...
3
votes
0answers
2k views

Does MetaMask provide access to acount's keystore file?

I am looking for my account's keystore file. I know usually this is only available through geth. MetaMask already provides the private key, but I'm not looking for the the private key, I'm looking ...
3
votes
0answers
138 views

Not able to successfully do transactions of default MetaCoins(from Truffle) on local testnet on MetaMask

I have installed truffle and ran the default contract provided by truffle. I successfully compiled,migrate and put the default dapp on local testnet http://localhost:8080/.I am able to see the dapp ...
3
votes
2answers
981 views

How does MetaMask's TRANSACTION DATA work? How to interact with smart contracts by only using MetaMask?

I have this source code pragma solidity ^0.4.21; // Relevant part of the CaptureTheEther contract. contract CaptureTheEther { mapping (address => bytes32) public nicknameOf; function ...

1 2
3
4 5
22