Questions tagged [metamask]

Question about the Metamask chrome's plugin.

2
votes
1answer
96 views

Generating passPhrase

Does anyone has idea how metamask generates the passPhrase. I was looking in github for related files but unable to figure out how exactly the things are done.
2
votes
1answer
59 views

generate unique mnemonic with password(only)

I am trying to create an exodus like wallet, where for the first time user just need to enter the password to register on wallet. The method I thought, running PBKDF2 on the password with empty salt ...
0
votes
1answer
74 views

Invalid JSON Response while connecting DApp, Metamask and Backend

I am getting some error(picture below) while trying to connect DApp with a backend. One day ago, everything worked fine, now I got an error: "basic auth failure". Contracts are deployed on Ropsten ...
1
vote
0answers
30 views

Unable to retrieve ethereum address from the signed data

I used the web3.eth.accounts.recover method to retrieve the ethereum address but I am getting an error. Here is the code: let v = '0x' + signed_nonce.slice(130,134); let r = signed_nonce.slice(0,...
0
votes
1answer
148 views

Getting error while buying test ether from https://faucet.metamask.io/

I just tried to buy a test ether from https://faucet.metamask.io but the faucet address which is supposed to give 1 ether doesn't have enough balance. Snapshot of the faucet address And when i ...
0
votes
1answer
95 views

Import geth account into metamask

How do I import a keystore file generated in geth into Metamask? Is there a simple way for me to convert the ciphertext into a private key, can I decrypt it with my passphrase somehow?
0
votes
1answer
42 views

Private chain, metamask, accounts

I am wondering how a private chain can communicate through Metamask. My biggest concern is the HttpProvider and accounts. Aren't accounts accessed through the web3 instance? Since accounts aren't ...
0
votes
0answers
129 views

How to use latest web3 version from metamask?

Im new to web3 and Im using following code to connect my UI to web3. // Modern dapp browsers... if (window.ethereum) { window.web3 = new Web3(ethereum); try { // ...
0
votes
2answers
59 views

Uncaught Error: Invalid number of arguments to Solidity function

function TriggerContract() { var account = getAccounts(); var test = web3.eth.defaultAccount; console.log(account); var q = document.getElementById("Quantity").value; var ...
1
vote
1answer
121 views

web3.eth.getAccounts() never resolves

I am attempting to connect the frontend of an application to a private chain through Metamask. As no web3 is injected, the following code is run const getWeb3 = () => ... ... ... ... const ...
2
votes
1answer
259 views

RPC Error with Payload when using the Ropsten Test Network Faucet with MetaMask

I'm trying to obtain some test ether from the Ropsten Test Network with Metamask, but I keep on getting an "RPC Error with Payload", whenever I try to click on "request 1 ether from faucet". I ...
0
votes
1answer
870 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 ...
0
votes
0answers
63 views

Web3.eth.sign() not working properly. Not sure if this is a MetaMask or Web3 problem

window.ethereum.enable() is working properly, the window pops up from MetaMask and I allow access like normal. I am also able to send transactions between two of my accounts on the test network ...
2
votes
0answers
36 views

Automatic sign of Transaction

Is there any secure solution(without exposing a Private key of the user) to automatically sign transactions, which are requested from a DApp, so that user doesn't have to sign each of them manually? I ...
0
votes
0answers
69 views

Contract deployment not working anymore

So I have this following code that was working a couple of weeks ago and today I decided to run a few tests and it just doesn't do its job anymore. function approve(rid, guest_wallet, ctr_key, dti, ...
2
votes
0answers
36 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 ...
2
votes
2answers
110 views

Offchain encryption in Ethereum dapp

Im wrting a dapp which holds / manages sensitive data which might need to be encrypted and decrypted and push again into chain. I know it is not safe to encrypt data in smart contract,which is why Im ...
0
votes
1answer
21 views

MetaMask repeated errors with LocalHost

Every time I try to send ETH to my locally deployed contract I get errors like this: -While the error message says "out of gas" I know that can't be true since all my accounts have like 100ETH in ...
0
votes
0answers
273 views

Web3 is injecting but stilling getting an invalid provider error

I'm injecting web3 with MetaMask, and everything works, but when I make a production build, I notice that it injects web3 alright, but when I try to call a web3 function, it throws `Please provide an ...
0
votes
0answers
74 views

MetaMask privacy mode warning keeps showing

I have added "privacy mode" code as shown here - https://bit.ly/2QQHXvF But the warning keeps showing. How to remove it?
0
votes
0answers
115 views

How to call contract method from specific address and private key without Metamask check

Good morning, I need to known how call contract method in javascript from specific address(and relative private key) without the check of Metamask. I explain better. This is an example of js code, ...
0
votes
1answer
299 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....
1
vote
2answers
461 views

DOMException: Failed to execute 'postMessage' on 'Window' error when using Metamask and truffle Ganache

I faced Uncaught (in promise) DOMException error like below when I was developing Nuxt web app with Metamask(chrome) and truffle Ganache. Uncaught (in promise) DOMException: Failed to execute '...
2
votes
0answers
139 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. ...
1
vote
1answer
380 views

How to use sendTransaction to send ERC20 tokens through Metamask?

I have a custom ERC20 token and I want to enable metamask support. By this I mean: 1) The user clicks a "Pay using metamask" button 2) The Metamask payment window pops up and with "Pay 100 ABC ...
3
votes
2answers
105 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 ...
1
vote
1answer
358 views

Metamask transaction confirmed but “Internal JSON RPC error”

I am using getWeb3() to instantiate a contract and make calls with, the transaction says that is confirmed but when I open up developer tools there is the following error MetaMask - RPC Error: ...
0
votes
0answers
30 views

Got Gas Estimation failed error every time, at the time of execution of MultiSig wallet contract. Specifically while executing sendMultiSig() function

function sendMultiSig( address toAddress, uint value, bytes data, uint expireTime, uint sequenceId, bytes signature ) public onlySigner { // Verify the other signer var operationHash ...
1
vote
0answers
15 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 ...
1
vote
1answer
40 views

Calling a write function of a contract will deploy a new contract

I'm calling a function that will write information to contract, and MetaMask will list it as a 'Contract Deployment'. It is on the Rinkeby testnet. But if I run it locally using Truffle/Ganache, it ...
0
votes
1answer
150 views

Intergrating metamask in DAPP

I am trying to integrate MetaMask version 5.3.1 in my Dapp. I am unable to call web3 functions like getBalance with the given instance, also I am unable to post a transaction. Is there any ...
0
votes
0answers
35 views

I think Metamask gas fee showing has an error. Please have a look!

1) This is the 5 Gwei gas price, and the Metamask is showing it well. 2) This is also 5 Gwei gas price, but the Metamask is showing much expensive ETH on it. So, when the second Metamask window pops ...
0
votes
1answer
107 views

Tokens are not visible in meta mask

I have deployed my ERC223Token contract in my private blockchain. I have transferred some tokens to my wallet It is showing tokens in my mist wallet and remix as well, but it is not showing tokens in ...
1
vote
1answer
25 views

looking for ethereum account easy management process

Suppose I want users to answer surveys and that each response are hashed and sent to ethereum. My issue is the user experience of creating an account and login without metamask which is not user ...
0
votes
1answer
45 views

Execute smart contract only if the wallet contains some tokens [closed]

i created an erc20 token and i'm trying to create a smart contract that stores some informations in a blockchain just if the wallet contain my tokens. How can i do this? Have i to work on the token ...
0
votes
1answer
61 views

Connecting Metamask to geth

In here it's said we need to run below command line to let Metamask connect to geth: geth --rpc --rpccorsdomain="chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn" I'm running a private ...
0
votes
0answers
80 views

Sign a transaction locally and send it

I'm using Infura as my web3 provider, and have MetaMask installed to connect to the blockchain. I'm trying to send a transaction, but have learned that Infura is read-only, and doesn't support the ...
1
vote
1answer
33 views

Simple but important question: How to get the value of contract's state when using Metamask? [closed]

I'm designing an HTML file (or a user interface: UI) for my smart contract. let's assume that my contract has a state as follows: address public owner;// it is set to "...
0
votes
0answers
57 views

Why is not Metamask invoked in my user interface?

I'm running a private Ethereum blockchain on my computer. I've installed Metamask on my chrome as well. I can create an account on metamask, and then interact with my smart contract deployed on my ...
0
votes
1answer
388 views

Contract deployment using web3.eth.contract(abi) with constructor arguments

I'm trying to deploy the following smart contract: pragma solidity ^0.5.00; contract TestContract { address public owner; string public word; constructor(string memory _word) public{ ...
0
votes
1answer
29 views

approve() and sendFrom()

Im trying to run the code below in a smart contract to use as an escrow. calling approve first and calling send from later does nothing to get the tokens into the smart contract, what am I missing ...
0
votes
0answers
48 views

Balance from ethereum accounts on geth disappears

I have geth private network with 3 accounts A, B and C. each account has 100, 200 and 300 ether balance I connected to this network from Metamask and Transferred the balance of 50 eth from account A ...
0
votes
1answer
88 views

Transaction fails during smart contract deployment from Remix IDE, while i confirm the transaction from MetaMask

I am able to connect to private ethereum network and able to do the transactions from Metamask, but while deployment of smart contract from remix IDE, it launches MetaMask and i get below error while ...
1
vote
0answers
62 views

Metamask not loading transaction fee on Ropsten

I'm trying to send test Ether to a contract on Ropsten, but Metamask won't load the gas options on the send transaction screen. It displays a "Loading" text and never renders the Fastest/Fast/Slow ...
0
votes
1answer
36 views

Oraclize a restfullAPI using a specific number represented by the variable z for a custom token (remix)

is it possible to pass an integer (in this case 141) represented by the variable z from a certain restfullAPI into the custom token function: balances[msg.sender]? So in the end I want to have my own ...
0
votes
1answer
115 views

How to confirm transaction as a receiver in metamask?

My question is simple If I want to send some ether to someone in remix like contract Sender { function send(address _receiver) payable { _receiver.send(msg.value); } } Metamask asks me as a ...
0
votes
0answers
17 views

Meatamask and Ganche-cli generating different signs for the same hash

I'm have created ERC865 token so that users can send tokens without having ether. I followed 1 and 2. My contract recovering the correct address after generating the sign using Metamask customized ...
1
vote
1answer
223 views

How do you set an icon for Metamask “DApp Connect” popup prompt?

For example, here, how would someone get a logo to appear instead of the default "A" logo?
0
votes
1answer
36 views

Private ethereum network account related query

Please help with below queries: how to reset the paraphrase for an account on private ethereum network Is there a way to delete an account on private ethereum network How to enable the etherscan url ...
0
votes
0answers
27 views

Metamask to Private ethereum communication issue [duplicate]

When i connect to my private ethereum network using the 'Custom RPC' of the metamask, it is getting connected from the MetaMask. FYI, i am connecting from outside the network of my server, and all ...