Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
0
votes
1answer
7 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
17 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
24 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
12 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
24 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
27 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
37 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
0answers
18 views

How can I make function calls in UI based on these functions of my smart Contract [closed]

I want to call these functions as soon as an address is logged in to my UI Whats the best way to achieve this with metamask, web3 js?
0
votes
1answer
29 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
34 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')....
-1
votes
0answers
21 views

How to retrieve totalBalance of an ERC20 token contract? [closed]

Im using this to get the toalbalance of "AGI" in the contract https://ropsten.etherscan.io/address/0xe462cbee0cd420f6c199b0194b1d8d93fb5e7720#code window.addEventListener('load', async() => { // ...
0
votes
0answers
14 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
30 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); } ...
-3
votes
2answers
59 views

How to get contract Balance of ERC20 TOken? [closed]

I have my smart contract here https://ropsten.etherscan.io/address/0xE462CbEE0cd420f6c199B0194B1D8D93Fb5e7720#writeContract I want to display the total token Balance of AGI inside my contract. My ...
0
votes
1answer
16 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
25 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
43 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
31 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
25 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
33 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
95 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
36 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
48 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
191 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
21 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
17 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
54 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
28 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
28 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
36 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
60 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
20 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
24 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
206 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
20 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
83 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
34 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
27 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
34 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
31 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
vote
1answer
88 views

Pass arrays to solidity's function from truffle

I am getting ALERT: Transaction Error. Exception thrown in contract code in metamask when calling addBet function from truffle. The function works without any errors when called from remix. The ...
2
votes
1answer
148 views

Sending an ethereum transaction with ethers.js and metamask

I've tried two different ways, and have looked through ethers.js documentation, and I just haven't been able to figure it out. Does anyone have any suggestions? This is in a browser. trans(web3,...
0
votes
1answer
12 views

smart contract issue [duplicate]

hi I accidentally sent it eth to a eth smart contract from my exodus wallet instead of sending it to my metal mask and sending it from there is there any way to retrieve and withdraw this money back ...
0
votes
1answer
46 views

How to execute contract methods without metamask confirmations?

I would like to know if there is a way to execute my contract methods without requiring the confirmation of metamask. I found something web3.eth.sendSignedTransaction but can't seem to figure out ...
0
votes
3answers
42 views

safe way to allow users to deposit ETH to an address

I'm new to this and I want to simply allow users to deposit ETH to an address (not a contract). I was wondering what is a safe way to do this? for example using the code below on client side i can ...
0
votes
1answer
40 views

Metamask TestRPC shows 0 Ether while connecting to Ganache- CLI

I've gone through various Q/A(s) of the problem of ganache-cli and metamask not linking but after trying all the solutions, still doesn't work for me. As soon as I type ganache-cli in windows cmd ...
0
votes
1answer
54 views

How to choose wallet with web3

I have MEW and Metamask installed. When I am trying to send a transaction using: web3.eth.sendTransaction() It always uses Metamask. May I know how can I specify I want to use MEW instead?
0
votes
1answer
46 views

Using Metamask with Ropsten and Web3.py

I have used Ganache to compile and deploy my contract successfully. Now I would like to do the same on the Ropsten network using my Metamask account. I don't want the Metamask plugin to pop up every ...
0
votes
1answer
59 views

In MetaMask, I have my seed phrase but I didn't export my private keys. How do I recover my wallet?

So, I've been using MetaMask to try app.compound.finance and everything went well. I've deposited a small sum and connected the app to the wallet. But a few weeks later I decided to deleted the chrome ...