Questions tagged [metamask]

Question about the Metamask chrome's plugin.

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

Why does this function work in truffle tests and fail through metamask?

I have the following function and it has been working perfectly in truffle tests as I was developing the smart contracts and now that I am implementing it in the front end I have been getting a error ...
0
votes
0answers
16 views

Transactions fails in rinkeby but succeeds on localhost, gas limit 1000000 is cited

http://lucidity-eth-r.surge.sh/ Rinkeby test for buying funding token (search Honduras Agriculture Project, may have to click submit a few times), then go to funder view, and type in any amount/tenor. ...
0
votes
1answer
22 views

Sending ether directly from metamask to fallback function

I want to send some amount of ether to a smart contract from metamask (without using web3) and want it to perform some specific tasks based on that amount. For example, if I send 0.9 ether, I want it ...
0
votes
2answers
22 views

Unhandled Rejection (TypeError): this.web3.eth is undefined

My getWeb3.js file: import Web3 from 'web3' export default async () => { var web3Provider = null; if (typeof window.ethereum !== "undefined") { web3 = new Web3(window....
1
vote
0answers
14 views

How to obtain list of transactions/activity on metamask

How to obtain list of transactions/activity on metamask ? I'm building an app that interact with metamask, I want to access all of the transactions that is written on metamask from the connected ...
0
votes
1answer
28 views

Cannot set property 'defaultAccount' of undefined

I am trying to run a DApp with metamask enabled , but this error surfaces . <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-...
0
votes
1answer
26 views

How to get privateKey from Metamask by code? [closed]

Try to create ether wallet by privateKey from Metamask account
1
vote
0answers
7 views

Check on `window.ethereum` fails with Metamask active

I have a web frontend which checks for the window.ethereum object as follow if(window.ethereum) { console.log("Metamask available") ... } else { console.log("Metamask not ...
1
vote
0answers
8 views

Unable to inject Web3 1.x version into Metamask

I am creating a dapp which interacts with Metamask on the browser. Metamask is injecting by default the 0.20.x version (deprecating soon) and I am trying to figure out how to inject 1.x version of ...
0
votes
1answer
21 views

Metamask Wallet Change in Dapp

I wonder something about the usage of the metamask wallet for Dapp. I have implemented an Authentication mechanism to my Dapp with Keycloak, and I ask for blockchain wallet addresses of the users in ...
0
votes
1answer
17 views

Transactions are failing despite high gas fee?

So, I'm sending a transaction on Ethereum network using Metamask even with a high gas fee but the transactions are failing. I'm transferring ETH from Metamask to another wallet. What I found strange ...
0
votes
1answer
61 views

Metamask shows “ALERT: Transaction Error. Exception thrown in contract code” but transaction succeeds without error

I've been testing my dapp and I noticed when I updated my contracts Metamask started to throw an error for one of the contracts we made a slight change to. Metamask says the tx will fail and the ...
0
votes
0answers
22 views

Web3 and Metamask interaction doesn't work

I have my Metamask open connected to the Rinkeby network. In Andreas' Mastering Ethereum book he has the following instructions to interact with Web3. "Open a Javascript Console in a Broswer with ...
0
votes
0answers
38 views

Web3, MetaMask, setprotocol.js - RPC Error: Invalid parameters: must provide an Ethereum address

I am following this Set Protocol tutorial. I am running into following error when running the code in the browser. inpage.js:1 MetaMask - RPC Error: Invalid parameters: must provide an Ethereum ...
0
votes
0answers
35 views

How to fix Your transaction may be frontrun on Uniswap? [duplicate]

What does it means for a transaction to get frontrun? It appears when i set my slippage to 10%
0
votes
0answers
14 views

How to clean up unused meta mask event listeners

If I register a meta mask event listener using: provider.on('accountsChanged', accounts => { console.log('accounts:', accounts) }) Is there a way to clean this listener? I'm use Vue.js which ...
0
votes
0answers
18 views

Only see the last item of struct using for loop in web3.js

I don't understand what mistake I did in my code. I created a folder before and I was successfully see the correct result of smart contract. For more clarify , Actually I want to see the struct result ...
0
votes
0answers
20 views

ALERT: Transaction Error. Exception thrown in contract code. Anyone can solve this? [closed]

pragma solidity >=0.4.22 <0.8.0; contract Supplychain { string public waterRes; address public admin; uint public productCount = 0; bytes32 public newProductId = ''; mapping(...
0
votes
0answers
21 views

Metamask tokens not showing

This is the situation : I had some tokens in my Metamask and had no problems doing transactions for a while. After that, a week or two after my last login, I tried accessing my Metamask with the seed ...
1
vote
0answers
67 views

A pending “Approve” transaction in MetaMask can't be cancelled / retried

I want to swap (offer) a token in UniSwap that I've not swapped before. So I first had to submit an "approve" transaction. It says now "transaction pending" with an estimated time ...
0
votes
1answer
56 views

Transaction Error. Exception thrown in contract code. REVERT

I keep getting an error when trying to call function "setTokenAddress(address input)" Here's my contract code: pragma solidity 0.6.12; library SafeMath { function add(uint256 a, ...
1
vote
0answers
15 views

Where to define the MetaMask window.ethereum.on Listener

I have tried to include the window.ethereum.on listener to detect account changes in MetaMask, in my mounted () {} method. When the listener is triggered, it itself triggers the location.reload() ...
0
votes
1answer
22 views

web3.js without installing a browser extension

I want to make users not having MetaMask installed to use my dApp. I thought MEWConnect will do the thing, but it requires installing an app at the phone :-( Any alternative way? For example, MEW ...
0
votes
0answers
18 views

MetaMask not prompting for transaction when calling method with ethjs

I am trying to interact with a contract that i've created on Rinkeby (0xff1175c8030083dbf211bf6e2e1e7e1182a8f8bb) I have my provider detected, wrapped with ethjs. When I try to read the contract, ...
0
votes
1answer
32 views

I written an ERC20 token contract, now I have to use my token in another contract for transaction amount. How? [closed]

Taking help of openzepplin, in making ERC20 token , I now have to use this token in multiple contracts for various use. So, how do I code my ERC20 token into other contracts, so that at time of amount ...
0
votes
1answer
19 views

Need Some Basic Information related Ethereum [closed]

I'm newbie to block chaining and need help related truffle and related tools.... Q. Whats difference between truffle and ganache? Q1. Is truffle/Ganache(Don't know difference) is server side EVM, I ...
0
votes
1answer
60 views

MetaMask issues

I am using the latest version of Chrome and I re-installed MetaMask but the below problems persist. When I enter my password into MetaMask I get the message "Network request failed". I ...
0
votes
1answer
20 views

Metamask send new transaction instead of pending transaction, withuot cancelling the pending one?

I have a Metamask account A which has a days-old pending transaction which will not succeed: What happened, more or less: A has balance of 11 ETH Tx1: A tries to send 10 ETH to B (pending) Tx2: A ...
0
votes
0answers
18 views

why the below error is thrown when doing transaction with metamask to the truffle

the error is thrown is shown in the below picture.While doing the transaction an error stating ethjs-rpc with payload["id:761..,Jsonrpc:"2.0","params":"0xf8..]
2
votes
1answer
622 views

Fast way of checking if my ethereum addresses can claim UNI tokens from uniswap? [closed]

I have quite a number of addresses in eth and is there a way to check if my address can claim uni without having to sign in with each individual account using uniswap?
0
votes
1answer
21 views

If I participate in a ERC20 ICO with my Metamask eth address, can I add the custom token later on?

If I have not added the ICO's token to my Metamask yet as a custom token, can I do it after the token distribution? Like claiming my tokens after it's been sent, by adding the new custom token to my ...
0
votes
1answer
17 views

Remix Error - Trying to Follow Ropsten Faucet Instructions

I have been trying to get testnet Ethereum from Ropsten using Metamask wallet but instead I am getting errors. What am I doing wrong? Here is what the Ropsten Faucet site said and the error on Remix ...
2
votes
2answers
37 views

medalla testnet launchpad requires metamask or similar

Following the official Medalla launchpad at https://medalla.launchpad.ethereum.org, at some point you need to connect to a wallet and the only options are MetaMask, Portis and Fortmatic. Why is this ...
0
votes
1answer
26 views

Run my code on Ropsten network without using Infura

As I understood, Infura is a remote node give us the ability to interact with the network if we do not want to download the full node in our machine. If I understood that correctly, can I download the ...
0
votes
0answers
32 views

window.ethereum is always null (with metamask installed)

I'm trying to create a 'connect to metamask' button using their tutorial but the "window.ethereum" variable is always null even if metamask is installed / unlocked. I'm not quite sure where ...
0
votes
0answers
14 views

Defining an endpoint dinamically in metamask?

I am creating a permissioned ethereum blockchain network and many dapps will be deployed in it. Since the dapps need to check some rules before submitting transactions to the node (yes, it is a ...
0
votes
0answers
22 views

web3.eth.getAccounts() does not return all addresses [duplicate]

so I'm trying to retrieve all the account addresses that are currently present on MetaMask. So I tried to do that using window.web3.eth.getAccounts(console.log) but that seems to be returning just an ...
0
votes
1answer
41 views

How Can I use my Metamask accouns to deploy a contract using Truffle

I have the full geth node on my machine and want to deploy my smart contract on ropsten using truffle. In truffle.js fileI have connected to the node as the following: ropsten: { host: "...
1
vote
0answers
22 views

web3 only works with metamask but no mobile metamask or trustwallet etc

i stripped down to the bare minimum to interact with a contract with metamask it works nice, i can call/transact nicely with only minimum of html/js but on mobile metamask or trustwallet it simply ...
2
votes
1answer
111 views

i am new to this, can someone steal my erc20 token with the Function approve()

I have been using yield Farming (YFValue) and I noticed when I accept the contract via MetaMask. I set faming 500 USDT but in the contract the input was: Function: approve(address _spender, uint256 ...
0
votes
1answer
256 views

Transaction dropped and replaced but still shows as pending in etherscan

I canceled a transaction by sending another 0 ETH transaction to myself customizing the nonce in Metamask. Now the canceled transaction shows as "dropped & replaced" in etherscan, but it'...
0
votes
1answer
45 views

Gasless transactions - sending transaction instead of signing message. How does it work?

I'm following this tutorial: https://docs.openzeppelin.com/learn/sending-gasless-transactions But it doesn't really explain clearly how it works in details. A standard transaction is pretty simple to ...
1
vote
1answer
26 views

ComponentDidMount doesn' detect Metamask change account

I'm quite new to Web3 and Metamask and would like to ask how should I change the basic componenDidMount of the React truffle box so that it can detect and change accounts when I'm switching an account ...
0
votes
0answers
18 views

Where does Metamask mobile for Android store wallet seed or private keys?

I'm curious where Metamask mobile app on Android (Samsung phone) stores the wallet seed phrases and/or private keys as a vault file in the phone. I can find it on Windows but I don't know where to ...
1
vote
0answers
73 views

What to do if Metamask doesn't show a deposit because it's an “internal transaction”?

This is a follow-up on the question "Do all transactions show in Metamask wallet?" from Sky Hayward, in which Sky asked about transactions that show up as successful on etherscan, yet the ...
2
votes
0answers
379 views

How to select a different Metamask address when using Uniswap?

I want to use Uniswap with my hardware wallet. So I go into my Metamask wallet, connect to my hardware wallet, I see my coin balance, then I open Uniswap. The trouble is that Uniswap is showing an ...
1
vote
1answer
545 views

How can I disconnect a Metamask wallet from Uniswap?

As soon as I go in Uniswap, it already loads the Metamask wallet that was used previously... but I do not want to use that Metamask wallet, I want to use a different Metamask wallet. How my I do this, ...
0
votes
0answers
30 views

Transaction Not Showing up, all others Queued..Please help

The following transaction is not showing up and when I send a 0eth to myself that gets queued: https://etherscan.io/tx/0x58dd1572721eee70a796dd021b19cd08dbde7f5e5be90caa9c2ae9fe0151a0d9 Please refer ...
0
votes
1answer
185 views

Do all transactions show in metamask wallet?

Bare with me I'm new here :) I've been selling art on Rarible but I can't tell if the Eth is going into my account. Because I'm minting nft's I can't keep track of my Eth total. My wallet activity ...
0
votes
0answers
27 views

MY ETH DOESN'T ARRIVE AT MY METAMASK WALLET BUT SENT TO A LIVECOIN ETH ADDRESS

I transferred Eth from Bilaxy to my Metamask Wallet,I used copy method and pasted the address on my bilaxy withdrawal and sent 150$ worth of Eth,after waiting for so long,I had to check the ...

1
2 3 4 5
21