-
Is it possible to still let the metamask browser extension popup appear when you dont have enough funds in your wallet? "MetaMask - RPC Error: err: insufficient funds for gas * price + value" (which is correct). When I use web3, the metamask popup still opens and the accept button is just greyed out. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
It can be possible that the error is due to |
Beta Was this translation helpful? Give feedback.
-
Hi, I have been trying to work around this to get the Metamask popup despite insufficient funds. From what I have tried, as long as the gasLimit has as value, the Metamask popup will show, but providing a fixed number doesn't seem to be practical in reality. So I tried to |
Beta Was this translation helpful? Give feedback.
-
I'm unable to get this to work. Does anyone have a code example of how to do a proper gas estimation and still get Metamask to pop up when the user has insufficient funds? |
Beta Was this translation helpful? Give feedback.
-
I still have not found a solution to this. Is this possible with ethers js? I'm thinking I might have to retreat back to web3.js because this behavior is utterly baffling to my users (when the amount needed isn't quite enough because of gas and my app says 'insufficient funds' they think my app is broken. If I could pop up metamask and let metamask explain the situation they'd believe metamask). |
Beta Was this translation helpful? Give feedback.
It can be possible that the error is due to
estimateGas
. To skip that call, can you pass in agasLimit
override and see if it works? If you need to estimateGas anyway, you can have a separate line before withgasPrice
as 0, so that it doesn't give you an insufficient funds error.