Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
0 votes
2 answers
319 views

When To Prompt for Signing Message?

What is the usecase for a user signing a message? For example, I see in many login tutorials, that once we get the wallet address from Metamask, we have to have the user sign a message with a provided ...
0 votes
1 answer
13 views

Transfer of of Gas Fee between accounts

I have an account on a NFT platform. Can another person, who also has an account on the same NFT platform, transfer ETH from his account into my account to supplement my gas fee?
0 votes
2 answers
464 views

How to solve Unhandled Rejection (Error): invalid address error with web3 js

Whenever I run the code I get an error saying "Unhandled Rejection (Error): invalid address (argument="address", value=["0xF628D397c2C1c4cB485BDF5441ac723B229f4F8f"], code=...
3 votes
2 answers
1k views

Ether is not reflecting in my Metamask account

My friend has transferred me some ether to my Metamask account but the ether hasn't reflected in my wallet. But in the ether scan, it is showing that my transaction was successful. What can I do to ...
0 votes
1 answer
2k views

WalletConnect (Metamask Mobile) configuration with React Native app

Hey can anyone help me on below points- Connect React Native (expo or xcode) Mobile App to Metamask Mobile Application with the help of Walletconnect Not presenting the QRCode Modal but list of ...
0 votes
1 answer
364 views

revoking any or all smart contract permission given

my question is can I revoke any permissions given to a third party website to acces unlimitted funds from my account.if its possible can someone make a script or guide me into doing it.Cause my funds ...
2 votes
0 answers
1k views

How to catch reverted transaction while using metamask

I'm working with metamask and was testing a transaction that should trigger a revert statement inside my contract. When the error is thrown metamask gives the following output: this was while using ...
1 vote
2 answers
1k views

truffle migrate hanging on Deploying Migrations

I am deploying a contract on Ropsten Network,These are my settings 2_deploy_contracts.js var SafeMath = artifacts.require("./SafeMath.sol"); var TahaCoin = artifacts.require("./TahaCoin.sol"); var ...
1 vote
1 answer
514 views

How to prevent user to change recipient address when MetaMask transaction window pops up?

I want to integrate MetaMask as one of payment methods on my website. The idea is to lock my content, when user made a successful ETH payment so the content will be revealed. This is the source code: &...
0 votes
1 answer
378 views

How to connect AWS node with Metamask?

Sorry its really primitive and silly question but I'm very low on information about this area but from the things I've heard and I've seen I managed to create a node from "https://eu-west-2....
0 votes
1 answer
422 views

Hardhat & Metamask not showing imported custom token

I have a custom ERC20 deployed on Hardhat. I set a random token balance on 10 Hardhat accounts, which have all been imported into Metamask. A call to balanceOf in the contract confirms the account ...
1 vote
1 answer
587 views

As a developer how to let user of your DAPP choose the preferred wallet

In the DAPP I am building I want to let users log in with their wallet of choice. Currently I have two wallets, Metamask and coinbase wallet. The function window.ethereum.enable() injects web3 ...
0 votes
1 answer
795 views

My metamask extension is not getting connected to ganache local block chain

This is my Html code : <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> ...
1 vote
1 answer
1k views

Account Extended Private Key / BIP32 Extended Private Key need to import MetaMask?

I would withdraw ETH from my Binance account and give ETH as christmas gift to my nephew and my niece. 1: Is it any drawback in a long run if I use not the ETH network but BSC? In 10-20 years or so. ...
0 votes
1 answer
508 views

Possible to connect MetaMask with Discord bot?

I am creating a Discord bot in Javascript which is going to be a crypto game that I want to make, and I would like my users/players to use meta mask as a wallet... Is it possible with an API or a ...
0 votes
1 answer
891 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
1 answer
990 views

ERC20 Token support for metamask website payment

I have the following code working in my site to accept ethereum payments in my website via metamask.... <!DOCTYPE html> <html> <head> <script src="https://cdnjs.cloudflare.com/...
0 votes
0 answers
6 views

How to probe ownership of a MetaMask derived encryption public key?

If I were to store the messages targeted to a specific encryption public key generated by MetaMask (using x25519-xsalsa20-poly1305), how could I allow the recipient to authenticate and claim the ...
1 vote
3 answers
989 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
1 answer
13 views

in cloud window.ehtereumundefined,in local window.ehtereum is object

I am developing a dapp now, deploy the dapp in local PC, it can connect with browser extension, window.ehtereum is Object, but deploy it in aws cloud, it cann't connect with browser extension, window....
0 votes
2 answers
309 views

0x API: Invalid Signature

I found out how to sign an approval into Metamask,in conformity with EIP712: const domain = [ { name: "name", type: "string" }, { name: "version", type: "...
0 votes
1 answer
22 views

(Gnosis) Safe Transaction Not Showing In Metamask

I have a Metamask wallet and a (Gnosis) Safe wallet on the Sepolia network. I sent some Sepolia ETH to the Safe wallet (this transaction shows correctly in Metamask). I then sent some Sepolia ETH back ...
1 vote
1 answer
322 views

Getting "contract is missing links for the following libraries" error even after adding as libraries while getting contract factory using ethers.js

I deployed a contract with an external library using hardhat. Now I am trying to do a write operation on the contract but it is throwing an error: contract is missing links for the following libraries ...
0 votes
1 answer
544 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
1 answer
900 views

How to confirm a transaction in backend in behavior of the user?

I am developing an application where the front-end does not talk directly to the blockchain. Back-end does that instead, due to some proccesses that can only be done in the back-end (file manipulation,...
0 votes
0 answers
13 views

Why can I sometimes not send ETH through Metamask? Contract is payable and address is correct

Why does metamask sometimes not allow me to send eth to contracts...this contract and the function I'm calling was marked payable. See below
2 votes
2 answers
5k views

account recovery with web3 privateKeyToAccount()

I'm currently stucked by this strange thing: I started by exporting my private key(fdba67e41f7c6767100969ae3f045d10a59e35d380acf5b37a3b208bd2969347) from my metamask account, which i can use to login ...
0 votes
1 answer
2k views

Transaction underpriced

I used the search function, but I didn't find a solution. We want to create for our new religious NGO a ERC20 token. I got a sample contract, a Metamask account, went to redmix website and connected ...
0 votes
1 answer
599 views

How to send an NFT to another wallet and sing the transaction in Metamask?

I'm a beginner and trying to learn web3 and want to implement a transfer-button for NFTs (same as you have on Opensea, where you can transfer your NFT to another address). I have started of by having ...
0 votes
1 answer
767 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
0 answers
24 views

Call contract method via metamask without web3

https://docs.metamask.io/wallet/reference/json-rpc-api/ window.web3 is no longer injected by metamask, instead it is window.ethereum, but loads of methods are missing. It used to be very simple, just: ...
2 votes
2 answers
3k views

Error: gas required exceeds allowance or always failing transaction at chrome-extension

I'm using Remix, Metamask, ROPSTEN and can not deploy any contract...always getting the same message...it used to work...not working any more...happens in different machines, happens with Chrome or ...
9 votes
2 answers
647 views

Parity-like Solution for using Ledger Nano Anywhere

I'm looking for a "Parity-like" solution so that I'm able to use my Ledger Nano on any Ethereum-powered website that doesn't support a Nano natively (something like Radar Relay). I know I can do this ...
0 votes
1 answer
868 views

How to approve or give permission to access your tokens? Solidity /Metamask?

I'm currently creating a Dex which needs 1inch permission to access the users to tokens/funds. e.g The problem is permission doesn't show up but instead shows 'contract deployment': my current is ...
1 vote
1 answer
1k views

Hacked Ethereum wallet -- What do do with staked tokens?

My MetaMask wallet was unfortunately hacked and the hacker drained all of my tokens. I've sent some test tokens back to the wallet to check if the hacker had installed a smart contract to ...
2 votes
2 answers
3k views

disconnect wallet from metamask using ethers js

I've created a website on WIX (a web editor) and thought that I could add my code to engage with metamask and the smart contract that I've created, turnes out that wix doesn't support web3 so I ...
0 votes
1 answer
27 views

Alert after spending approval

This is a simple dAPP i am running via metamask. I have tried many things. window.alert(`Connected Successfully`); I have tried to add this window.alert to my code but it wont do much. async function ...
0 votes
1 answer
36 views

Send transaction only with signature

As far as I know, Metamask does not allow to sign transaction without broadcasting it to the network. So I can not generate a transaction on my server and pass it to the frontend that will sign me the ...
0 votes
2 answers
722 views

Unable to save new network in metamask wallet

So i took a mnemonic from the ganache. I imported it in the metamask wallet. And now when i am trying to create a custom rpc network where name would be GANACHE and rpc url http://localhost:9545 I am ...
0 votes
1 answer
309 views

How to get Publickey of metamask by Public address?

I want to get Publickey of metamask by Public address
1 vote
1 answer
1k views

Ethers.js and Metamask, how to get currently selected account?

I have two accounts in Metamask, one connected to my site and one isn't. I can use 'eth_requestAccounts' to get the connected account, the problem is that if I switch to the other account which isn't ...
1 vote
1 answer
57 views

Tracking the spedup transactions from metamask

while building a Dapp using metamask to make transactions, i figured that metamask is not responding correctly when a transaction is spedup, making my code wait forever for a canceled transaction that ...
0 votes
1 answer
424 views

Metamask doesn't connect to it's own localhost or hardhat localhost

Metamask doesn't connect to it's own localhost. I run a hardhat node from Mac. I know it's a known issue, but I've tried all available methods listed below. I tried installing older versions of ...
1 vote
1 answer
4k views

How to recover/find metamask wallet file

So I had foolishly kept my metamask passphrase only on StickyNotes. This meant when my computer crashed, I had to reinstall all my programs, but all my files remained. For some reason my stickynotes ...
0 votes
1 answer
31 views

Signature verification using web3js

I am using web3 library to sign a transaction and then verify it from the smart contract. The signature is not verifying. This is the frontend code const DomainSeparator = ethers.keccak256( ...
0 votes
1 answer
321 views

Metamask false positive error: ERC20 transferFrom tx displays "Exception thrown" error in metamask, but tx confirms fine

I'm fairly certainly this is due to approvals- that metamask thinks that an error will be thrown because the contract does not have approval to transfer the ERC20- even though the approval tx is ...
1 vote
1 answer
37 views

Metamask getBalance method doesnt work

When I wanted show my eth balance in my web site it gives me this "0x103cf17cc1518eb4" how can i turn into string?
1 vote
1 answer
662 views

Transaction fails during smart contract deployment from Remix IDE, while i confirm the transaction from MetaMask

I am able to connect to private ethereum network and able to do the transactions from Metamask, but while deployment of smart contract from remix IDE, it launches MetaMask and i get below error while ...
0 votes
1 answer
324 views

Is there a way to attach a "memo" to an ERC-20 `approve` transaction

I know that an ERC-20 approve method has only 2 parameters: sender and amount. I'd like to get an extra hash recorded on chain with the approval, so I can test it later when coming to process ...
3 votes
1 answer
1k views

Metamask Cannot Open (loading white screen)

I just tried opening Metamask, but it is not opening and displaying whitescreen with below errors in console : Error : MetamaskContentscript - lost connection to MetaMask Contentscript Forwarding ...

1
2 3 4 5
44