Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [metamask]

Question about the Metamask chrome's plugin.

2
votes
2answers
4k 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 ...
1
vote
2answers
1k 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 ...
13
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 ...
12
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 ...
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 ...
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 ...
3
votes
2answers
107 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 ...
10
votes
6answers
17k 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 ...
2
votes
2answers
2k 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. ...
2
votes
2answers
568 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 ...
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 ...
4
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 ...
2
votes
1answer
282 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. ...
1
vote
2answers
5k 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 ...
11
votes
2answers
41k 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 ...
3
votes
1answer
283 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 ...
2
votes
3answers
3k 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 ...
1
vote
1answer
342 views

Metamask address not detected on remix-ide

My Metamask address wont show up on remix-ide either run on localhost and remix.ethereum.org I also have tried it on brave and chrome, none of them show the address. please help me :(
1
vote
1answer
309 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). ...
0
votes
1answer
372 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 ...
0
votes
1answer
1k 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 ...
0
votes
1answer
611 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 ...
0
votes
1answer
2k 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/...
14
votes
4answers
71k 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 ...
12
votes
3answers
9k 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 ...
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
2answers
5k 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 ...
12
votes
7answers
13k 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){...
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
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
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" ...
4
votes
4answers
448 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
2k 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 ...
3
votes
1answer
825 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 ...
2
votes
2answers
5k 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 ...
2
votes
1answer
9k views

what is a private key in an ethereum wallet like metamask? and how do I find it?

my question is about what a private key is? and where would I find it on an ewallet like metamask?
11
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 ...
8
votes
2answers
4k 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 ...
5
votes
2answers
4k 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 ...
4
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 ...
3
votes
1answer
3k views

Error: Error: [ethjs-rpc] rpc error with payload {“id”:6223335088050,“jsonrpc”:“2.0”,“params”:

I have deployed a smart contract in Remix IDE using MetaMask and test rpc. I got the below error: Error: Error: [ethjs-rpc] rpc error with payload {"id":6223335088050,"jsonrpc":"2.0","params":["...
3
votes
1answer
5k 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 ...
1
vote
1answer
489 views

return msg.sender.balance not acting as expected

I'm using MetaMask to connect to Rinkeby and I'm deploying the contracts via Remix. When I call the function returnsenderbalance it returns ...
1
vote
1answer
680 views

JSONRPC error on sendSignedTransaction

I run ganache, truffle and metmask. If I run the code below I get an error on the this.web3.eth.sendSignedTransaction() function: EDIT: changed my code to the following.. Error remained the same ...
1
vote
1answer
128 views

What is the general cause for out-of-gas with MetaMask?

This seems like a trivial question, but I can't find an answer. When you try to send a transaction with MetaMask, it calculates the amount of gas needed. Most of the time if there's an error in your ...
0
votes
2answers
2k 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 ...
0
votes
1answer
667 views

Waiting for transaction to be mined

When calling any method on a contract https://testnet.etherscan.io/address/0xabc7a3a72af1f94ff6029ef01bc0f7c49e2ed637 using Browser Solidity https://ethereum.github.io/browser-solidity/ on Ropsten ...
0
votes
1answer
173 views

Not able to see my token on metamask

This is my complete contract code : https://gist.github.com/cmaliwal/31a80d36b8d873a3dca37b2b18188164 When I deployed my contract on ropsten test network using remix and metamask contract deployed ...
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
942 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)?