Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [metamask]

Question about the Metamask chrome's plugin.

876 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11 votes
3 answers
1k views

TestRPC and Metamask: hanging on pending transactions

I'm using Remix and connecting to Testrpc via Metamask. I can successfully launch contracts to testrpc, but then it hangs on the subsequent calls that Remix makes to the public methods (Remix says "9 ...
will_durant's user avatar
  • 1,154
9 votes
2 answers
653 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 ...
RBizzle's user avatar
  • 145
9 votes
2 answers
395 views

Error importing transaction: Transaction(InvalidChainId) in Private POA

Problem I am trying to send some transactions to my private chain, and all transactions are getting failed. I am receiving this error: Error importing transaction: Transaction(InvalidChainId) ...
Ayushya's user avatar
  • 1,698
7 votes
2 answers
629 views

Native mobile Dapp - Sign transactions with user wallet

I'm starting a new project that involves a mobile Dapp and I have a question regarding signing transactions. Every mobile Dapp post that I read about offered two solutions: Use a Dapp browser, such ...
rGonzalez's user avatar
  • 111
6 votes
0 answers
5k views

Can gas price and amount of gas be automatically set by metamask, or are they required to be set via code in web3.js (EIP-1559)?

I am using web3.eth.Contract to deploy a smart contract to the ropsten testnet. To interact with metamask I am using window.ethereum. I deploy the contract via the code below that I found on https://...
Slaven Tojić's user avatar
5 votes
0 answers
156 views

Retrieve MetaMask version in web3.js

Is there a way to determine the version of the currently installed MetaMask extension from web3.js? I can't find it by inspecting the Web3 instance.
pors's user avatar
  • 443
4 votes
2 answers
930 views

How do I put an Ethereum address in an HTML link?

I'm sure I've seen this done, but I cannot for the life of me remember where. I'm writing a simple HTML page, and on it I'd like to have an Ethereum address as a clickable link, so people with Web3.0-...
ccconforti's user avatar
4 votes
0 answers
534 views

Is it possible to access MetaMask functionality for integration testing?

I'd like to be able to access MetaMask to test potential user actions. I doubt it's possible to directly simulate sending transactions, but what I hope I can at least confirm is that transactions are ...
SuperCodeBrah's user avatar
4 votes
0 answers
13k views

Get RPC URL / IP of Metamask's current provider

Suppose I have multiple copies of the same dapp running on different servers which do not directly communicate with each other, for testing purposes, and can manually interact with different dapp ...
WBT's user avatar
  • 565
4 votes
0 answers
1k views

How to export extended (master) public key from MetaMask

I want to export extended public key for watch-only access to all ethereum addresses in the MetaMask HD wallet at once. It's very usefull for tracking of all portfolio/wallets in one place, especially ...
Artyom Krivolapov's user avatar
4 votes
1 answer
490 views

How can I use swarm with metamask or parity node?

I want to use swarm, but I wan't to download the all blockchain data. Is it possible to use metamask or parity node instead?
dingdang's user avatar
  • 175
4 votes
2 answers
8k views

MetaMask transaction rejected

Why transactions are rejected in MetaMask after conforming it? When a transaction is carried out in metamask it first get approved. after sometime it shows rejected. metamask is showing something like ...
user8106215's user avatar
4 votes
2 answers
6k views

Send Multiple transactions in ethereum from an eth address

I don't know if this question was already answered but my question is about a normal wallet address and not a smartcontract. So what I want to do is to launch multiple transactions with small gaz ...
rsabir's user avatar
  • 141
4 votes
1 answer
1k views

How deploy a smart contract with meteor and metamask?

I will deploy a smart contract with meteor and matamask. My code in main.js : var inactivityTime = 1000; var continuityContract = web3.eth.contract(Continuity.abi); var continuity = ...
n1c01a5's user avatar
  • 294
3 votes
0 answers
118 views

Metamask Token Balance

When Metamask gets the balance of an erc20 token, does it call the balanceOf(...) function on the token contract? Context: I am trying to implement a token with lockable functionality. With this token,...
Daniel's user avatar
  • 31
3 votes
0 answers
557 views

Bypassing metamask notice about "Insufficient funds for gas"

I wish to make a transfer of the remaining ETH from one wallet to an other. Trying to do it from metamask, it prevents me to do so with the "Insufficient funds for gas" error. Event though ...
challet's user avatar
  • 131
3 votes
3 answers
2k views

How do I wait for confirmation in metamask/ethers before proceeding

The following function happens when a user clicks a "withdraw" button in my dapp: const canUserWithdraw = async () => { if (b <= a) { alert("You can ...
ComicBookGuy's user avatar
3 votes
0 answers
490 views

How can I do contract call transaction from Metamask qr code scan?

I have a payable function in the smart contract that takes some ether from the sender and does some tasks. I want to generate QR code for this contract call transaction so that user can scan and ...
Abishek Bashyal's user avatar
3 votes
0 answers
483 views

Import NFTs data from Metamask

Goal: Sign in to the server with Metamask (done), import information to the server about NFTs from a wallet (not done) to our platform (trading platform similar to Opensea). Problem: Metamask uses ...
Dmytro Nasyrov's user avatar
3 votes
1 answer
2k views

How to get a list of all token holders using ethers.js + metamask

Is there any way, using ethers.js and metamask, to build an array of all current token holders? I would need this to my project which I'm currently working at. I know I can download the entire ...
Radek_pl's user avatar
  • 791
3 votes
1 answer
211 views

Which Wallets Support Login With MetaMask Concept?

I'm building an exchange service where I have all users deposit ETH and ECR20 tokens to a single Ethereum address (In order to avoid complications of having to consolidate funds & paying extra gas ...
S.O.S's user avatar
  • 181
3 votes
2 answers
715 views

Loader when confirm clicked in metamask

I want to add a loader to UI when there is a click on confirm transaction popup on metamask. When user clicks on confirm I want to show the loader until the transaction is confirmed. Is there a way to ...
yash vadhvani's user avatar
3 votes
0 answers
130 views

Parity Ethereum Metamask

I have setup one test node on my machine. When trying to connect to Metamask, I keep on receiving below messages on the node console and am unable to connect with node using Metamask. 2019-06-14 14:48:...
Siddharth's user avatar
  • 105
3 votes
0 answers
261 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 ...
Shubham Chadokar's user avatar
3 votes
0 answers
239 views

how to use getPublicEncryptionKey from eth-sig-util in a Dapp

The metamask repo includes small collection of ethereum signing functions: https://github.com/MetaMask/eth-sig-util There is a function (not exposed in readme section) named getEncryptionPublicKey ...
Marty's user avatar
  • 31
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 ...
Mani Chandra Teja Gaddam's user avatar
3 votes
0 answers
165 views

Quorum :- metamask do not support privateFor feature of quorum

i got to know that metamask do not support privateFor because of which private transaction for quorum dapp was not behaving as expected. so, I can't use metamask for my quorum DApp to switch port and ...
Surbhi Audichya's user avatar
3 votes
0 answers
1k views

NetworkError when attempting to fetch resource. Resource URL: moz-extension://2.../contentscript.js Source Map URL: ../sourcemaps/contentscript.js.map

I get the following error message in Firefox Developer Tools Console following a successful sendTransaction: "Source map error: TypeError: NetworkError when attempting to fetch resource. ...
trymriverman's user avatar
3 votes
0 answers
258 views

Where is the latest MetaMask hello world dapp example?

MetaMask recently added a new permissions check. I'd like a copy-pasteable hello world dapp that includes all best practices and can check the balance of the current user's ERC20 balance for some ...
William Entriken's user avatar
3 votes
1 answer
265 views

Remix + Metamask not fetching any values

I have a simple test contract that stores a hash and I deployed it via Remix and Metamask pragma solidity 0.4.25; contract Hash { bytes32 hash; constructor(bytes32 _hash) public { ...
Daniel Gretzke's user avatar
3 votes
1 answer
247 views

Function to return tuples throws error on frontend

I have similar functions like this and they work fine: function getBarsOfParticipant() external view returns (uint256[], uint16[], bool[]) { uint256[] barIds = participantToBarIds[msg.sender];...
Mindful's user avatar
  • 393
3 votes
0 answers
935 views

How to sign transactions using metamask while developing in nodejs?

I am developing an application in nodejs. I need to interact with my smart contract and also want to sign the transaction using metamask as I don't want to manage they keys. I copied the following ...
Nikhil Yadav's user avatar
3 votes
0 answers
1k views

Cannot read property 'EIP712Domain' of undefined

I get this when trying to recover the address using eth-sig-util as described here. The code is very simple and this is all it contains: var sigUtil = require('eth-sig-util') var recovered = sigUtil....
shaharsol's user avatar
  • 561
3 votes
0 answers
4k views

Does MetaMask provide access to acount's keystore file?

I am looking for my account's keystore file. I know usually this is only available through geth. MetaMask already provides the private key, but I'm not looking for the the private key, I'm looking ...
Nicholas Porter's user avatar
3 votes
0 answers
149 views

Not able to successfully do transactions of default MetaCoins(from Truffle) on local testnet on MetaMask

I have installed truffle and ran the default contract provided by truffle. I successfully compiled,migrate and put the default dapp on local testnet http://localhost:8080/.I am able to see the dapp ...
sauravs24's user avatar
2 votes
0 answers
50 views

Metamask doesn't work when sending EIP-681 transactions

I use this website to create EIP-681 transactions: https://brunobar79.github.io/eip681-link-generator/# My default wallet is Metamask. When I scan the QR code for the transaction and proceed it, it ...
Dakata's user avatar
  • 225
2 votes
0 answers
93 views

TransactionRevertedWithoutReasonError: Transaction has been reverted by the EVM when trying to mint an erc1155 token using web3

I deployed a solidity contract on polygon mumbai testnet using remix IDE and metamask as my Environment. I'm currently trying to call the mint function that mints an ERC1155 token in exchange for ...
Ciirno's user avatar
  • 21
2 votes
0 answers
895 views

"Error: write after end": ReactJS with web3js and MetaMask on Chrome

I have a ReactJS v18.2 project and use web3.js v1.8 for the blockchain connection. I have three environments: local, test, main. test and main are both on the same server, but run on different domains:...
tverdo's user avatar
  • 21
2 votes
0 answers
100 views

"eth_requestAccounts" but without causing MetaMask to pop up

This function call const accounts = await window.ethereum.request({method: 'eth_requestAccounts'}) .catch((e) => { console.error(e.message); return; }); will actively prompt ...
Camila326's user avatar
  • 115
2 votes
0 answers
514 views

Programmatically importing NFT to Metamask

Is it possible to call browser JS to import an NFT to the user's wallet once it's been minted? I'm wondering if the following configuration can be set programmatically:
Emanegux's user avatar
  • 123
2 votes
1 answer
189 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....
heelowyou's user avatar
2 votes
2 answers
161 views

Best way to programmatically get an eth address

I am wondering what the best practice is to get an eth address and send it to an API. Ideally, I am looking for a simple interface to grab the eth address and send it to the API and then send that eth ...
AAMCODE's user avatar
  • 133
2 votes
1 answer
2k views

"gas estimation failed" error using Uniswap. Can't fix it, please help

I can't sell alt-tokens back into ETH. This is an issue with multiple tokens, not just one and they all have very high liquidity ($Kabosu and $OHMI). I immediately get the error 'gas estimation failed'...
UniSwapper's user avatar
2 votes
1 answer
707 views

Deploy smart contract with metamask ethers.js and ganache

I want to deploy smart contracts on front-end with metamask address as deployer. To do that, I first compile the smart contract with Remix and put the json output on my React project (I use Ganache to ...
Silta's user avatar
  • 31
2 votes
0 answers
62 views

How metamask popup opens whenever something has to do with metamask provider?

I'm trying to build the similar wallet like metamask, I couldn't figure out how metamask popup opens whenever the code has to do something with metamask provider. Are they using any logic behind that?
Mohanraj G's user avatar
2 votes
1 answer
183 views

How to reload only one component rather then whole page when active chain is changed?

I have this react hook which reloads the whole page when the user changes network or account: useEffect(() => { if (window.ethereum) { window.ethereum.on("chainChanged&...
Nikita Kulikov's user avatar
2 votes
0 answers
4k views

Where do I find my public key in Metamask?

The official guides suggest this, but it's the address. Where should I be looking?
Boris K's user avatar
  • 197
2 votes
0 answers
510 views

How to get balance on metamask all network [bsc , eth, cro, etc] using web3modal

how to display the balance for metamask using web3modal with various networks, for example I am on the mainet bsc network I display the bnb balance, and if I use the ether network what appears is the ...
Changemind's user avatar
2 votes
0 answers
395 views

MetaMask RPC API 'This message cannot be decrypted' using eth_decrypt

I am attempting to encrypt an image, post to IPFS, get the image back from IPFS and decrypt. I have successfully achieved this with string data with no issues. When I try to do the same with image ...
Amber's user avatar
  • 21
2 votes
0 answers
218 views

Prompting Metamask window if user is not logged in?

I am trying to get user wallet address. The problem is that if Metamask is not logged in, it won't show any message. The below code will log 3 but not 4 if user is not logged In. So no error or ...
user1324762's user avatar

1
2 3 4 5
18