The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 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
77 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
64 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
37 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
31 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
295 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
71 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
42 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
82 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
11 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
58 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
109 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
88 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"; ...
1
vote
2answers
128 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
77 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
55 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 ...
1
vote
1answer
147 views

Can the Android Metamask Extension be used with DApps?

I've successfully downloaded the Metamask Firefox Add-on, and imported my wallet into it. However I'm failing to see how I can use this add-on from within my DApp like I do on Chrome, using the ...
0
votes
1answer
74 views

Not able to connect metamask account with remix

Error: - Cannot get account list: Error: The method personal_listAccounts does not exist/is not available. Pop containing above message appears again and again. Privacy Mode in metamask is disabled....
0
votes
0answers
36 views

MetaMask Calling Child Contract Methods?

I had created a contract(Organisation.sol) that create other contracts(Session.sol). When I call any method from(Organisation.sol) using web3js it work well. But If I ever tried to call any method ...
0
votes
0answers
11 views

Account & Block Polling not happening properly for the DApp in Trust Wallet Browser

my DApp works fine in desktop/laptop using metamask which polls the accounts and blocks (1500ms and 3000ms respectively), as set in the drizzle options. But the same DApp when I open in trust wallet ...
0
votes
0answers
16 views

Help needed: MetaMask crash reason?

I am experiencing an issue of MetaMask but I do not know how to track down if this is due to MetaMask itself or due to my dapp. Following problem: I load my webpage in Chromium on Linux and log in to ...
0
votes
0answers
23 views

Can't Connect Metamask to Ballot Dapp?

I want to connect Ballot Dapp to Metamask but it Shows "rpc error with payload" and "ALERT: Trying to call a function on a non-contract address".
1
vote
0answers
27 views

Where Metamask store Keys? [duplicate]

When a user enter his private key on metamask, where it store in metamask ? Can metamask access this key through any activity ?
2
votes
1answer
48 views

How to import account to metamask using private key through code?

I am trying to create an application where each user is assigned his own private key and he needs to manually import the account in Metamask extension and then he can proceed with the transaction. Is ...
0
votes
1answer
116 views

How to connect with Metamask and Smart contract?

I am ready with my frontend design. I have only 3 files HTML, CSS, and JAVASCRIPT. So, I didn't create any project or DAPP to have other files. Now next step is to connect with metamask and smart ...
2
votes
1answer
44 views

Metamas - Infura problem. Cannot read property 'currentProvider' of undefined

I got a problem. I am using code below to connect to the eth from node.js app. Everything works perfect as long as I have installed MetaMask in my browser. I can be logged in, logged out, all good ...
2
votes
1answer
88 views

Remix + Metamask: The method personal_sendTransaction does not exist

I'm trying to deploy a contract to the Rinkeby Test Network through Remix and Metamask. Metamask seems to be properly configured: However, at Remix Run tab, the address dropdown shows no accounts: ...
0
votes
1answer
69 views

how to send transaction from different account in metamask

I have two accounts in metamask, when I called the function, web3 always used my default account in the metamask, I want to send transaction to the smart contract I deployed with another account, so ...
0
votes
1answer
169 views

Web3js :interact with smart contract

I'm currently struggling to interact with my smart contract, I don't if it comes from the way I call the function or the way I connect to my smart contract. Here is the code const contractAddress = '...
0
votes
2answers
271 views

Why am I Getting: Transaction Error. Exception thrown in contract code in Real?

WE Had Create A Dapp Like POWHD, we Already Deployed It And Some Of Transactions Are Already Done well. But After Some Time The issue I'm encountering with my real contract (Dapp) is that trying to ...
0
votes
2answers
29 views

connect users to the sidechain SKALE

SKALE is Ethereum Dapps to run high speed, Low cost smart contract layer. I wish to connect users to the sidechain SKALE,from their browser. automatically without the manual change as necessary for ...
0
votes
2answers
334 views

Metamask not returning current account address with web3js and ganache

How to return the address of my current account from Metamask? I have tried with web3.eth.getCoinbase() but this and metamask has two different address. web3.eth.getCoinbase() returns me the first ...
0
votes
1answer
44 views

How long does a smart contract typically take to complete?

I have been developing an application using a smart contract, the application is similar to this one: https://www.ethereum.org/crowdsale I went ahead and initiated a request, below is the codebase ...
0
votes
0answers
240 views

Get RPC URL / IP of Metamask's current provider

Suppose I have multiple copies of the same dapp running on different servers which do not directly communicate with each other, for testing purposes, and can manually interact with different dapp ...
0
votes
1answer
59 views

How does the MetaMask work with gas?

I have some web application based on Ethereum. This is how I call some function from a contract: contract.doSomething.sendTransaction(data, {gasPrice: web3.toWei(10, 'Gwei')}, callback...); This ...
1
vote
1answer
37 views

Return each struct value from a key inside a mapping, where the key is also a value from array inside another mapping

I have a project that I'm working on and I'm trying to figure out a way to do as the title says. I'm looking for the easiest and/or cheapest way(gas wise) and since I'm stuck I'm open to better ways ...
0
votes
0answers
27 views

Send ether from one wallet to another

I have two metamask accounts and what I want to do is send ether between those accounts. For the interaction between those accounts, use infura, I give the address of both accounts but in the end the ...
0
votes
0answers
63 views

My MetaMask is not loading token data, what is a mobile app that can import the MetaMask Private Key?

It's not loading any of my tokens for some reason for Metamask. I can extract the private key from this address. But what is a mobile app that can import a ETH private key? And is there one for ...
0
votes
0answers
109 views

MetaMask - Multiple transactions confirmation

Is it possible to somehow make one pop-up window with one group confirmation for multiple transactions in MetaMask? I need to send to the blockchain multiple pieces of data, 1 piece of data = 1 ...
0
votes
0answers
65 views

Solidity, Web3 - Invalid number of arguments to Solidity function when I have correct number

I created smart contract and I deployed it on Ropsten network using Truffle. I tested it from Remix and it works. I have there 2 view with a same name checkInputData but different number of parameters....
2
votes
1answer
105 views

Metamask Error messages shows only revert

I have a little problem with the error messages I receive from MetaMask. In my dApp I have a modifiers which should throw an error with an error message. However, in MetaMask I only receive the RPC ...
3
votes
4answers
714 views

etherum.enable() not opening Metamask

Is there any reason why ethereum.enable() would not open the metamask console? It was working briefly and now I cannot get any response from it.
0
votes
0answers
43 views

Smart contract hanging in react

I'm trying to make a call to my smart contract and write data to my blockchain, which is successful. However, after that completes I want to make an entry in a firebase database. The code appears to ...
0
votes
1answer
95 views

Logout of MetaMask with API

Is there a way to logout of MetaMask from my own frontend, allowing the user to logout with a button rather going up to the Metamask extension and logging out through the traditional manner?
2
votes
2answers
883 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 ...
0
votes
2answers
30 views

Is it possible to use MetaMask for a private consortium on Ethereum?

Assuming we create a private consortium chain over Ethereum and we want to use MetaMask for storing the keys and signing transactions to send the tokens belonging to this private consortium. ...
0
votes
0answers
51 views

Metamask is not injecting account into remix IDE [duplicate]

I am working on remix and I have logged into metamask, but seems metamask is not injecting account into remix IDE. screenshot is attached. I have tried re-installing the metamask. I have tried re-...