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.

Filter by
Sorted by
Tagged with
14 votes
3 answers
15k views

What exactly is a proxy contract and why is there a security vulnerability involved in it?

I was looking at the recent FE badger DAO exploit and this Twitter thread in it https://twitter.com/CryptoCatVC/status/1466380960648380419?s=20 One piece of advice the author gives before signing a ...
0 votes
1 answer
634 views

Is there a way to add a token logo from a metamask and enable it to be searched?

Instead of using the Add Custom Token function in Metamask, tokens such as Chainlink, Uniswap, etc., are searched immediately when searching for tokens, and the logo of the token is checked. Does ...
1 vote
1 answer
318 views

I sent pepe from MetaMask to crypto.com

I sent pepe coin from my MetaMask address to my crypto.com eth address it’s showing as completed but the it’s not showing this on my balance or can’t see it. Yet on ethascan it’s showing as a token? ...
0 votes
1 answer
10 views

Converting Eth price correctly in JS

I have this snippet const conversionFactor = calculateConversionFactor(amountToSendFloat); console.log('the conversion factor is', ...
1 vote
1 answer
653 views

Openzeppelin Crowdsale

Ok so Ive found Openzeppelin a slightly easier Code to use, it explains better than Solidity does. But now my problem is the Math bit. Im no mathematician neither and cannot get my head around how it ...
1 vote
1 answer
2k views

How to disconnect metamask wallet from a dapp using web3?

I tried connecting metamask wallet with web3.js, and it got succeeded. const handleClick = async () => { try { // Get network provider and web3 instance. const web3 = await GetWeb3()...
0 votes
0 answers
8 views

how to use the js library in nest js that doesn't have types

below is a controller and service code import { Body, Controller, Get, Post, HttpStatus, Res } from '@nestjs/common'; import { AppService } from './app.service'; import { request } from '../utils/...
0 votes
2 answers
375 views

Connecting to Truffle local network through Metamask

After launching Truffle in the "(develop)" view, I've tried to connect to it through Metamask (via the "Custom RPC" option in the "Networks" menu, I've set the URI to &...
1 vote
1 answer
174 views

Is there a way to make the user pay "aggressive" gas fees automatically instead of them choosing that in MetaMask?

I am having issues with MetaMask in my DApp because users are using wrong or invalid RPCs. Is there a way of making users add a network automatically to MetaMask with the right RPC and override the ...
1 vote
2 answers
2k views

Is it possible to use metamask to sign a plaintext message?

I've figured out the mechanism to use Metamask and ethers for the user to sign an arbitrary message, but it involved computing a hash of the message, arrayifying it, and then calling verify message. ...
0 votes
1 answer
15 views

Where do the prices of token, displayed in Metamask and on Block Explorers, come from?

When you have tokens in your wallet, and view them in a wallet application like Metamask or via public block explorers like Etherscan, PolygonScan etc, you can see a dollar value for the tokens. Where ...
0 votes
1 answer
589 views

Is there a way to add a time specific delay to transactions in your smart contract?

We're working on a smart contract in which certain transactions are executed every time a certain token price point is crossed. Therefore, if in a given instant the price crosses a set point more than ...
0 votes
1 answer
24 views

How to create a token standard?

I need to create my own token standard for a project because I can't find anything that fits my requirements. When I tried looking this up online, I only saw results for 'how to create your own token',...
0 votes
1 answer
4k views

How to decode the hex string of an eth_sendRawTransaction request in Alchemy?

I'm using an Alchemy rpc endpoint to facilitate all my MetaMask transactions. I sent a transaction a few hours ago and it's stuck in pending, and now every few seconds (or.. every time I open MetaMask ...
0 votes
1 answer
322 views

Transaction values exchanged even if transaction rejected, and double values exchanged if transaction confirmed

I'm trying to perform a function that exchanges one token for another, but I'm getting a very strange bug. If I call the function in web3, I get the standard metamask popup asking whether to confirm ...
3 votes
1 answer
169 views

Where does Metamask store the private key (when the account is only locked with a machine-specific password)?

Where does Metamask store the private keys of an EVM-account after one recovers an account with private keys? Does it cipher the private keys before writing to storage, e.g. encoding with the access ...
7 votes
3 answers
10k views

Getting transaction history via Ethers.js

So I am new to blockchain development and I am trying to build a wallet just like the Metamask. I am struggling with displaying the recieved transactions. How dose one gets the recieved transaction ...
1 vote
1 answer
1k views

ERC20 tokens in Metamask suddenly not showing

I've been using Metamask in Chrome for a while and had a list of ERC20 tokens in Ropsten network already added in the Assets section through their contract addresses: DAI address: ...
1 vote
1 answer
81 views

How to add a NFT to metamask wallet with a RPC method

We have a way to add an ERC20 token to the metamask wallet from our dapps with a RPC method: const addTokenToMetamask = async () => { if (typeof window.ethereum !== "undefined") ...
0 votes
0 answers
14 views

There's an auto withdraw bot activated in my wallet, how can i get my wallet back? [duplicate]

There's an auto withdraw bot activated in my wallet and all my coins are being transferred out automatically, please does anyone know how i can get my wallet back, i can't even deposit gas fee to ...
0 votes
3 answers
341 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 ...
1 vote
2 answers
1k views

How do I make my smart contract available for interaction with Metamask?

I am using OpenZeppelin starter kit. I wrote a smart contract that simply contains two integers which can be called. I compiled and deployed the smart contract to my local Ganache blockchain. I have ...
1 vote
1 answer
2k views

Hacked Ethereum wallet -- What do do with staked tokens?

My MetaMask wallet was unfortunately hacked and the hacker drained all of my tokens. I've sent some test tokens back to the wallet to check if the hacker had installed a smart contract to ...
0 votes
2 answers
2k views

USDT on Sepolia

I'm currently working on testing ERC-20 transactions on the Sepolia testnet and I'm looking to obtain some USDT for this purpose. Could anyone guide me on how to acquire USDT on Sepolia? I've been ...
0 votes
1 answer
52 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 ...
1 vote
1 answer
2k views

Metamask hacked via DEX contract?

So, I've been using MetaMask to trade on various DEX. On 6 March, all of my tokens were moved out of my MetaMask wallet. I am using a cold wallet to HODL but always keep a small balance for trading in ...
0 votes
3 answers
4k views

Unknown Accounts suddenly appearing in MetaMask wallet....?

My MetaMask wallet has multiple accounts which I did not create. I have no idea how they there. Is my MetaMask wallet compromised? Or is this normal that MetaMask creates new wallet addresses when ...
1 vote
2 answers
1k views

DApp using IPFS Ganache and MetaMask

I am following a tutorial (hosted by dappuniversity) on youtube regarding DApps using IPFS. I have done exactly everything as mentioned in the tutorial but i get this errors: GET https://ipfs.io/ipfs/...
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 ...
0 votes
1 answer
480 views

bip39 tool created a private key that cannot be imported

I have a mnemonic phrase generated by the bip39 tool. (The prior use case was that program uses the public keys in an array and people send to the one they randomly get. Occassionally when an address ...
1 vote
1 answer
1k views

Uniswap V2 Swap Directly Through Router Contract Not Working

I'm trying to make some swaps with Uniswap V2 pools, but I've run into some UI bugs using the Uniswap site (its a janky pair with a low volume token involved, the Metamask confirmation window never ...
0 votes
2 answers
1k views

No "from" address specified in neither the specified in neither the given options nor the default options

So I already went through this query, but I still couldn't get my doubt solved. Be it any Blockchain Dapp, the same error is coming for me. I used the marriage certificate and kickstart examples. Can ...
0 votes
2 answers
2k views

How to connect ethers.js with MetaMAsk and other Wallets?

const provider = new ethers.providers.Web3Provider(window.ethereum) while using this i am getting window is not defined error..and i dont know how to use it. Do anyone has idea how to do it
0 votes
0 answers
14 views

Lost my coins after bought on pancakeswap

I have buy IPTOKEN token. The transition is succesful. But after receive on my wallet coins disapier from my wallet. Anyone can help me. This is trasnsaction https://bscscan.com/tx/...
0 votes
1 answer
980 views

Web3 Transaction working on Metamask but not on Trust wallet

I have the following code for a bnb transaction, which is working on metamask, but now on trust wallet window.addEventListener('load', async () => { if (window.ethereum) { window.web3 ...
2 votes
1 answer
318 views

Metamask not allowing any transaction by code

I am building an application using ethereum smart contracts. I am using Metamask Chrome extension to run my application on Chrome. But I am facing a little issue. When I try to make any transaction by ...
0 votes
0 answers
18 views

Sending a specific ETH balance - FiFo

I'd like to send a specific balance of ETH from one address using Metmask. Does anyone know how to identify specific tokens and then execute a transaction using only these tokens while all other ...
0 votes
1 answer
2k views

i'm getting this erreur with my metamask, RPC Error: Internal JSON-RPC error

I am getting this error when i trying to use metamask on my gancache local for a simple transaction Metamask is connected to my ganache this is the erreur and this is how i called my methode packItem:...
3 votes
2 answers
124 views

What's type hash's usecase in EIP-712?

Assume I'm implementing EIP-712 signatures in solidity. contract Nice { bytes32 private constant BID_TYPE_HASH = keccak256("Bid(uint256 num1,uint256 num2)"); struct Bid { uint256 ...
0 votes
1 answer
39 views

I'ma victim of a theft my Chromebook was stolen a couple years ago with ethereum and some other coins in my metamask account can I regain access [closed]

I was unfortunately a victim of theft. My Chromebook was stolen w/my metamask acct. It had ETH I purchased from matrixport & 700,000 Like Coins also. Is it anyway I can get access to it? Note that ...
0 votes
1 answer
155 views

how can i decode this transactions and see what it contain?

I'm interested in decoding the information within this transaction, which can be found at the following link: https://etherscan.io/tx/0x1013929251687ff7f6a7e2e0c7e3caae6fd93a2342dd5ad9793ff33c5802269f ...
0 votes
0 answers
48 views

Returning the ETH from Smart Contract to Metamask (Bot scam) [duplicate]

Unfortunately I was trying this scam bot and I transferred the ETH to the Smart Contract, it's my mistake. However I am not able to transfer back from Contract address to Metamask address. The bot ...
2 votes
2 answers
739 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
2 answers
16 views

Is it possible to validate the Metamask personal_sign in the back end?

I am trying to understand the point of signing a personal message in the client. I guess this is usefull to confirm that the user is the owner of the address. But since this sign is done in the client ...
2 votes
2 answers
1k 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 ...
1 vote
1 answer
912 views

Does Exporting tokens from a metamask account with private key to a wallet, export the ethereum too?

Wanting to know if I’m exporting with my private key from metamask to a wallet will all contents of the MM account be exported? iE will the ethereum be exported along with my Theta token? Or would ...
0 votes
1 answer
26 views

Getting execution reverted: ERC20: transfer amount exceeds allowance code: UNPREDICTABLE_GAS_LIMIT method

Getting this error when attempting to call an external swap function in a contract I created on the Sepolia Test Network from Hardhat TypeScript. reason: 'execution reverted: ERC20: transfer amount ...
2 votes
2 answers
812 views

How to keep wallet connection persistent when refreshing with Ethersjs

I am trying to figure out the best solution to keep a wallet connection persistent when a page refreshes on Ethers. So far, the only answers I've found have been through Web3-react and not Ethers. ...
0 votes
0 answers
23 views

Can't add liquidity to my token

I created a token and now I need to add liquidity to it. Here is a code of my contract: // SPDX-License-Identifier: MIT pragma solidity 0.8.20; abstract contract Context { function _msgSender() ...
0 votes
0 answers
7 views

How do I sign a transaction from React Native using WalletConnect?

I am designing a dApp using React-Native and Expo and want to enable users to sign and send transactions client-side. So far, I have this: try { const signedTx = await exportedProvider?....

1
2 3 4 5
45