Questions tagged [metamask]
Question about the Metamask chrome's plugin.
2,176
questions
1
vote
0
answers
36
views
"ProviderError: transaction would cause overdraft" with gasPrice of 1 wei
I have a hardhat deployment script that has been working for months.
But a few hours ago, it stopped working, and I keep getting gasPrice related errors.
I tried:
gasPrice: "auto"
gasPrice: ...
0
votes
1
answer
32
views
MetaMask - failed transaction, maximum gas rate suggested is to low
I recently bought a code for a coin flip game and I have been modifying it while I learn to program. I have reached the point of launching the website but when I play and approve the transaction I ...
0
votes
0
answers
13
views
How to find issue with a bare bone token bridge
Basically, I want to setup a very simple token bridge try to bridge some custom tokens between BSC testnet & Goerli testnet.
For BSC testnet, I created 2 solidity code: TokenBSC.sol & ...
0
votes
1
answer
18
views
Adding hardhat as a network on metamask error
New RPC Url: http://127.0.0.1:8545/
ChainId: 31337
Could not fetch chain ID. Is your RPC URL correct?
I am trying to run a local blockchain using hardhat but during configuration it is showing this ...
1
vote
0
answers
102
views
Pancake swap hack
I have been recently victim of a pancake swap by buying some custom token.
My Ledger and my Metamask were connected to pancake swap while i tried for the 1st time a Crypto Pump found on Telegram (a ...
1
vote
1
answer
55
views
Fail to send erc20 on metamask - BEP-20 Token Transfer Error (Unable to locate corresponding Transfer Event Logs)
i have been using my 1st testnet token for 2 months+, all works great, but suddenly in mid August error as per title starts popping up.
So now i cant send this token using metamask to other wallet.
...
1
vote
2
answers
67
views
Why is the account same cross different network in metamask?
I have installed metamask on chrome browser and I can see there are some networks like ethereum, Goerli, Rinkeby etc. I know some of them are test network. When I create an account in one of the ...
0
votes
0
answers
66
views
I purchased 60k shibarium tokens 8/19. 8/20 the value dropped 700% and contract address changed. What do I do?
I purchased Shabarium Tokens on 8/19/23. On 8/20/23 the contract address changed and the asset value under the old address dropped 700%. What do I do?
2
votes
2
answers
31
views
How to Reduce Wallet Prompts for Enhanced User Experience in a Blockchain Gaming dApp?
I am developing a gaming dApp on the Ethereum network and aim to optimize the user experience, particularly in interactions with the blockchain. A major challenge is the frequent Metamask prompts ...
0
votes
1
answer
71
views
Gas Estimation Error during deploy a smart contract using remix IDE with Injected Provider (Metamask)
When I try to deploy this smart contract address Using Remix IDE with Injected Provider Metamask wallet (Polygon Mumbai testnet)
//SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
import &...
0
votes
0
answers
28
views
Connect & interact with dApp without wallet connection
I have a question regarding the issues I am facing on my current project. I am building NFT marketplace on the Polygon network.
The specific requirement is we should allow the users can interact with ...
0
votes
1
answer
89
views
Lost tokens on pancakeswap
I did a small swap on pancakeswap (metamask wallet) in order to understand how the whole stuff work, so i swapped 2 usdt into ONPAY coin, i did import it in my wallet, then i checked and it was in the ...
1
vote
2
answers
87
views
Why i get evm revert error when calling the method from dapp front end (web3js & metamask)??? but my contract works fine on remix and bscscan
I've created a smartcontract & deployed on bsc testnet. For the past 8 weeks, i have been upgrading and testing the contract on remix and website and they always works fine. I can mint on remix ...
1
vote
0
answers
83
views
How do I fix Error: Deployment Failed on ganache?
I am encountering this error while deploying my smart contract on the Ganache blockchain, can anyone help me fix it?
Error: *** Deployment Failed ***
"Coffee" hit an invalid opcode while ...
1
vote
1
answer
225
views
Event triggered multiple times - wagmi - watchAccount
I've created a Dapp that uses react, web3modal and some functions from wagmi. What I'm trying to achieve is the following:
User clicks button for connecting wallet -> web3modal is displayed -> ...
1
vote
0
answers
209
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:...
6
votes
1
answer
105
views
MetaMask doesn't catch ERC20 reverts
When MetaMask interacts with most contracts, it seems to catch reverts and warn the user. However, when the user interacts with an ERC20 contract's transfer function, MetaMask does not catch a revert. ...
0
votes
0
answers
27
views
Can I add an NFT image to MetaMask on the Ganache test network?
Here is my code:
const addImageToMetaMask = async (_tokenAddress, _tokenName, _tokenSymbol, _urlImage, _tokenId) => {
try {
if (typeof window.ethereum !== 'undefined') {
const provider =...
0
votes
1
answer
42
views
Front Running scam [duplicate]
Guys thats the code is there not a way to withdraw or do something to the funds that are stuck on the address. I used remix ethereum website
pragma solidity ^0.6.6;
// Import Libraries Migrator/...
0
votes
0
answers
9
views
Decentralized E-Authentication System for Student Portal with Ethereum-based Decentralized Identity Management and Access Control
I was given a final year project to build a Decentralized E-Authentication System for Student Portal with Ethereum-based Decentralized Identity Management and Access Control. I'm new to web3, please ...
0
votes
1
answer
93
views
Help - MEV Contract [duplicate]
I created an deployed a MEV bot via remix.re — after deploying the contract — I noticed the internal transaction sent to an unknown address.
Any help on seeing what happened here??
My Contract Address
...
4
votes
1
answer
148
views
How to sign message EIP-712 with whitespace in name?
I have a message need to sign like below
message = {
"types": {
'EIP712Domain': [{
'name': "name",
'type': "string"
...
1
vote
1
answer
58
views
Why does MetaMask cap the gasLimit for ERC20 transfers?
We have found that MetaMask doesn't appear to actually estimate gas for ERC20 transfers as it does for interactions with other contracts.
Here, it appears to estimateGas when the interaction is with a ...
0
votes
0
answers
397
views
How to implement wallet connection with Ethers.js v6 for multiple providers (MetaMask, Coinbase)
I'm building a DApp and want to provide wallet connection options for users. I'm using Ethers.js v6 for Ethereum interactions. My goal is to allow users to click buttons like "Connect to MetaMask&...
0
votes
0
answers
58
views
Can't connect to Polygon wallet via ethersjs on production: Error: unknown account #0 (operation="getAddress", code=UNSUPPORTED_OPERATION
I'm creating an application where the user should be able to connect their wallet to the Polygon network. It works on my local machine (localhost), but fails on production (the live site). This is the ...
2
votes
2
answers
267
views
What is the difference between eth_sign and personal_sign?
I am digging into the difference between eth_sign and personal_sign.
What I found is that personal_sign is way more secure than eth_sign.
why?
eth_sign encrypts message with the user's private key and ...
0
votes
0
answers
177
views
Token Balances for sepolia testnet not updating in metamask
Token Balances for sepolia testnet not updating in metamask when sent from faucet (aave in this case). I can send test ether which works appropriately. I have added tke token contract address (see ...
1
vote
0
answers
85
views
Importing ERC20 token on Ganache silently fails
I have deployed an ERC20 contract on my local Ganache network, I am trying to add it to Metamask. It seems to find it, but then fails to display it in my token list after import:
First I add the token ...
3
votes
3
answers
197
views
MetaMask incorrectly estimates 100,000 gas for ERC20 transfer. Why?
MetaMask is incorrectly limiting the gas limit estimate to 100,000. This is actually a rather complex "transfer" that will need about 145,000.
Why does MetaMask limit ERC20 .transfer() to ...
0
votes
1
answer
395
views
could not coalesce error (error={ "code": -32002, "payload": { "method": "eth_requestAccounts",
complete error-
could not coalesce error (error={ "code": -32002, "payload": { "method": "eth_requestAccounts", "params": [ ] } }, payload={ "...
0
votes
0
answers
15
views
No coins received from Kucoin to Metamask transfer
This is the hash number:
0xc9a55ff01e26ccbd5f0484d351c61735e0088ba025b54f98f08d6bc944fd6ec0
I transfered from kucoin to metamask, transaction states successful, but I don't see my coins on metamask.
0
votes
1
answer
71
views
How to increase spending cap in metamask?
I agree to allow 10k coins.
But then latter I want to do 50k transaction.
How would I do so?
0
votes
1
answer
50
views
What is the Web3 approach to storing secret tokens (for example, when need to store the local salt for commit/reveal pattern)?
What is the Web3 approach to storing secret tokens (for example, when need to store the local salt for commit/reveal pattern)?
I'm currently using local storage.
For example in Web2 a back-end layer ...
0
votes
0
answers
13
views
"not logged in" when metamask gets locked by password
I have a pretty standard code used by logging in via MetaMask, something similar to this:
const connectWallet = async () => {
const provider = new ethers.providers.Web3Provider(window.ethereum)
...
0
votes
1
answer
10
views
When a wrong network in MetaMask is active, how to prevent from or warn the user?
There's a button for minting an NFT on my website. Somebody, during a test, when trying to mint a token was using a wrong network -- Ethereum mainnent instead of Arbitrum Goerli. And a TX got through ...
0
votes
1
answer
268
views
unpredictable gas limit error doesn't go away after setting gasLimit manually
I have this contract which is written in solidity and one of the functions (getMyActivity()) returns an array of structs and im trying to call it from my frontend which is written in ReactJS but i get ...
0
votes
1
answer
181
views
How to use signer details from ethers.js to sign transactions with web3.py
I'm trying to use web3.py in my decentralized application to allow random users to sign transactions in my dApp with their Metamask wallet. I realize we need ethers.js to connect to the user's ...
0
votes
1
answer
85
views
Metamask just started throwing a -32000 error for gas estimation via web3.js
I've been using this code successfully for 8 months:
const gasAmount = await this.factory.methods.createContract(
Math.floor(new Date(contract.expirationDate).getTime() / 1000),
...
0
votes
1
answer
29
views
How can I lock some coins in a user's Metamask wallet? (using solidity and web3js)
I am developing a tic tok toe game on the blockchain platform. The game is like this, a user connects to his Metamask wallet and creates a game, after creating the game, the contract address is ...
0
votes
0
answers
9
views
question about new contract
contract deployment on metamask isnt working (my contract is below)
How i do make like picture above?
0
votes
0
answers
6
views
Metamask is not detected automatically while loading Dapp in Production build , but it does load when hosted on localhost
///GetWeb3.js ///
import Web3 from "web3";
const getWeb3 = async () => {
let web3;
if (typeof window.ethereum !== "undefined") {
web3 = new Web3(window....
0
votes
1
answer
15
views
If i am setting up metamask for a local ganache server only, do i need infura at all?
I will build my own metamask from the open source code, becuase I want to have my password stored so that i can run tests without having to click on metamask and confirm my password.
While setting up ...
1
vote
0
answers
8
views
When using the zodiac modulue my transaction simulation works but, when i try executing my transaction on tally it reverts the transaction
i keep trying to use the zodiac govener module on my gnosis safe but no transaction is working at all, ive followed the youtube guide and firstly when i use the transaction encoder i get this error ...
0
votes
0
answers
48
views
I'm new to this and wanted to see if this contract is legit and not a scam but I'm thinking its a scam I just want a better understanding
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.6;
// Import Libraries Migrator/Exchange/Factory
import "github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/interfaces/...
1
vote
0
answers
43
views
Missing PLU Deposit on Coinbase
On May 8, I have initiated a transfer of 17.57 PLU from my Metamask Wallet to Coinbase account/address. Initially, the transfer appeared to go through smoothly as it was confirmed within seconds by ...
1
vote
1
answer
25
views
Getting access to accounts I don't recognize in Metamask
What is happening? It´'s been two times I get access to accounts that are not mine on Metamask. I just paste my recovery phrase (or what I think is my recover phrase) and boom. Once it gave me access ...
1
vote
0
answers
71
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 ...
2
votes
1
answer
70
views
What's the best authentication/authorization system for DApp using ReactJS and Metamask
I'm building a DApp with reactJS for the frontend and solidity for the backend. I want to build a solid authentication/authorization system possibly using some libraries but i can't find anything that ...
0
votes
1
answer
26
views
I sent tokens to the wrong Ethereum token address from my Trust Wallet?
I intended to send tokens to my Metamask address, but made an error on the token address which turned out to be a legitimate address, so the transaction was successful but it was not my intended ...
0
votes
0
answers
21
views
fetch any chain logo online
is there a place online to fetch a needed chain logo?? Thank you
Im fetching the name of a chain with this link https://chainid.network/chains.json but it doesn't contain any logos...(