Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
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-...
0
votes
1answer
74 views

No “from” address specified in neither the specified in neither the given options nor the default options

So I already went through this query, but I still couldn't get my doubt solved. Be it any Blockchain Dapp, the same error is coming for me. I used the marriage certificate and kickstart examples. Can ...
1
vote
1answer
456 views

Metamask address not detected on remix-ide

My Metamask address wont show up on remix-ide either run on localhost and remix.ethereum.org I also have tried it on brave and chrome, none of them show the address. please help me :(
0
votes
1answer
75 views

Request user to sign state changing transaction with metamask using Infura and web3js

Can't seem to find the right function to ask the user to sign a transaction via metamask, this is my code so far: const bet = '102500000000000010' const account = '...
0
votes
1answer
47 views

How can i deploy compilled contract with node/web3 and metamask?

Does anybody knows how to deploy smart contract with node/web3 and using unlocked metamask account. I mean over internet it is advised to use HDWalletProvider with mnemonic but I want that user that ...
1
vote
1answer
112 views

How to prompt and create Smart Contract using React

Weird question, so I have created a smart contract, verified that it works, even deployed it using Web3, Metamask and HTML/Javascript. I understand that worked. Now I am trying to integrate it into ...
0
votes
0answers
32 views

ETH send to contract fails, probably fallback() function fails to call

I deployed the following piece of contract on testnet and everything works fine.But, when I send test ETH for the contract address, transaction fails. I tried with higher gas as well but failed as ...
0
votes
0answers
182 views

prompt for metamask unlock

Is there a way to automatically open metamask unlock prompt ? Since I am able to detect metamask is available, instead of redirecting user to unlock.html I would prefer to try automatically prompt ...
0
votes
1answer
141 views

Mobile android app that can import a Metamask private key?

I'm having some issues sending out from metamask and getting failed transactions. I think maybe I should use another app on android if possible. What android wallet apps can import a Metamask private ...
2
votes
1answer
344 views

Metamask Failed transaction when sending out BAT tokens

I've been trying to send some BAT tokens out of my metamask wallet for quite awhile and it keeps eating up all my eth gas fees. I even increased the gwei fee to 100 and paid .50 USD as the fee. And it ...
1
vote
2answers
450 views

How to add an address for which I have the corresponding private key into MEW?

I'm quite new to Ethereum, so, pls, forgive me if I say something wrong. How can I see the balance of one already existing address, for which I have the corresponding private key, in MyEthereumWallet?...
0
votes
0answers
15 views

How to get Metamask return the rawTransaction from the JSON transaction?

I am in the process of exposing a web interface to interact with a back-end Web3 Json Rpc compatible node, but it is necessary that I add additional parameters in the jsonrpc request before submitting ...
0
votes
1answer
58 views

Cannot read property 'sendEth' of undefined, 'sendEth' is function in smart contract

Hi I'm trying to interact with an Ethereum smart contract but it is always showing "TypeError : Cannot read property 'sendEth' of undefined" where 'sendEth' is a function in my smart contract Here is ...
0
votes
1answer
21 views

Accounts with ether cannot execute transaction on private chain

According to Metamask my accounts have ether, one account can submit transactions and have them be executed by the network, the other two have their transactions left as Submitted transaction. Note, ...
1
vote
0answers
48 views

scatter confirmation for sign a transaction?

I have built an dapp. It's almost like twitter where the user can tweet and also use as a microblogging site in blockchain.I have used scatter as transaction signer for using my dapp. The real problem ...
0
votes
0answers
95 views

How to keep user's selected account and network from MetaMask updated.?

So the question is pretty straight-forward. I can setup the web3 provider no problem (currently using Metamask + local ganache), i can access the acount the user selected in the first place, and i can ...
1
vote
0answers
140 views

metamask and infura - Managing and signing with private keys

I am using Infura as a node for my DApp so I need to send raw transactions by signing them. These transactions can come from multiple users of an application so each user must sign and send a raw ...
0
votes
0answers
28 views

Can I avoid metamask popups with calls to a server-side js script in order to pay for transactions?

I have a dapp that allows a user to input some info via the GUI, and this info is stored to the blockchain(testnet for now) when the user presses a button. This naturally incurs a cost, which causes ...
1
vote
1answer
1k views

Difference between window.ethereum and window.web3?

If I log the two functions, I get two objects, that both contain for example selectedAddress, but the structure of the objects seem different. I couldn't find a comparison in the documentation. I ...
0
votes
0answers
104 views

Metamask not connected with web3.js

if (typeof window.web3 !== 'undefined') { web3 = new Web3(web3.currentProvider); } else { // set the provider you want from Web3.providers window.web3 = new Web3(new Web3....
0
votes
1answer
45 views

how to connect my html form that is username and password to blockchin and taking the username as metamask key?

I am developing a decentralized cloud web application, when the user will login into the application he/she will generate password from blockchain, I am not getting how to connect my html form that is ...
1
vote
1answer
30 views

Token real synchronization from my website

I like to integrate a real token synchronization (From distributer wallet account to user's wallet address the token need to transfer) in my website. My website needs to interact with the blockchain ...
0
votes
0answers
15 views

Metamask browser apps reusing Truffle tests?

After reading the documentation about metamask (https://github.com/trufflesuite/trufflesuite.com/blob/master/src/docs/truffle/getting-started/truffle-with-metamask.md) is not clear to me whether it's ...
1
vote
0answers
711 views

The object could not be cloned. && DOMException: Failed to execute 'postMessage' on 'Window'

When I try to sign a message with this simple function const signatue = await window.web3.eth.sign(hash, userAddress) I get an error. In firefox I get Unhandled promise rejection DOMException: "The ...
1
vote
1answer
185 views

Can't sign data with personal.sign

I requested active account address from Metamask and received it successfully. After that I tried to authenticate user by signing data with eth.personal.sign, but getting errors unfortunately. ...
0
votes
1answer
57 views

Wait a promise end before continue

i try to create a map with (address => bool) with web3js. I want to know if the address is a contract owner. So, i have to call "owners" function in my solidity contract. As you can see below : let ...
1
vote
1answer
60 views

Is it possible to show multisig wallet transactions on metamask?

I am trying to implement multisig wallet, where one contract address is set as a wallet with multiple owners. I want to show multisig transactions on MetaMask. Is it possible to do that? My contract ...
0
votes
4answers
1k views

Metamask – Trying to call a function on a non-contract address

I am receiving the following alert from Metamask. ALERT: Trying to call a function on a non-contract address. The address is most certainly a contract address, I can interact with it perfectly ...
1
vote
1answer
246 views

How to use local Metamask account with Infura Node [duplicate]

I'm building a DApp using web3js that sends ERC20 Tokens from a browser Metamask account to an escrow contract on the Rinkeby testnet. I'm using a Rinkeby node from Infura, and when I call web3.eth....
2
votes
1answer
145 views

Generating passPhrase

Does anyone has idea how metamask generates the passPhrase. I was looking in github for related files but unable to figure out how exactly the things are done.
2
votes
1answer
81 views

generate unique mnemonic with password(only)

I am trying to create an exodus like wallet, where for the first time user just need to enter the password to register on wallet. The method I thought, running PBKDF2 on the password with empty salt ...
0
votes
1answer
95 views

Invalid JSON Response while connecting DApp, Metamask and Backend

I am getting some error(picture below) while trying to connect DApp with a backend. One day ago, everything worked fine, now I got an error: "basic auth failure". Contracts are deployed on Ropsten ...
1
vote
0answers
40 views

Unable to retrieve ethereum address from the signed data

I used the web3.eth.accounts.recover method to retrieve the ethereum address but I am getting an error. Here is the code: let v = '0x' + signed_nonce.slice(130,134); let r = signed_nonce.slice(0,...
0
votes
1answer
178 views

Getting error while buying test ether from https://faucet.metamask.io/

I just tried to buy a test ether from https://faucet.metamask.io but the faucet address which is supposed to give 1 ether doesn't have enough balance. Snapshot of the faucet address And when i ...
0
votes
1answer
158 views

Import geth account into metamask

How do I import a keystore file generated in geth into Metamask? Is there a simple way for me to convert the ciphertext into a private key, can I decrypt it with my passphrase somehow?
0
votes
1answer
62 views

Private chain, metamask, accounts

I am wondering how a private chain can communicate through Metamask. My biggest concern is the HttpProvider and accounts. Aren't accounts accessed through the web3 instance? Since accounts aren't ...
0
votes
1answer
258 views

How to use latest web3 version from metamask?

Im new to web3 and Im using following code to connect my UI to web3. // Modern dapp browsers... if (window.ethereum) { window.web3 = new Web3(ethereum); try { // ...
0
votes
2answers
68 views

Uncaught Error: Invalid number of arguments to Solidity function

function TriggerContract() { var account = getAccounts(); var test = web3.eth.defaultAccount; console.log(account); var q = document.getElementById("Quantity").value; var ...
1
vote
1answer
145 views

web3.eth.getAccounts() never resolves

I am attempting to connect the frontend of an application to a private chain through Metamask. As no web3 is injected, the following code is run const getWeb3 = () => ... ... ... ... const ...
2
votes
1answer
351 views

RPC Error with Payload when using the Ropsten Test Network Faucet with MetaMask

I'm trying to obtain some test ether from the Ropsten Test Network with Metamask, but I keep on getting an "RPC Error with Payload", whenever I try to click on "request 1 ether from faucet". I ...
0
votes
1answer
2k views

How To Connect Web3 With MetaMask?

No tutorial can help me, I have watched almost every major tutorial on Youtube and read a ton of results from Google... I have on my HTML file imported the web3.min.js (copied from Truffle pet-shop ...
0
votes
0answers
71 views

Web3.eth.sign() not working properly. Not sure if this is a MetaMask or Web3 problem

window.ethereum.enable() is working properly, the window pops up from MetaMask and I allow access like normal. I am also able to send transactions between two of my accounts on the test network ...
2
votes
0answers
47 views

Automatic sign of Transaction

Is there any secure solution(without exposing a Private key of the user) to automatically sign transactions, which are requested from a DApp, so that user doesn't have to sign each of them manually? I ...
0
votes
0answers
88 views

Contract deployment not working anymore

So I have this following code that was working a couple of weeks ago and today I decided to run a few tests and it just doesn't do its job anymore. function approve(rid, guest_wallet, ctr_key, dti, ...
2
votes
0answers
44 views

How to get v,r,s parameters from transaction receipt in remix ide?

I am trying to get v,r,s parameters of a transaction so that I can use them to verify the signature. I am not sure but I think previously remix used to give these parameters in transaction receipt. I ...
2
votes
2answers
143 views

Offchain encryption in Ethereum dapp

Im wrting a dapp which holds / manages sensitive data which might need to be encrypted and decrypted and push again into chain. I know it is not safe to encrypt data in smart contract,which is why Im ...
0
votes
1answer
24 views

MetaMask repeated errors with LocalHost

Every time I try to send ETH to my locally deployed contract I get errors like this: -While the error message says "out of gas" I know that can't be true since all my accounts have like 100ETH in ...
0
votes
0answers
349 views

Web3 is injecting but stilling getting an invalid provider error

I'm injecting web3 with MetaMask, and everything works, but when I make a production build, I notice that it injects web3 alright, but when I try to call a web3 function, it throws `Please provide an ...
0
votes
0answers
104 views

MetaMask privacy mode warning keeps showing

I have added "privacy mode" code as shown here - https://bit.ly/2QQHXvF But the warning keeps showing. How to remove it?
0
votes
0answers
148 views

How to call contract method from specific address and private key without Metamask check

Good morning, I need to known how call contract method in javascript from specific address(and relative private key) without the check of Metamask. I explain better. This is an example of js code, ...