Questions tagged [metamask]

Question about the Metamask chrome's plugin.

309 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Mobile DApp (React-Native) interacting with Ethereum through smart contract

I'm trying to develop a mobile Dapp with React Native but I have a few questions: 1) Is it possible to call a smart contract methods like we do in web with metamask? 2) Is there any wallet that ...
0
votes
1answer
7 views

My cutom RPC meta mask created account is not showing in terminal

I have installed geth and created genesis.json and run my own private eth network. I started my rpc using geth --rpc --rpcport 5200 --rpcaddr 192.168.1.99 --datadir ./private Then I connected to ...
0
votes
0answers
9 views

Drizzle Dapp on HTTP vs. HTTPS

If I have a Drizzle dap on an http server. Is there a risk that the private keys used with this dapp can be revealed? I suppose this is like asking if a MetaMask interaction within the unsecure http ...
0
votes
1answer
15 views

ERROR: Web3 not defined

I'm trying to build a browser UI to interact with my Solidity smart contract that is deployed on my local Ganache blockchain. But I can't seem to get my index.html file to connect to Metamask. I keep ...
0
votes
0answers
18 views

Interacting with client side metamask in serverside rendered react

i'm new to using web3 and am building a react app served from the server that will connect to an infura node. I've read that metamask injects web3 by default but have seen some mentions that it won't ...
0
votes
2answers
23 views

ERROR: Provided address “6.963865902119903e+47” is invalid

Full error log: formatters.js:471 Uncaught Error: Provided address "6.963865902119903e+47" is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be ...
0
votes
0answers
25 views

Unlocking the ethereum account in azure using azure cloud shell

I have created an ethereum account in azure using ethereum consortium proof of concept and linking metamask with it ,I m trying to unlock the adrees of ethereum i have created I HAVE TRIED IN BOTH ...
0
votes
0answers
26 views

window.ethereum: 0 if use MetaMask

I try to connect to MetaMask from my DApp. It used two work well about two month ago, but now window.ethereum object is 0 (not undefined). For some reason ethereum object is 0. I am aware about ...
0
votes
1answer
50 views

What does MetaMask mean by stop injecting web3.js?

MetaMask announced that they will stop injecting web3.js here. I know previously MetaMask will add a global variable in browser window.web3 and this global lowercase web3 variable will be deprecated ...
0
votes
2answers
72 views

Web3.js eth.subscribe: on('changed', function(event){}) doesn't work with Metamask?

I write a demo DApp website with this javascript const web3 = new Web3(ethereum); const contractAddr = "0x0Aa27e4B13D5c08A8767B36a0ACb76ED4549B7EA"; const abi = ...; let inst = new ...
0
votes
0answers
8 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
75 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
1answer
12 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
20 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
34 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
33 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
0answers
45 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
32 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
59 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
0answers
47 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
53 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 ...
0
votes
1answer
25 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 ...
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
0answers
27 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
0answers
45 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
33 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 ...
0
votes
1answer
64 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
93 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
0answers
28 views

Trying to send ERC20 token with Javascript button without success

I am trying to send an ERC20 token with the following code via web3.js. It was working until a week ago and then it stopped. Am I doing something wrong? Upon clicking it no longer interacts with ...
0
votes
0answers
157 views

How to connect Remix desktop to connect to MetaMask?

I downloaded the desktop version of Remix, and am trying to connect it to the main network. I can do this in the web version of Remix easily, opening up MetaMask on my browser. However, in the desktop ...
0
votes
0answers
13 views

How to simulate 2 accounts on the same Ropsten network using MetaMask and Remix?

I was able to deploy to the contract and everything but I wanted to see another account interacting with the contract, but on Remix only one account at a time
0
votes
0answers
32 views

JSON RPC error on Angular Truffle Box

I use angular-truffle-box to create a dapp and when i tried to create a method getAge() and deploy the contract it shows me this error: Error: Returned error: {"id":12,"jsonrpc":"2.0","error":{"code":...
0
votes
0answers
101 views

Issues with metamask in my project

Please look at images: The first images is what i get when logged in to metamask and the second image is what i get when not logged in to metamask When im logged in to metamask i can buy sell ...
0
votes
1answer
46 views

Connect Metmask to ( local host ) port other than 8545

How to connect metmask to genach-GUI having port : 7545 instead of 8545 . Only network localhost :8545 is available on metamask Is it done through custom RPC network ? If yes, then how should ...
0
votes
0answers
34 views

getAccounts undefined recently

I've been using web3 v 0.20 and I recently noticed that getting accounts from web3.eth.getAccounts(function(error, accounts) { returns undefined. Is Metamask 7.2.1 forcing it to be undefined for ...
0
votes
0answers
105 views

Metamask error: Transaction error. exception thrown in contract code

I've been successfully compiled and deployed my smart contract Campaign.sol. All the functions in my contract can run successfully but as I use my javascript file RequestRow.js to call my function ...
0
votes
0answers
25 views

Developing a dapp using Truffle. Metamask will sometime throw this error when interacting with a simple contract

Trying to setup my development environment to start a personal dapp project. I am starting off the project with the React truffle box. 1) I start by running truffle develop which launches a local ...
0
votes
0answers
68 views

send().catch() doesn't give me the error message anymore

I'm using Truffle/Drizzle/MetaMask and calling methods with send() and using .then() and .catch() and I rely on getting the error message send to .catch() e.g. contract.methods['hello'](arg).send({ ...
0
votes
1answer
28 views

MetaMask listed as “web wallet” on official Ethereum website

MetaMask is listed only in the "web wallets" section of the official Ethereum wallet guide. Obviously, MetaMask is written in Javascript and runs in a web browser. But this is also true of the ...
0
votes
1answer
119 views

How do I deposit an Ether amount to the smart contract function, namely deposit ? (Metamask version 0.20.7)

I have a problem with using the deposit () function on a smart contract. How do you use metamask 0.20.7 ? const contractInstance = web3.eth.contract(contractAbi).at(contractAddress); contractInstance....
0
votes
0answers
34 views

web3 update monitoring

Inside a DAPP, I have been using web3.currentProvider.publicConfigStore.on('update',... to monitoring Metamask activity. But in the new metamask-mobile such method does not exists. There is a ...
0
votes
0answers
99 views

How to connect to MetaMask via web3js

I'm trying to recreate this site TenThousandSu And this is the smart contract I'm trying to call https://rinkeby.etherscan.io/address/0x7e338acfb7a5d7e99f4225cc12dc884f49c00f6a#code I'm using "1.0....
0
votes
0answers
36 views

Payable function not working properly

Hi everyone hope I will be clear enough with the explanation because I couldn't find a proper solution. I am just trying to checkout an item with my buy function but it seems like I am stuck.Here is ...
0
votes
0answers
45 views

Transactions go to an older contract address rather than the present deployed one

Though I have deployed a new contract but the transactions go to a previously deployed contract in my application. I'm attaching the screenshot of my Remix-ide code and the code for the front end ...
0
votes
0answers
121 views

Ether.js - Sending transaction with metamask

Problem: Cannot send transaction to contract with metamask when using Ether.js I can get a result when calling a public view function as shown below. However, when calling a normal function, ...
0
votes
1answer
355 views

How do I create a MetaMask Connect request to auth a wallet with MetaMask

I am looking for how to authenticate completely in the browser with MetaMask, presumably by having it sign with some private keys and prove that the user owns a wallet that lists the corresponding ...
0
votes
0answers
19 views

Can I Create Node.js API for each function in Smart Contract but sign a Transaction from frontend via Metamask.?

I am trying to develop a Dapp with nodejs backend but I cannot get accounts from Metamask which resides on my frontend. I tried to create an endpoint for each function in Smart Contract. And it seems ...
0
votes
0answers
21 views

Why Does Metamask Show The Sign Prompt But Have web3.eth.sign Undefined?

I am trying to make the end user sign something. I hosted this on with python simplehttpserver: web3.eth.sign(web3.eth.accounts[0],"asdf" ,function(error, result){ if(!error) console.log(JSON....
0
votes
0answers
14 views

Getting error when importing, no error when using code in single file: Failed to execute 'postMessage' on 'Window'

I am trying to access the web3 object injected into my browser by Metamask. I am using custom rpc (). I can see my accounts and correct balances in Metamask. I have the following code: //web3.js ...

1 2 3
4
5
7