Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

ethereum.removeListener not working, how to fix?

I'm using etherum.on listeners and would like to remove them as advised by the documentation, however the ethereum.removeListener does not work. I am using js not ts. How to remove the event listener?...
  • 237
0 votes
1 answer
8 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
25 views

ERC721 Open Zeppelin (BUY NFT) : function buy(_tokenID) gives error: "Fail with error 'ERC721: approve to caller'" in Polygon

I hope you are doing well? I am new to the world of web3 and to this forum and I hope to find some help in solving my problem. I create an ERC721 contract that would initially allow me to be able to ...
  • 3
0 votes
0 answers
13 views

Confirm button greyed out on Metamask when trying to interact with Uniswap contract

I'm trying to run a script in order to execute a Uniswap swap. When the transaction is submitted, MetaMask doesn't allow me to confirm the transaction (the confirm button is greyed out). On MetaMask's ...
1 vote
1 answer
16 views

react ethersjs metamask with Custom RPC provider

in my react app i want to use alchemy/someother-provider RPC and i want to use metamask as singer ( window.ethereum ) how to i set that ? my current code : var provider = new ethers.providers....
1 vote
1 answer
22 views

Metamask Unity Plugin shows different Ethereum amount for user confirmation on Metamask mobile wallet than that requested by Unity

I am integrating the MetaMask Unity Plugin given here: https://assetstore.unity.com/packages/decentralization/infrastructure/metamask-246786 and followed the docs provided here: https://c0f4f41c-2f55-...
0 votes
0 answers
14 views

How can I interact with metamask extension via embedded javascript?

Let's say I am building browser based trading bot, which I want to be able to: Be inserted to the page via extension or raw javascript code; It will click here and there until MetaMask extension ...
  • 1
0 votes
0 answers
9 views

eth_estimategas strange behaviour in Metamask

I'm running Hardhat and testing with Metamask and found something strange in the Hardhat console output. This happens when I go to Metamask and select my contract's token, then click "send", ...
  • 81
0 votes
1 answer
9 views

Transferred ETH to Metamask

I Transferred ETH to Metamask, and shows received, and ok on Etherscan, but not showing under assets. Tried resetting, and transferring to another account, but no results.
0 votes
0 answers
12 views

How to set up my own ganache provider in web3-react?

There are no examples or documentations about setting up my own provider in web3-react library. Can someone provide a simple example about that? Here is my attempt: src/connectors/metaMask.js import { ...
  • 1
0 votes
0 answers
15 views

How to set gas price to zero?

I set Nethermind to zero gas price: "Blocks": { "MinGasPrice": 0 }, Nevertheless, MetaMask for this network shows rather big positive gas prices and does not allow ...
  • 1,634
0 votes
1 answer
21 views

Solidity smart contract to send hard coded ether amount to hard coded wallet address in Remix IDE with out using the Remix input value field

I am trying to send ether from one wallet to another. The receivers wallet and the ether amount is hard coded in contract. This is how the contract looks. I am using the Remix IDE with injected ...
0 votes
0 answers
7 views

Query on connecting Metamask

My code is this: async function connect(){ const _abi = abi.abi console.log("abi is", _abi) const address = "0xEBfead02c119AAf45fFcE71C948538aC5E20C65e" ...
  • 95
0 votes
2 answers
27 views

Metamask balance

How does Metamask keep the updated balances of my ERC20 tokens? What happens in the background that as soon as I receive an ERC20 transfer, the balance gets updated? Who calls balanceOf()?
  • 563
0 votes
1 answer
11 views

why metamask doesn't charge me for checking my wallet?

why metamask doesn't charge me for checking my wallet? My understanding is that if you query your account, which is an blockchain address, you need to pay gas fee. But I don't think metamask charging ...
  • 117
0 votes
0 answers
15 views

MetaMask can't detect token in local network

I'm working on a local environment by Truffle and Ganache so that MetaMask is set to it. I created an ERC20 token there and imported it to MetaMask according to this guide. But, MetaMask doesn't list ...
  • 481
0 votes
0 answers
14 views

Open Metamask with parameter

I would like to open metamask and send token specific. I have 2 questions: How to change token. How to change amount. I want to sent token MT(USDC) but when call metamask alway open sent token MATIC....
1 vote
2 answers
47 views

Why Injected Provider - MetaMask not working

Currently i m working in remix and metamask. Before 1 month the metamask account connected to the remix ide but now it is not connecting. I tried updating the extension yet it is not working. I also ...
1 vote
1 answer
31 views

what this error and how to solve it with metamask wallet?

this error appears when the buyers buy nft item on opensea Internal JSON-RPC error. ( "code": -32016, "message": "The execution failed due to an exception.", "data&...
1 vote
0 answers
22 views

How to view balance of ERC1155 in Metamask?

I've deployed an ERC1155 Token via openzeppelin wizard and on importing that contract in Metamask I am facing this following issue How can I fix this? Here's my code // SPDX-License-Identifier: MIT ...
0 votes
1 answer
21 views

Learning to write a basic contract that sends goerli ethereum to another contract

Hello. I am doing online problems and learning to code in solidity. I found a page with the following problem, however it doesn't have answers to the problems. This is the prompt: "This project ...
  • 1
1 vote
1 answer
25 views

Metamask not recognizing Hardhat network on EC2 instance: "Could not fetch chain ID Is your URL correct"

Using the following installation on AWS EC2 Server Ubuntu 20.04 npm install --save-dev hardhat@2.8.4 using the following command: npm hardhat node getting the (following) response ( warning sign: ...
  • 11
0 votes
1 answer
28 views

Why is dangerous to share metamask logs?

Sorry for the noob question, but if the Metamask logs don't contain a secret phrase, why is it dangerous to share it online? Also, can hackers get hold of my Metamask wallet logs without hacking my ...
  • 1
2 votes
1 answer
38 views

I Think I might have been scammed - Hoping For Help PLEASE

So i think i fell into a smart contract scam. It started buy using https://remixethereumcompiler.io/ and creating a contract and funding it. I did that but can withdrawl the money. I looked at the ...
1 vote
0 answers
15 views

How to change rpc url programatically in MetaMask?

I have custom sidechain network and want to change rpc url, without changing a chainId. Is this possible to do programatically? Like "Provider.setRpcUrl(...)". I know there is ...
  • 111
0 votes
0 answers
21 views

Cannot change the Environment to `wallet connect` in remix desktop IDE

I want to connect to Metamask from my remix desktop IDE. I follow these URL Using Remix Web3 Provider with Infura But after doing all the steps successfully, at point 5,when in DEPLOY & RUN ...
  • 101
1 vote
1 answer
113 views

when ever i request for testnet goerli or sepolia i receive the testnet some random address it been received from me

this address is receiving all my testnet eth 0x000ED96F3C5636BBB1A4fa59B96C2CCD042e5000 without my permission and approve has you can see the second i receive the eth its been send to that address i ...
1 vote
1 answer
32 views

How to connect react web to metamask mobile appliacation?

I am looking for a way to connect metamask wallet to my react application using mobile (android and ios both), already integrated the wallet connection via chrome extension for desktop as follow const ...
2 votes
1 answer
54 views

Can someone explain me providers and the different types of it?

I can make providers using ether-hardhat, alchemy, and metamask. What is the difference between these?
  • 310
0 votes
0 answers
10 views

Bitstamp withdrawal to my metamask, amount not credited to my balance, in etherscan only "internal transactions" it shows

Hello i have withdrawn eth from bitstamp to my metamask. on etherscan the withdrawal is shown in "internal transactions". But the eth isnt credited to my balance.. how can i fix this ? Thx
  • 1
0 votes
0 answers
23 views

Inspect messages to metamask

There is a new crosschain dap meson.to that I am using. The dap allows for cross chain stable transfers by signing a message in metamask. I am wanting to use meson in web3.py. I am familiar with ...
1 vote
1 answer
25 views

How to expose Ganache to local network?

I have a .appx installation of Ganache for Windows. I've made a blockchain on it & deployed a smart contract. Now I want to test it on Android Metamask. But Ganache address is only listening to my ...
0 votes
0 answers
7 views

Error uploading file

I am developing a NFT marketplace using React , Solidity and Tailwind CSS. I have completed my frontend. I am facing issue while minting my NFT to the website. Did anyone can help me ?
1 vote
1 answer
28 views

Understanding how Metamask queries the balance of an ETH address from a RPC node

I'm trying to create a custom RPC node, but first I want to understand what's in a metamask request from an RPC node. From the following api call below using CURL, we can see that you need to pass in ...
1 vote
1 answer
16 views

Is there a RPC API equivalent of fetching my Ethereum balance by using CURL in the cli?

Since metamask connects to a RPC server and passes in the eth address to make a api request. Is it possible to do the same functionality using CURL in the cli to do a basic balance inquiry of an ...
1 vote
1 answer
36 views

How to know that I am in mainnet or not?

I use Metamask. Until now I used the goerli testnet network for my development project. I use ethers.js also in my project. Now how can I implement a test for knowing the network if it is goerli or ...
  • 125
0 votes
0 answers
50 views

JsonRpcEngine: Response has no error or result for request

I have an NFT marketplace project deployed on Vercel. I am having issue when minting the token. I upload them to Pinata without issue, the only thing when I call const tx = contract?.mintToken( ...
  • 1,330
2 votes
0 answers
52 views

How to send USDT from Metamask in Binance smart chain in Dart?

There is an online shopping app written in Flutter, right now, this app can connects to the Metamask wallet using walletConnect_dart package. It gets user's account address. The goal is to pay with ...
0 votes
1 answer
23 views

Error with Withdrawing Ethereum into Account

I am attempting to withdraw ETH from my smart contract that I have deployed using Solidity in Remix. I have already deposited 0.001 ETH into the smart contract using MetaMask and wish to use the ...
  • 1
0 votes
0 answers
74 views

What is the network id or the hex value of the goerli testnet in metamask?

This is an example of the hex value for the localhost and for kovan .Since kovan is deprecated I'm left with testing it out with goerli and am not able to find the network Id, i tried "5" ...
0 votes
0 answers
12 views

Need help with a hacked MM defi wallet

How do I find software to run on my hacked defi wallet so I’m can beat the hacker to my tokens which he is harvesting from my staking which produces tokens 24/7.
  • 1
0 votes
0 answers
8 views

Can logging into your etherscan or signing into google through web3 dapp browser be a mistake?

Let's say an inexperienced user logs into their Google account through the ol "trustbitmask" wallets browser to get random things like email passwords etc. So they can log on to their ...
0 votes
0 answers
12 views

How to encrypt an non encrypted message using the same method as metamask?

I've been playing around with the decryption API MetaMask provides here: https://metamask.github.io/vault-decryptor/ I'm wondering if anyone know if there's a way to re-encrypt the same seed phase to ...
1 vote
0 answers
57 views

Payment URL/metamask deeplink does not work for transferring USDT in Arbitrum network

I generated the following deeplink with https://metamask.github.io/metamask-deeplinks/# https://metamask.app.link/send/pay-0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9@42161/transfer?address=...
  • 61
0 votes
1 answer
35 views

How to get Publickey of metamask by Public address?

I want to get Publickey of metamask by Public address
1 vote
0 answers
56 views

How to solve this error MetaMask - RPC Error: The requested account and/or method has not been authorized by the user?

I used below code from account 1 on metamask to encrypt certain text let encryptionPublicKey; await window.ethereum.request({ method: 'eth_getEncryptionPublicKey', params: [account1], // you must ...
1 vote
1 answer
30 views

How to get metamask address with infura?

I am very new to the blockchain programming. I installed the metamask browser extension on my google chrome. I funded it everyday through Alchemy. Now I am working on a Laravel project which involves ...
  • 125
0 votes
1 answer
41 views

Deploy contract to goerli infuria without signing the transaction

Is there a way to deploy a contract on goerli infuria, using web3.js and metamask so I don't have to sign the transaction, or is it possible to use metamask to sign it, without having to provide the ...
0 votes
2 answers
31 views

Test Metamask interactions from a hardhat project?

Is there any way to test user interaction with Metamask from a hardhat project? I understand that hardhat is a browser addin, but I want to test useraction between my contract and metamask interaction ...
  • 641
0 votes
1 answer
92 views

How can I add Rinkeby in Metamask?

I have a problem: I can't add Rinkeby Test Network in Metamask. First, I tried to add it from settings -> show test networks(on) and it doesn't work. Then I tried to add it manually and I created ...

1
2 3 4 5
43