Questions tagged [metamask]

Question about the Metamask chrome's plugin.

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

What should gas prices be for sending out tokens?

I constantly get failed transactions when sending out tokens like USDT using metamask. I have my gwei set at 10 and the gas limit at 21000. I even tried gas limit set to 51000 and it still fails. ...
2
votes
0answers
29 views

How shoud I properly initialize DApp and get account address?

I am writing DApp in react, and basically I want to initialize web3, unlock account, and display it. Having web3 in my package.json In the onload I've tried to go following: let Web3 = require('web3')...
0
votes
0answers
24 views

What's the best way to detect an incoming transaction with websockets and update balance?

What's the best way to detect an incoming transaction with web sockets and update balance? Should it be done with polling? Like for example - how would a web wallet do it? It's sitting idle - is it ...
0
votes
0answers
12 views

Dapp browser/extension compatibility

Warning: open-ended question coming... I’ve been developing a dapp using MetaMask. I understand that web3 is the critical cog that provides a degree of universality when having to deal with ...
0
votes
0answers
42 views

Web3 provider in Unity

I working with projects on the blockchain. Making web apps which communicating with smart contracts, giving tokens or etc. For web apps, I need to get users wallet (Ethereum). I using these software/...
0
votes
1answer
28 views

I cant deploy contract on geth

I am trying to deploy my contract using geth on my private network. When i use truffle mirate --reset shows that is has been deployed but the metamask gives me an error( ALERT: Transaction Error. ...
2
votes
2answers
71 views

Gas required exceeds allowance when deploying a contract

I try to deploy a contract using truffle to my private ethereum network using geth and i get this error gas required exceeds allowance (6721975) or always failing transaction. I have create an ...
1
vote
0answers
26 views

Gas usage difference between Remix and Ganache/public networks

I'm trying to integrate a contract into a front end with MetaMask and getting different gas amounts depending on the network and compile options I use. Remix ("Enable Optimization" checked): 90,410 ...
0
votes
1answer
90 views

Transaction Error. Exception thrown in contract code. (MetaMask)

When I use Ganache it runs with no problem and MetaMask too. When I run my contract in my private Ethereum network (Geth). When I use a function from my contract the MetaMask gives me this error (...
2
votes
0answers
37 views

Not able to connect to private Ethereum Network with metamask

I am running a private Ethereum Network in a cloud VM. I started the node with these arguments: geth --datadir test --networkid 123 --rpc --rpccorsdomain "*" --rpcport 30308 --rpcaddr "0.0.0....
0
votes
0answers
44 views

ALERT: Transaction Error. Exception thrown in contract code

I get the this alert from metamask . I have create a dapp and i have deployed the contract with truffle on my private ethereum (geth)network and i have connect an account. I have put in the truffle-...
0
votes
0answers
75 views

Why is my metamask transaction failing even if I set a high gas limit?

Below is a failed transaction. i set the gas limit to double of what it normally is, but it still failed. How can one figure out the correct gas limit, if the auto settings don't even work. Why does ...
1
vote
1answer
20 views

Where can one get token fee calculations instead of it keep eating up my ETH for gas for guessing the gas limit?

This is kind of ridiculous, every time I try to send out tokens to another address from metamask, it fails. I doubled my GAS limit from 20K to 70K and it still fails. Where can one even find the ...
0
votes
1answer
28 views

What is the difference between web3 and window.web3

I'm very used to using web3 = new Web3(web3.currentProvider) and I saw here that MetaMask sample code is using window.web3 = new Web3(web3.currentProvider) What's the difference between using and not ...
0
votes
2answers
95 views

Can't get MetaMask wallet address on Firefox but Chrome is fine

I'm trying to get the current wallet address of MetaMask on my Firefox 67 but I keep getting nothing (empty array), except it says my MetMask is locked. But on Chrome 74 it works. FYI, my MetaMask is ...
0
votes
0answers
67 views

Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'Window'

let web3Provider = web3.currentProvider; let ethersProvider = new ethers.providers.Web3Provider(web3Provider); Using the web3 current provider for creating the ethers provider causes a uncaught DOM ...
1
vote
1answer
41 views

How to export mnemonics for a specific account in MetaMask

How can I get the mnemonics from a specific account in Metamask? I found the reveal seed words in the settings-dialog, but this seems to be something global. Instead of this I want to export the 12 ...
0
votes
1answer
113 views

MetaMask - RPC Error: Error: WalletMiddleware - Invalid “from” address

I'm trying to create a simple Dapp (via tutorial) which would allow me to send Ether from sender to receiver (via a contract with an address that automatically approves the transaction). The truffle ...
0
votes
0answers
33 views

Metamask transactions keep stack at the txpool of a Quorum Private Network

System information Geth version: 1.7.2-stable-0905eda4 OS & Version: Ubuntu 16.04 Branch, Commit Hash or Release: HEAD detached at v2.2.1 Actual behaviour and Steps to reproduce the behaviour ...
1
vote
1answer
51 views

where does the metamask fits in Dapps architecture?

i am learning building Dapps. And i got to know to know about metamask. I've read about metamask is an ethereum wallet which we can use to sign Tx's without running a full node and inject web3 to ...
-2
votes
2answers
26 views

Can't seem to find MetaMask

I've opened Chrome extension and downloaded the Brave search engine. However, even though I've selected to show MetaMask in my tool bar it's not showing anywhere and I don't know how to access it. So, ...
0
votes
0answers
44 views

Why this error occurring when i running my dapp?

I create a dapp using Solidity,Web3Js,Javascript and Html with metamask i always getting this error when i am trying to submit my transition i am getting this error at c (inpage.js:1) at ...
0
votes
1answer
78 views

How to recover/find metamask wallet file

So I had foolishly kept my metamask passphrase only on StickyNotes. This meant when my computer crashed, I had to reinstall all my programs, but all my files remained. For some reason my stickynotes ...
1
vote
1answer
81 views

How to measure size of stored data in the blockchain?

I know that remix can measure the execution cost and transaction cost. I want to measure the storage overhead ( Size of data in Bytes) on creating a contract on the etherum blockchain or calling a ...
2
votes
3answers
176 views

Balance may be outdated, Metamask

Metamask is showing an asterisk near the account balance, and the message "Balance may be outdated". Indeed the balance is outdated. This is true an all networks (Main, Ropsten, etc.) and different ...
0
votes
2answers
43 views

how to write backend for contract if you use infura ropsten metamask and remix

i'm using metamask with ropsten. deployed my contract on ropsten using remix. for the backend i used infura to create instance of web3. ew Web3(new Web3.providers.HttpProvider('https://ropsten.infura....
0
votes
0answers
63 views

Expressjs backend (truffle box) with metamask

I use truffle to unbox the express-js box (https://truffleframework.com/boxes/express-box). The code loads the web3 instance in server side which connects directly to ganache. Now I want to be able to ...
0
votes
0answers
59 views

Is it possible to access MetaMask functionality for integration testing?

I'd like to be able to access MetaMask to test potential user actions. I doubt it's possible to directly simulate sending transactions, but what I hope I can at least confirm is that transactions are ...
0
votes
2answers
198 views

Uncaught TypeError: e is not a function from getAccounts() + web3 1.0.0-beta.37 + truffle + React Dapp

I am creating my first Dapp by using web3 1.0.0-beta.37 and trufflfe While getting the accounts in app.js by using ganache-CLI and Metamask, I am getting following error. Uncaught TypeError: e is ...
0
votes
0answers
13 views

isListening returns an error when false is expected

I'm attempting to verify the status of the network provided by metamask with web3.js by using web3.eth.net.isListening().then(console.log) The method works when I'm connected. However, console ...
1
vote
0answers
52 views

My wallet got hacked - I do not know what do to

Someone hacked my eth wallet and when ever I deposit ethereum to the wallet my deposited ethereum is sent directly to his wallet automatically.. Pls how can I stop this issue because my wallet has my ...
0
votes
1answer
22 views

How can I pass struct as function parameter with ABIEncoderV2 from outside?

have this code: struct UserScore { address user; uint score; uint time; } function getWithStruct(UserScore _user) public view returns (address, uint, uint) { return (_user.user, _user....
0
votes
0answers
66 views

EOS in my Metamask

I am trying to transfer my EOS to Binance but there is not Memo field on Metamask and its also not excepting the account name. Can anyone help me with this? Thanks CSD
0
votes
1answer
50 views

Web3.js to decode encrypted data using my private key

It's very similar to this question: How to decrypt an encrypted message using metamask? who was put one year ago. As user, I would like to store data safely on the blockchain, data that I want to ...
0
votes
1answer
28 views

How to view or transfer initial ethereum smart contract balance?

I created a new smart contract token with initial supply and deployed it via MetaMask. Then I added this token into MetaMask but token balance is Zero. Now, My question is when we create a new ...
0
votes
0answers
30 views

How to handle estimate gas cost error?

I am programming a button for a transaction which shall only appear if the transaction is possible. Therefore, I am using the following code contract.methods.function(parameters) .estimateGas({...},...
0
votes
0answers
252 views

Web3 Cannot read property 'apply' of undefined

I'm new to dapp and trying to follow iwaldman to build an ipfs-image-dapp. Here is the repo: https://github.com/iwaldman/ipfs-image-dapp. But running yarn start gives the error Cannot read property '...
1
vote
1answer
55 views

No web3 instance injected following the dApp University Tutorials

I've been following Dapp University's videos on how to make IPFS uploads with Euthereum Smart contracts, and after I manage to 'npm run start' in the command line it opens up the HTML, but it always ...
0
votes
1answer
36 views

What is difference between geth, myEtherWallet and etherscan

I am new to blockchain technology and learning it, there are many terms of blockchain which confused me like geth client, meta mask, etherscan and myEtherWaller. I used geth it's a ethereum client to ...
2
votes
2answers
72 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 ...
1
vote
1answer
9 views

When I tap buy button in market how does wallet check my allowance instantly?

On CrytpoKitties, when I tap the buy button in a market, MetaMask comes up and shows if I can buy or not based on allowance instantly. How is this possible? Is it making query? Is it included in kitty'...
1
vote
0answers
18 views

MetaMask returns different error - not longer working

I am calling the MetaMask promt successfully with this: ethereum.enable().then(response => { console.log("ABC"); }).catch(error => { console.log("XYZ") }); However, when I disagree ...
1
vote
1answer
48 views

MetaMask ethereum.enable() not responding after logout. How to reactivate?

So I found out that after logging out of MetaMask. ethereum.enable() stop working and is not triggering the login prompt window. The only way to reactivate it, is by closing chrome, and start it once ...
1
vote
1answer
93 views

How to open metamask erc20 transfer window using web3 apis?

In my frontend I have 'withdraw' and 'deposit' buttons. I want to display the metamask screen that comes after clicking on the deposit and send buttons (of metamask) when the user clicks on the ...
1
vote
1answer
74 views

ERC20 token balance is always zero

I'm writing a pre-minted ERC20 token contract derived from openzeppelin-solidity like: pragma solidity >=0.4.24; import "../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; ...
0
votes
2answers
102 views

Why web3.version.api shows undefined for web3 1.0 and not undefined for web3 0.20.3?

I'm trying to use MetaMask and web3js to talk to my smart contract. Below are my test codes. This is without defining a web3 js file and I get the result "0.20.3" at console. <script> window....
1
vote
0answers
66 views

ERC20 Token support for metamask website payment

I have the following code working in my site to accept ethereum payments in my website via metamask.... <!DOCTYPE html> <html> <head> <script src="https://cdnjs.cloudflare.com/...
0
votes
0answers
19 views

Looking for api call to send ERC20 token over eth-wallet

I use metamask and etherscan api to get the info when a specific ERC-20 token is sent to my wallet. I would like to use API to send a specific ERC-20 token back to a given public key over API from ...
0
votes
1answer
33 views

Async getAccounts doesn't see my account

first time using MetaMask web3 Async getAccounts does not return my Eth account which I see in MetaMask. My fiddle https://jsfiddle.net/ysz11/qcv78h9z/1/ <!DOCTYPE html> <html> <...
0
votes
1answer
51 views

metamask and web3: Invalid number of arguments to Solidity function

my function has only one input string description : function createProposal(string description) { Proposal memory p; p.description = description; proposals.push(p); } and ...