Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
0
votes
1answer
14 views

How do I prompt metamask to open?

I'm using react and javascript. For whatever reason, I've tried a few methods and it doesn't seem to be opening metamask. await window.ethereum.enable(); and window.web3 = new Web3(web3....
0
votes
0answers
7 views

How to update Data on UI

I have a UI thats connected to metamask The UI updates all the Info now on address change and when metamask is enabled How can i make my UI update every second? so it always shows accurate stats on ...
0
votes
1answer
20 views

Does metamask uses web3?

I was curious if metamask uses web3 for communication with eth node ? I tried google for it; showed bunch of other results but didn't precisely answered my question. Indepth answer on how metamask ...
0
votes
1answer
18 views

Help on recovering wallet through brute force or from extension data (Bounty on recovery)

I know 10 of 64 characters (hex) of my ethereum private key unencrypted and their positions. I also know the corresponding wallet address. Is a brute-force possible? What I am thinking of is ...
1
vote
1answer
22 views

ERC20 coin transaction not successful

I called the mint function on a default coin to send some of my new coin to my METAMASK account but it looks like nothing was received. I can't tell what specifically could have gone wrong, so here's ...
1
vote
1answer
27 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 ...
0
votes
1answer
32 views

How to use erc20 transfer in another contract in remix ethereum using metamask?

I read a lot of documentation in here and another web pages, I have a question and I so tried to solved but nothing works for me. I am using this example. It works fine with truffle, but I don't ...
0
votes
2answers
22 views

How does metamask know a contract is for ropsten or for main network?

Im using this code to detect for metamask. Now im using ropsten but i want to know how does metamsk know that my contract only works with ropsten? window.addEventListener('load', async () => { ...
1
vote
1answer
26 views

how to build Dapp for Android using react-native

I have a ethereum Dapp for web application and have metamask extension installed in my chrome browser to make transactions. Now i want the same application to be developed in android using react-...
1
vote
2answers
24 views

My ether was automatically sent to different address without my permission

My ethereum account is 0xfAd956B56be1298ee8ec1950cc305B46268d926f (generated by metamask) and the moment friend of mine sent me an ether, it was automatically directed to another account. This is the ...
0
votes
1answer
25 views

How to convert to 8 digits in etherum

I have a token that has 8 digits, so the output is 4762575931 instead of 47.62575.. How can i change this so this works on UI and for metamask input? I know there is the function to wei but this is ...
0
votes
1answer
31 views

How can I turn this into a human readable output? [closed]

I have this buy function but the output gives me a transaction Nr. or whatever this is async function buy() { var a = document.getElementById("amount").value; var accounts= await web3.eth....
0
votes
1answer
9 views

how to send parameters to smart contract while deploying using metamask

I am trying to deploy a smart contract using BrowserSolc and Metamask. and deployed successfully when the contract doesn't have constructor parameters but now I am trying to deploy with the ...
0
votes
0answers
19 views

Unfulfilled Promise From A Metamask Transaction

I'm having a problem with my JS code pausing on the let result line. Metamask prompts me to approve the transaction initiated in the line (which I do), but then doesn't proceed any further. As the ...
0
votes
0answers
26 views

Not able to call the solidity function through App.js? Anyone know how to call a solidity function?

I'm trying to call a Solidity function from App.js, but I'm unsuccessful even after a number of tries. Its a very simple function betOnTeam(). Inside this function I just want to check condition and ...
0
votes
0answers
24 views

MetaMask - RPC Error: JsonRpcEngine: Response has no error or result for request

I am running a Truffle react box and encounter the following error when I try to confirm a transaction via Metamask: MetaMask - RPC Error: JsonRpcEngine: Response has no error or result for request: ...
0
votes
1answer
29 views

getBalance of shows the wrong balance

I have this code to show the erc20 token balance of an account var tokenAddress = '0xb97E9bBB6fd49865709d3F1576e8506ad640a13B'; var walletAddress = '0x62f28320f688A7A4e0021c55d7ffD1acd770A133'; ...
0
votes
1answer
38 views

cant call contract instances on my UI

I want to be able to display the read functions of my contract on a UI. These are the calls I make to my UI Those functions work perfectly in the console using node but when i try to call them from ...
0
votes
0answers
38 views

Whas this Error Code and how can i get rid of it?

Im using this code to query the balance of the logged-in address // get sellPrice function sellPrice() { web3.eth.getAccounts(function (error, accounts) { contract.sellPrice(address, ...
0
votes
1answer
32 views

How can I access elements in Object?

I have my contract object and this has attributes like contract.balanceOf contract.myDividends contract.totalSupply contract.myTokens I get an error this._eth.call is not a function when i try to ...
0
votes
1answer
41 views

How to make Information automatically update when account is changed?

To get the account address of the contract that is currently logged in with Metamask I use this web3.eth.getAccounts(function(error, accounts) { document.getElementById('account-address')....
0
votes
0answers
19 views

How to disbale metamask privacy mode so i can deploy contract from remix?

I am trying to deploy a contract in remix but I'm not getting any popup from metamask i believe this is due to privacy mode, however i can see no way to turn it off in the settings. I am using brave ...
0
votes
1answer
48 views

How can I get the current user account selected in MetaMask with Web3 js?

I'm using the next function to get the first account from user's MetaMask: var account = web3.eth.getAccounts((error,result) => { if (error) { console.log(error); } ...
0
votes
1answer
18 views

Error when connecting to web3 and metamask

I use this code to connect ui with smart contract window.addEventListener('load', () => { // Wait for loading completion to avoid race conditions with web3 injection timing. if (...
1
vote
0answers
32 views

Transaction sent from wrong Ledger account in Metamask

I use two ETH accounts on my Ledger - account [1] and [2]. When submitting a contract or transfering ETH on the mainnet from account [2] via Metamask it still sends from [1]. To Reproduce Click on '...
0
votes
1answer
47 views

how can i get this metamask thingy when user is logged in?

Im talking about how i can implement this metamask navbar icon? I would like to make it look like this when people are logged in with metamask
0
votes
1answer
40 views

web3.js 0.20.7 & Metamask: contract.setProvider(web3.givenProvider) is not a function

I am interacting with a contract on the Rinkeby testnet using web3.js (version 0.20.7) with Metamask and the chrome console. I setup a contract object called mycontract for a given ABI and address. ...
0
votes
0answers
35 views

Metamask and Ether.js API

I am trying to use the ether.js API with Metamask (with Ganache GUI i.e. localhost 7545) via the Chrome console. I am getting an error saying that ethers is not defined. > let currentProvider = ...
0
votes
1answer
59 views

Metamask (Chrome extension) web3.js console: ETH transaction issue (synchronous methods) + web3.version

I am playing around with Metamask and the web3.js API using the Google Chrome console. However, I have two issues: 1) I am trying to send a simple transaction using Ganache GUI (localhost 7545) and I ...
1
vote
1answer
119 views

How Can You Find the Ethereum Provider on Web3 Browsers Other Than MetaMask?

MetaMask provides the following way currently to find a provider for their upcoming 2020 breaking change: // Running on the page, in the browser // This API will go live in Q1 2020 // It will be the ...
0
votes
1answer
45 views

Can I retrieve data from smart contract to my local webpage without using metamask?

I am creating a DApp where I want to show the public variable's information from the contract. I want my users who don't have metamask to see this information also. Is there a way I can do that? If ...
1
vote
2answers
59 views

Reinstalled MetaMask, account lost?

I had 3 accounts under my MetaMask Chrome extension. One of them had some small deposit. I have reinstalled the extension and used seed phrase to get access again. However, I can see only one account (...
1
vote
1answer
192 views

MetaMask verification screen doesn't show amount or token when I use 'approveAndCall' to transfer tokens to a contract

When I use 'approveAndCall' to transfer tokens to a contract, the MetaMask verification screen doesn't show the amount, or the token name. let contract = new web3.eth.Contract(gsERC20abi, '...
0
votes
1answer
22 views

Any issues for web3 on digital ocean?

My dapp which is currently testing on ropsten works perfectly when i run the frontend from local but dosent return addresses when i run on a digital ocean server. it is successfully connected to ...
1
vote
1answer
25 views

private key vs seed

I made an extra account in Metamask for my GF, I kept Account 1 for myself and I gave only the private key of Account 2 to my GF. I kept the seed words only to myself. Since then, she has dumped me ...
1
vote
1answer
59 views

Transfer WETH from myetherwallet to metamask wallet

I converted some of my ETH to WETH already, on my hardware wallet. H/w wallet was conected to myetherwallet, and I can see my WETH there under tokens panel. I also created a metamask wallet and I am ...
1
vote
1answer
30 views

How to guarantee the order of transactions in MetaMask?

I create my transactions with ethers.js and push them into an array like this: const promises = []; promises.push(createTokenApprovalTx()); promises.push(createFooTx()); It's important that the ...
0
votes
0answers
12 views

msg.sender is different from chosen account in Metamask when checking from constructor

I am trying to do a comparison of msg.sender and another address inside a contract constructor. The problem is that in the constructor, msg.sender is a different address from the one I chose in ...
0
votes
1answer
38 views

How to check if BIP39 seed phrase is valid?

I am producing a game for a hackaton community to expose more people to Ethereum and blockchain. After hacking something my hackers will get many different seed phrases (similar to one generated by ...
1
vote
0answers
46 views

Help me fix Error: No “from” address specified in neither the given options, nor the default options. I'm use MetaMask

file web3.js import Web3 from 'web3'; const web3 = new Web3(window.web3.currentProvider); export default web3; file image.js import web3 from './web3'; const address = '...
0
votes
1answer
82 views

RPC error when interacting with contract using Ganache GUI, but it works fine when using Ganache CLI

I have a truffle project, if I migrate it onto ganache-cli and then interact with my contract (via Metamask) it works great. But if I try and do the exact same thing using ganahe-gui the contract ...
0
votes
1answer
23 views

Deploy smart contract on Ropsten, Kovan

When I deploy my truffle smart contract on test networks like Ropsten and Kovan, can I interact with it using multiple PCs at once simultaneously? And will the data updated from one PC be visible on ...
1
vote
0answers
25 views

How to recieve notification of incoming transaction in metamask mobile in real time

I have a erc-20 token in the ropsten testnet and i am using my metamask for admin my token, and i just want to recieve a notification via sms, to take screenshot, whatsapp or another way frendly user, ...
1
vote
1answer
260 views

Error while buying test ether from https://faucet.metamask.io/ - Mastering Ethereum

I am using Ethereum wallet MetaMask chrome extension and I am connected to Ropsten test network. I am following the instructions from the book Mastering Ethereum: Building Smart Contracts and DApps ...
0
votes
0answers
24 views

DAPP Send Button should show ENS in Metamask

My DAPP has a "Buy" Button. On clicking this button, after some checks, Metamask (if that is the wallet that the user is using) will open up and show a transaction of sending XX ETH from his wallet to ...
0
votes
1answer
126 views

MetaMask - RPC Error: Error: [ethjs-rpc] rpc error with payload

I have created a DApp. In all my functions where I have used send() function of web3, I am facing above error. I have a function in which I used call() and it worked fine but all send() using ...
2
votes
1answer
47 views

Total metamask balance

I am curious how to get the total current balance of my metamask wallet with as many "accounts" inside it as it bears in the moment? As I can understand metamask is the HD wallet and all my addresses ...
0
votes
0answers
32 views

How can MetaMask alert about transaction errors before they are caused?

The MetaMask extension has this feature to warn about transaction errors before a transaction is being made: ALERT: Transaction Error. Exception thrown in contract code. How is this done? A dry ...
0
votes
1answer
42 views

hdwallet-provider set multiple account addresses when deploy contract

I'm using for deploying contracts hdwallet-provider, but I have issue on client side to get multiple accounts using web3.eth.getAccounts() call. I know this is like duplicate question and truffle ...
0
votes
1answer
32 views

Transaction values exchanged even if transaction rejected, and double values exchanged if transaction confirmed

I'm trying to perform a function that exchanges one token for another, but I'm getting a very strange bug. If I call the function in web3, I get the standard metamask popup asking whether to confirm ...

1 2 3 4 5 18