Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

MetaMask blocks web3 requests

I just set up a Block Explorer to interact with my private blockchain. The private Blockchain runs in a VM. The host system connects to the Block explorer. When I have meta mask installed in my ...
0
votes
0answers
9 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 ...
2
votes
2answers
30 views

Why can't I use a contract method in my Chrome console?

I am attempting to call a method from a smart contract from my chrome console. My dApps index.html file is deployed locally at http://127.0.0.1:5500. I set up web3 and instantiate a smart contract ...
1
vote
1answer
24 views

How can I reduce the gas price for the fallback function?

Below is my fallback function for ethereum. It currently require 91000 gaslimit which is way more than 21000. Metamask always starts the transaction with 21000 gas stipend due to which transaction ...
-1
votes
1answer
16 views

Where is web3.eth.abi with the version of web3.js given with Metamask

Seems the docs doesn’t contain the answer. Looks like that part was moved elsewhere with latest transaction. The aim is to access encodeFunctionSignature() for knowing to which function name the ...
0
votes
0answers
35 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
20 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
34 views

problem connecting web3 v 1.2.1 with metamask : 'currentProvider' of undefined

I am using Web3 v1.2.1 with nodejs v10 and following this link. I am having issue connecting with metamask,below is my code snippet: const Web3 = require('web3') const window = require('window'); ...
0
votes
1answer
24 views

Fallback function fails when ethers sent from metamask

This is my code snippet for fallback function, If I use it by explicity using "fallback" function on Remix, then equivalent no of tokens do come in my wallet but if I send ethers via metamask directly ...
0
votes
2answers
31 views

Private Ethereum Platform development with Authentication System

I have to develop a system for Univeristy which provides digital certificates. I know some approaches but stuck about which approach I should choose. The system will have (suppose 5 nodes + 1 super ...
1
vote
0answers
12 views

Unknown account error when initiating transactions from remote node

I am using Ropsten network and trying to transfer ether from my metamask account to my another account using geth client. I am using the methods like eth.signTransaction, eth.sendTransaction in CLI, ...
0
votes
1answer
26 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 ...
3
votes
1answer
51 views
+50

signed message different on opera and metamask

I am using the following code to sign a message: web3.currentProvider.sendAsync( { jsonrpc: '2.0', id: 1, method: 'personal_sign', params: [ `My account is ${this.accounts[0]}`...
1
vote
1answer
33 views

Metamask connection with private node with rpc

i am trying to connect metamask with private node but its fails to connect geth --rpc --rpcaddr 127.0.0.1 --rpcport 8545 --rpccorsdomain "*" --rpcapi admin,db,eth,debug,miner,net,ssh,tapool,personal,...
0
votes
0answers
6 views

Is that possible to set metamask listening on a websocket provider?

metamask version 6.7.3 I start my geth client with option --ws and --wsport,while using the metamsk to listen for my websocket exposed geth node,but when I select custom RPC and tying 'ws://localhost:...
2
votes
1answer
25 views

Ethereum wallets that support “Custom RPC URL” like Metamask

I'm running a private blockchain and I've been using Metamask connected to my custom RPC URL with no issues.. I'm curious if there's any other Ethereum wallet that let's you add and connect to a ...
0
votes
0answers
14 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
1answer
49 views

Confusion around Truffle, Ganache and Meta Mask

I am building a simple contract. In truffle when I give 'truffle develop' command, I get following information: On the Ganache, I have this: And finally on Meta Mask, I see this: here, Shikhar is ...
0
votes
1answer
26 views

Using vanilla javascript with web3 and metamask

I have searched severally on how to use web3 with metamask without nodejs without any success. I want to be able to get an instance of a user's metamask account through web3 and vanilla javascript ...
0
votes
0answers
15 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
1answer
22 views

Can Dapps set cookies

Is it possible for a Dapp that uses the metamask/chrome to set up a browser cookie? or can a cookie set by another website like facebook, read some information or at least know that a dapp has been ...
0
votes
1answer
35 views

'ALERT: Trying to call a function on a non-contract address' Why Do I Keeping This Error?

This is the error from metamask directly: This is the error I get once after I submit the information to IPFS: My Smart Contract: pragma solidity 0.5.3; //Imports for safe math operations import "...
1
vote
1answer
32 views

How to get transaction status (programatically, not etherscan)?

I have a problem when I interact with an Smart Contract, from a javascript webapp. I can execute the transaction correctly when the status is confirmed, but I cannot get any error response when it ...
0
votes
0answers
11 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 ...
0
votes
1answer
54 views

html:82 Uncaught ReferenceError: App is not defined at HTMLButtonElement.onclick (html:82)

It's showing me uncaught reference error in my index.html file <div id="candidate-box"></div> <button class="btn btn-primary" onclick="App.vote()">Vote</button> ...
0
votes
1answer
40 views

Deploy smart contract on Ropsten with Truffle without truffle-hdwallet-provider

Here is my truffle-config.js networks: { ropsten: { network_id: 3, host: '127.0.0.1', port: 8545, gas: 4000000, from: "address_in_metamask" }, I ran a geth node using the command: geth --...
0
votes
1answer
25 views

How do dapps connect to blockchain network?

Once the simple blockchain web applications runs on the web browser it uses the metamask to connect to the blockchain network, when it comes to mobile applications how the application connects to ...
1
vote
1answer
28 views

can etherscan.io show local ganache transaction details?

I am purchasing tokens on my sample Dapp with ganache-cli account using metamask. Metamask shows the confirm message and deduct the ether from total balance but in token section it still not update ...
0
votes
1answer
10 views

Problem with loading my front end local host due to metamask

I have been trying this Dapp university tutorial online and after following it meticulously I've come across this problem. I suspect it's metamask as the video said if I get this loading message I ...
0
votes
0answers
49 views

Metamask and ethers.js : how to send arbitrary data with simple transaction?

I want to store data on the Ethereum blockchain (without using a smart contract). I tried to use Metamask to send transactions like this : const parameters = [ { gasLimit: "0x2710", ...
0
votes
0answers
26 views

which is a better method to use for signing messages between two parties in web3?

I have been searching for a while for the most secure and supported way for off-chain channel messaging.....so i was using web3.eth.sign(address, keccak256(msg)) for singing messages ....but then used ...
0
votes
1answer
46 views

How to use window function in controller (node.js)?

So this is my users controller to upload a file : exports.postUploadFile = (req, res, next) => { var ethereumURI = req.body.ethereumURI; var abi = JSON.parse(req.body.abi); var ...
1
vote
1answer
20 views

How to replace Metamask Pop-Up with my own UI

I was wondering if I can replace the Metamask pop-up with my own pop-up/user interface. Example: Currently on my dApp a user clicks "Buy Token" and a Metamask modal pops up and says the usual ...
0
votes
1answer
37 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
27 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
19 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
11 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
29 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
65 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
73 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
32 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
37 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
48 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
19 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
25 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
55 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
48 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
37 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 ...