Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
1
vote
1answer
9 views

Transfer WETH from myetherwallet to metamask wallet

I converted some of my ETH to WETH already, on my hardware wallet. H/w wallet was conected to myetherwallet, and I can see my WETH there under tokens panel. I also created a metamask wallet and I am ...
1
vote
1answer
22 views

How to guarantee the order of transactions in MetaMask?

I create my transactions with ethers.js and push them into an array like this: const promises = []; promises.push(createTokenApprovalTx()); promises.push(createFooTx()); It's important that the ...
0
votes
0answers
10 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
1answer
19 views

How to check if BIP39 seed phrase is valid?

I am producing a game for a hackaton community to expose more people to Ethereum and blockchain. After hacking something my hackers will get many different seed phrases (similar to one generated by ...
0
votes
0answers
15 views

Help me fix Error: No “from” address specified in neither the given options, nor the default options. I'm use MetaMask

file web3.js import Web3 from 'web3'; const web3 = new Web3(window.web3.currentProvider); export default web3; file image.js import web3 from './web3'; const address = '...
0
votes
1answer
28 views

RPC error when interacting with contract using Ganache GUI, but it works fine when using Ganache CLI

I have a truffle project, if I migrate it onto ganache-cli and then interact with my contract (via Metamask) it works great. But if I try and do the exact same thing using ganahe-gui the contract ...
0
votes
1answer
11 views

Deploy smart contract on Ropsten, Kovan

When I deploy my truffle smart contract on test networks like Ropsten and Kovan, can I interact with it using multiple PCs at once simultaneously? And will the data updated from one PC be visible on ...
0
votes
0answers
16 views

How to recieve notification of incoming transaction in metamask mobile in real time

I have a erc-20 token in the ropsten testnet and i am using my metamask for admin my token, and i just want to recieve a notification via sms, to take screenshot, whatsapp or another way frendly user, ...
0
votes
1answer
73 views

Error while buying test ether from https://faucet.metamask.io/ - Mastering Ethereum

I am using Ethereum wallet MetaMask chrome extension and I am connected to Ropsten test network. I am following the instructions from the book Mastering Ethereum: Building Smart Contracts and DApps ...
0
votes
0answers
17 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
1answer
34 views

MetaMask - RPC Error: Error: [ethjs-rpc] rpc error with payload

I have created a DApp. In all my functions where I have used send() function of web3, I am facing above error. I have a function in which I used call() and it worked fine but all send() using ...
2
votes
1answer
26 views

Total metamask balance

I am curious how to get the total current balance of my metamask wallet with as many "accounts" inside it as it bears in the moment? As I can understand metamask is the HD wallet and all my addresses ...
0
votes
0answers
19 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
23 views

hdwallet-provider set multiple account addresses when deploy contract

I'm using for deploying contracts hdwallet-provider, but I have issue on client side to get multiple accounts using web3.eth.getAccounts() call. I know this is like duplicate question and truffle ...
0
votes
1answer
26 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 ...
1
vote
1answer
59 views

Pass arrays to solidity's function from truffle

I am getting ALERT: Transaction Error. Exception thrown in contract code in metamask when calling addBet function from truffle. The function works without any errors when called from remix. The ...
2
votes
1answer
62 views

Sending an ethereum transaction with ethers.js and metamask

I've tried two different ways, and have looked through ethers.js documentation, and I just haven't been able to figure it out. Does anyone have any suggestions? This is in a browser. trans(web3,...
0
votes
1answer
12 views

smart contract issue [duplicate]

hi I accidentally sent it eth to a eth smart contract from my exodus wallet instead of sending it to my metal mask and sending it from there is there any way to retrieve and withdraw this money back ...
0
votes
1answer
37 views

How to execute contract methods without metamask confirmations?

I would like to know if there is a way to execute my contract methods without requiring the confirmation of metamask. I found something web3.eth.sendSignedTransaction but can't seem to figure out ...
0
votes
3answers
39 views

safe way to allow users to deposit ETH to an address

I'm new to this and I want to simply allow users to deposit ETH to an address (not a contract). I was wondering what is a safe way to do this? for example using the code below on client side i can ...
0
votes
1answer
28 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
36 views

How to choose wallet with web3

I have MEW and Metamask installed. When I am trying to send a transaction using: web3.eth.sendTransaction() It always uses Metamask. May I know how can I specify I want to use MEW instead?
0
votes
1answer
27 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
1answer
44 views

In MetaMask, I have my seed phrase but I didn't export my private keys. How do I recover my wallet?

So, I've been using MetaMask to try app.compound.finance and everything went well. I've deposited a small sum and connected the app to the wallet. But a few weeks later I decided to deleted the chrome ...
0
votes
2answers
38 views

Not able to successfully send Transactions via MetaMask on Firefox Browser

Does anybody help me figuring out why I am getting failed transaction here?What does this error means? Few days back,with the same line of code,I was able to successfully send transactions. An update:...
0
votes
0answers
19 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
1answer
28 views

How can a smart contract payable based function returns value against any purchase

I am trying to get a return value from the payable function, the idea is a user must pay the fees and in return, he will get his special code. My JS test code is as follow it('get special code ...
0
votes
1answer
17 views

How can I change the text message on connection request window of metamask?

I want to change the message in connection request window using web3js. I have attached screenshot here. kindly check it.
0
votes
0answers
48 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
9 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
27 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
1answer
20 views

Altcoin transfers

I sent a number of ERC20 tokens to Metamask. They are not showing in the MM wallet, but I do see them in Etherscan. I now want to sent them to a different address but I don't see how to do that. When ...
0
votes
1answer
38 views

how can i count how many buyers made request to my smart contract and get earnedEther [closed]

I am using a factory contract for selling and buying goods. how can retrieve how many buyers bought and calculate how much ether earned by selling goods? here is my source code. I am new on smart ...
0
votes
0answers
44 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
22 views

Metamask from web to mobile

I have use my PC to manage MetaMask (ie. chrome extend). compound.finance also connect to my metamask wallet. I want to manage my account by mobile and at PC that I install metamask mobile in andriod....
1
vote
3answers
91 views

How do I send a transaction using web3.py and Infura?

I am using Infura to interact with the Ropsten testnet. I would like to send a transaction from one account to another, but the following code does not work: w3 = Web3(Web3.HTTPProvider('InfuraUrl')) ...
2
votes
1answer
54 views

MetaMask and it's “speed up transaction feature” — no callback

I'm using MetaMask to make Ethereum transactions from my website, as described here: https://metamask.github.io/metamask-docs/Main_Concepts/Sending_Transactions It works perfectly. I capture the ...
0
votes
1answer
17 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
33 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
52 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
1answer
29 views

cannot be able to connect to private blockchain hosted at local VM

I want to use remix IDE and want to connect web3provider which needs to be connected to private blockchain running on VM locally. My system is running on Windows 10 and I am running the VM on my local ...
0
votes
0answers
21 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
51 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({ ...
2
votes
1answer
45 views

ecrecover in c++

can anyone spot what I am doing wrong? I am trying to recover the public address from data signed by web3.personal.sign in Metamask and with this code the public address comes out wrong. Hash and hex/...
0
votes
2answers
34 views

How DApp actually talks to Ganache ethereum node?

Both Metamask and web3.js seems to be enabling a DApp communicates to a remote ethereum node. There are a few different aspects to developing blockchain applications with Ethereum: Smart ...
0
votes
1answer
76 views

Web3-core-helpers error: Uncaught (in promise) Error: Provided address “undefined” is invalid,

When I launch the app with with react.. this error occur when my exchange contract is loaded.. Here is the code i wrote to talk to the blockchain: export const loadBalances = async (dispatch, web3, ...
0
votes
1answer
24 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
2answers
296 views

MetaMask - RPC Error: Internal JSON-RPC error

I am getting this error when i trying to use metamask on my local for a simple transaction from one account(say A) to another (say B). code: -32603 data: {originalError: {…}} message: "Internal ...
1
vote
1answer
18 views

Forks of Metamask

Are there forks of metamask to be used to end-users in a permissioned network? In other words, I would like to: - hide public networks (to avoid confusion) - pre-configure that the user should use the ...
0
votes
1answer
19 views

View sendTransaction implementation

I'd like to see code that implements getAccounts and sendTransaction in a provider. I tried digging into the Metamask source code and found the line where Metamask supplies the Web3 provider, but I ...