Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
0
votes
0answers
31 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
0answers
7 views

How to allow a client to access a smart contract function/interface via a website/Metamask?

I have created a smart contract to distribute a token in exchange for ETH (very similar to this example). I'd like a user to be able to access the interface method that sends the token out on my ...
0
votes
1answer
19 views

ERC1155 token does not have "send" button inside the Metamask wallet

I`ve found that any ERC1155 token does not have "send" button inside the Metamask wallet. Do you have any ideas? Thanks,
0
votes
0answers
13 views

Sign TX with metamask and generate TxHash before sending to node

I am creating an ERC20 payment for my website. It consists of: filling out a form. sending TxHash +form to backend to store in database. Listening to "transfer" method on the ERC20 contract....
0
votes
1answer
18 views

Transferring an NFT via MetaMask

Im onto developing my own NFT project. Im developing with the Truffle Suite and Ganache. I can mint the NFT to my address, but whats wondering me: I cant send the NFT because the "send" ...
0
votes
1answer
14 views

How can i get access to the account name and not the account address in metamask?

Instead of the account address like shown here, how can i get the account name instead?
0
votes
1answer
25 views

What are the risks of token approvals?

How exactly do token approvals work? As they cost gas fees, I assume they must be stored on the blockchain. Let's say, I approve uniswap to spend all my eth. Does that mean that a central entity has ...
1
vote
1answer
23 views

How Can I Connect Alchemy as a Custom RPC Node Provider in MetaMask?

I saw this doc on adding a custom RPC endpoint to MetaMask. I'm wondering what are the steps to fill out the information specifically if I have an Alchemy endpoint available? I would like to use the ...
0
votes
0answers
12 views

Recovering through seed phrase; Old MetaMask (mnemonics password) is still working to access the wallet?

When I do recovering my wallet using seed phrase, So on creating a new password and all doing fine. But when I try to unlock the wallet with old password; It's working!! Is there any approach to ...
0
votes
0answers
7 views

How to get and reuse programmatically mnemonics for a wallet in MetaMask chrome extension

I'm creating a desktop application based on chromium browser by Electron with pre-installed MetaMask extension. After importing or creating a new wallet on MetaMask chrome extension, I don't want to ...
0
votes
1answer
25 views

Metamask: is this the correct account? it is different from the currently selected account in your wallet

When I run transaction on metamask,it does always connected to one address and it does not detect address change: is this the correct account? it is different from the currently selected account in ...
0
votes
1answer
30 views

how to fetch private key of metamask account while transaction using web3.js

I have a problem, What I want is to user to come at my website, from where he/she can connect to its metamask wallet account, after connecting I want them to allow to do transaction from some specific ...
1
vote
0answers
4 views

Is there a config file to set the default network in a file for Metamask extension? I want to be able to set it as the Polygon network when it starts

I'm forking the metamask extension and I want to set the Polygon Network as the main network in my fork of Metamask. Is there a config file I can just edit to add this in before a user sets up their ...
0
votes
1answer
657 views

This transaction is expected to fail. Trying to execute it is expected to be expensive but fail, and is not recommended

Metamask is giving me that error. I am on ropsten network, I never had this issue before and I have enough funds: I have tried multiple times still getting same error. While it says "I will try ...
1
vote
0answers
34 views

Not able to call any method from contract in react js app (Solidity, Ganache, Truffle & React)

Not able to call any method from contract in react-js app, but if I print contracts in console, I can see all the methods that I've define in contract. I have also upload this project to git here is ...
0
votes
1answer
17 views

Can't run smart contract (BUSD) method on android chrome using web3js and walletconnect

I have a website that works fine on desktop chrome. Website provides you a possibility to transfer BUSD in BSC Mainnet to some accounts with Metamask. For mobile i use walletconnect in browser and ...
1
vote
1answer
20 views

How do I set required gas fee to zero for localhost on Metamask?

I'm doing a Solidity tutorial and trying to get a React example up and running. I've got Truffle running and when I run npm start and Chrome connects to localhost, Metamast says "Insufficient ...
0
votes
0answers
13 views

How to check if user is logged into metamask wallet?

So I have made a log in to make allow the user to enter a website through a metamask log in. However, once they log in and are redirected to the homepage,I want to make sure that if they disconnect ...
1
vote
1answer
33 views

How to get chainId currently selected in walletconnect?

I connected WalletConnect to my dApp, and it returned account address & chainId. After changing the chain on WalletConnect wallet, no event or function is called. How can I know at my dApp ...
1
vote
1answer
19 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
1answer
28 views

Sending eth to deployed contract between 2 metamask wallets

pragma solidity >=0.7.0 <0.9.0; contract StructMapping { mapping(address => uint) public balanceReceived; function getBalance() public view returns(uint) { return address(...
0
votes
2answers
43 views

ERC20 Token deployed to Ganache not seen on Metamask

I connected my truffle project to the ganache network. Also I added ganache network into the metamask. After deploying erc20 contract to ganache, I can see my account's token balance on truffle ...
0
votes
1answer
24 views

How to handle MetaMask disconnecting from dapp?

How do you detect when a MetaMask user disconnects their wallet from your dapp? I see there is a disconnect event, but this is a for disconnecting from RPC - I want to know when the user has ...
1
vote
1answer
31 views

When using web3.js/Metamask on your website - how can you trust the data coming from your users?

So let's say your user sends a transaction, your script gets the receipt (getTransactionReceipt), checks if everything is fine and then does something. Can't people just rewrite your scripts in ...
0
votes
0answers
17 views

Internal JSON-RPC error code -32602 invalid argument 0: hex string without 0x prefix on Binance Smart Chain Test Net

I'm building a web page using react and web3js to send transactions through meta-mask on Binance Smart Chain test net. The transactions goes through but about 20% of times, I get this error that ...
0
votes
1answer
18 views

How can I stop react from starting MetaMask on Dapp load

Blockchain newbie. If I place the contract JS in my React App, MetaMask always starts when the Dapp loads. import donboard from "./donboard"; However, if I remove the import line, I can ...
0
votes
0answers
9 views

I have eth to pay for gas but metamask does not allow me to withdraw?

I am trying to withdraw a metamask token to an external wallet, I have ETH to pay the Gas of the transaction and when selecting the token that I want to withdraw and the amount tells me that I do not ...
0
votes
1answer
73 views

Mint Gold Dust - [NFT] ERC 1155 Not Displaying In MetaMask Mobile App Wallet

In previous iterations of our build we were able to view erc-1155's minted via our platform from the MetaMask mobile application, however, now neither our NFT's or contract address are displaying in ...
0
votes
2answers
1k views

How to swap wETH for ETH on Polygon network?

The current largest mining pool Ethermine has an option to be paid in wETH through the Polygon network instead of in ETH on the mainnet. Through MetaMask on the Polygon network, I see my wETH in my ...
0
votes
1answer
78 views

unable to get test eth for Goerli testnet , and it is showing this error all the time"url doesn't link to supported services"

I have tried to get it with both tweeter post and facebook post links to get eth,But they are not working for me.
1
vote
1answer
249 views

What should I write in token decimal while importing NFT in Metamask

When I tried to import NFT to my Metamask wallet, I found out that "Token Decimal" input should be filled. I know NFT doesn't have decimal so does it mean I should fill it with 0?
0
votes
0answers
42 views

Integrate Metamask to a Wix website

me and my team are benn working on a new crypto project. We did a Wix website and we want to integrate Metamask to this website to do presales of our token. The problem is that we really Don't know ...
0
votes
1answer
33 views

Why doesn't MetaMask pop up when my web3.py script successfully establishes a connection with Infura?

from web3 import Web3 infura_url="https://ropsten.infura.io/v3/my_key" w3=Web3(Web3.HTTPProvider(infura_url)) print(w3.isConnected()) It is giving output as True. But still, it is not ...
0
votes
0answers
19 views

How does MetaMask populate its Infura enpoints securely?

As MetaMask uses Infura as one of its node providers, multiple endpoints have to be generated for that purpose. How does MetaMask manage to acquire that many endpoints? And how do they protect their ...
0
votes
1answer
19 views

Smart Contract Uploaded with single mint option; did not take into account multiple mints at once

Very simple question with I'm assuming no answer or a difficult to implement answer. We have a smart contract with a mint function that takes no arguments. It only allows for the minting of one token. ...
0
votes
1answer
110 views

ERC-1155 interface with MetaMask mobile

I am currently developing a contract that issues a single NFT per usage, I have implemented the token part with the ERC-1155 standard imported from open-zeppelin. When adding my NFT to Metamask mobile ...
0
votes
1answer
74 views

MetaMask Not showing the Test Networks

I have installed the metamask chrome plugin . I am unable to see the different test networks in the metamask. Need help how this can be solved
0
votes
2answers
27 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
0answers
69 views

How to indirectly convert Monero to Ethereum in MetaMask?

Obviously MetaMask only deals in ERC-20 tokens, which means MetaMask doesn't recognize Monero, but indirectly, how can one send/swap/convert Monero funds to an Ethereum hot wallet? The idea is to load ...
0
votes
1answer
19 views

BEP-20 BNB vs. BNB

I have ETH (BEP-20) in my wallet. I understand that to transact with it, I need some amount of BNB for gas. My question is, do I need BNB or BNB (BEP-20) ? I wish to eventually swap the BEP-20 ETH for ...
0
votes
0answers
22 views

Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist while trying to connect metamask

There seems to be a problem while connecting metamask to the web application. At the first initialization of the application it throws this error but when, I refresh the page metamask pops up ...
0
votes
0answers
78 views

What is best way to batchMint erc1155 nft and send to someone also

Is this how I would mint an ERC1155 while transferring the token a specific address simultaneously (which is not msg.sender)? Below I modified mintBatch, and mint function. Reason I am questioning - ...
0
votes
1answer
18 views

msg.sender not work parallel with metamask

I am working with django project that is empowered with blockchain. I want to create an authentication system using blockchain technology. I write a smart contract and deploy it in ganache. In here I ...
0
votes
1answer
48 views

Failing to sign a transaction with eth_sign

I am trying to use the eth_sign method However i am getting the following error: code: -32602, message: 'Invalid parameters: must provide an Ethereum address.' My function is as follows: const ...
0
votes
1answer
28 views

trying to make my own token . But i am getting an error while compiling

pragma solidity ^0.8.6; /* My ethereum token */ abstract contract ERC20Token { function name() virtual public view returns (string memory); function symbol() virtual public view returns (string memory)...
0
votes
0answers
25 views

How to set Web3.js eth account using metamask

With web3.js for a lot of functions you need to have a web3.eth.account set. As far as I am aware you need the private key to set this account and metamask does not for obvious reasons give you assess ...
0
votes
0answers
60 views

Could not fetch chain ID. Is your RPC URL correct? Aws Ec2 Instance

Could not fetch chain ID. Is your RPC URL correct? Getting the above error when trying to connect to Geth network deployed on AWS Ec2 Instance. Let me know what I have to do. Also let me know how I ...
0
votes
0answers
14 views

Is this how to efficiently run a function in a For Loop?

Code: https://rinkeby.etherscan.io/address/0x87660f32382de6cd36b685ae76a54f389af016a4#code Question: Is it normal to expect each iteration of the for loop to require a separate 'confirmation' from ...
0
votes
0answers
12 views

How to use window.ethereum to read from EVM storage slots since window.web3 got deprecated in latest metamask update?

I was playing Capture the Ether challenge and in one of the challenge we had to read data from storage slot in the EVM. I referred this medium article: https://medium.com/@saurfang/lets-play-capture-...
1
vote
1answer
30 views

How to query a huge amount of data from a map efficiently?

I am working on a strategy game where you can conquer territory. Here is a screenshot of what it looks like (I own the purple land at the middle): A map stores a plot object per coordinates (a ...

1
2 3 4 5
35