New answers tagged

0 votes
Accepted

How get hash for user transaction?

Probably what you want is to monitor pending transactions? If that's the case, you need to connect to a node via websocket and subscribe to the "PendingTransactions". Something like this: ...
user avatar
  • 306
1 vote

How to get transaction link into etherumscan to my website using etherumscan API

see if the transaction hash is generated it means it is successful transaction and in order to get transaction hash you can use " let txConfirm = await provider.getTransaction(FUNCTION_NAME.hash) ...
user avatar
0 votes

Ethernaut lvl1 : Fallback - how to set msg.value when calling contribute()?

Ok, just needed to specify amount like this. await contract.contribute({value:toWei("0.0001")}) or like this : await contract.contribute({value:1}) It worked I don't know where does the &...
user avatar
  • 1
0 votes
Accepted

Testing a SmatContract on Ropsten - The transaction is "Success" but I didn't get token in my wallet

Go to your metamask wallet, change your network to 'Ropsten Network', then click on link called Import tokens and put into Token Contract Address textbox the address of your ERC20 smart contract in ...
user avatar
  • 1,503
0 votes

Sign with metamask and send with backend

I have a e-commerce and I use Commerce.js. I never tried but they have a crypo payment chekout. https://commercejs.com/blog/cryptocurrency-payments-at-checkout-with-metamask/
user avatar
0 votes

Private Key Storage in Metamask Chrome

This is a real old post, but if you haven't figured it out and still have the files: https://metamask.zendesk.com/hc/en-us/articles/360018766351-How-to-recover-your-Secret-Recovery-Phrase I'm in a ...
user avatar
  • 101
0 votes

What is the Chain ID for Metamask associated with truffle develop?

Remember to add the trailing forward slash (/) to the RPC URL and for the Chain ID use any digit, I used 99 and network name should be Custom RPC
user avatar
  • 1
1 vote

My contract fails to receive value (MATIC)

You need to implemented a payable fallback method, or use the receive function. What is the receive keyword in solidity?
user avatar
  • 2,435
0 votes

how to lock on unique sale item and avoid hung wallet

Unfortunately you can't control Metamask popup. Some time sensitive dapps show a countdown timer on the screen when submitting a transaction. So the user is aware that taking too long might result in ...
user avatar
  • 29.1k
0 votes

Integrating KMS with ethers _signTypedData (EIP712)

You can use this repo and it's PRs https://github.com/rjchow/ethers-aws-kms-signer
user avatar
0 votes

Creating HTTPS enabled reverse proxy for GoEthereum

Instead of using Nginx, this might be easier using Caddy web server that comes with Let's Encrypt integration. Here are some example configurations for Caddy. Here is an example Caddyfile HTTPS/...
user avatar
0 votes

truffle migrate hanging on Deploying Migrations

If you're using Ganache with @truffle/hdwallet-provider for testing, make sure the mnemonic in your truffle config file is the same as the one showed in your Ganache workspace. Mismatch between them ...
user avatar
0 votes

RPC Error 32603 when deploy new Contract

I met the same problem. I found I am using an HTTP_PROXY variable in my ubuntu terminal so the solution is: restart the Linux terminal without export HTTP_PROXY=... restart ganache everything goes ...
user avatar
  • 160
1 vote

how to fail a ether transaction on blockchain (with insufficient balance)

Not sure if it is similar to what you want to do but you can either write a script to transfer ether without Metamask OR write a smart contract that does not accept ether and then try to send ether to ...
user avatar
  • 2,466
0 votes

Gas price limit in metamask Rinkeby

You should provide proper amount of gasPrice. And if you're to send some Eth values to the contract, you should also provide the value like below. Below code with gasPrice 400000 might work, but you'd ...
user avatar
0 votes

Switch network for all wallets reactjs Blocknative

There are various ways to do that (Recommended) You can use wagmi.sh to do that. They also have built-in networking switching and it's by far the best library I've used - https://wagmi.sh/docs/hooks/...
user avatar
0 votes

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

Proxies (or "diamonds", which is just a name for a specific proxy system specified as an EIP) allow part or all of a contract to be swapped out at any time, without changing the address of ...
user avatar
1 vote

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

I got around this another way. When you type "truffle development" into a terminal it will output 10 accounts (along with 10 keys which correspond to those accounts). Take one of those keys ...
user avatar
1 vote

How "blockies" are working?

This might be what you are looking for: https://github.com/MyCryptoHQ/ethereum-blockies-base64 They are generated from an address that you pass to makeBlockie function. I'd suggest you take a closer ...
user avatar
0 votes

Latest remix version is not detecting metamask

Try to clear cookies of your browser and then start remix. before that backup your all files of remix. Maybe this could help
user avatar
1 vote

Is There A Way to Do A Whitelisted NFT Mint Via Email?

I would go with the pre-signed ERC-191 style transactions https://eips.ethereum.org/EIPS/eip-191. When minting, the user can then input their email into the form that you hash (in order to have a ...
user avatar
0 votes

Latest remix version is not detecting metamask

this is working on my end right now, but I had similar issues in the past and I was unblocked by using their alpha version : https://remix-alpha.ethereum.org/ . Maybe that can help ;)
user avatar
  • 49
0 votes
Accepted

Is There A Way to Do A Whitelisted NFT Mint Via Email?

You got a few options. No judgement. You can use a special website with one-time codes. Mail one code to each email customer. And that can directly mint. You can use a special website with one-time ...
user avatar
0 votes

Automating Payments From Server Side To User

Gelato You can automate payments with a tool like Gelato Ops. Sablier As a side note though, why limit yourself to discrete payments? With smart contracts, we can easily enable continuous, by-the-...
user avatar
0 votes

Automating Payments From Server Side To User

Ok, you can use cron-job for that or a new thing I researched on is Gelato network, which basically allows you to run a contract on a specific date and time. What you could do, Is that run the ...
user avatar
1 vote

Can .eth domains be stored on a hardware wallet?

Absolutely. ENS addresses now follow the ERC-721 standard, making them an NFT (non-fungible token) and can be transferred as such. You have two options to assign ownership with ENS domains as they ...
user avatar
0 votes

Help Please hardhat.config.js * Invalid account: #0 for network: Rinkeby - private key too short, expected 32 bytes

You're not doing string extrapolation correctly, you should be using `, the tilde button. Read more here.
user avatar
  • 76
0 votes

How to connect a MetaMask account to a DApp in the MetaMask Application?

I've recently dealt with this, I also needed to make sure MM connects to the app on mobile, from the browser. What you can do is: detect if the user is accessing your dApp from a mobile device in ...
user avatar
0 votes

How to get my ERC20 token listed on Metamask

I'm guessing Metamask is using some sort of Popular Tokens lists from Coinmarketcap or Coingecko APIs. If you want to appear there you probably need to be a high market cap token. Edit: Actually they ...
user avatar
  • 49
1 vote

How to get my ERC20 token listed on Metamask

There's an example of how to do this on MetaMask's website - const tokenAddress = '0xd00981105e61274c8a5cd5a88fe7e037d935b513'; const tokenSymbol = 'TUT'; const tokenDecimals = 18; const tokenImage = '...
user avatar
  • 2,435
0 votes
Accepted

How to add a rederecting in mobile metamask browser?

Here is what I use: export function connectMetaMask(chainId) { if (!window.ethereum && isMobile()) connectMetamaskMobile(); else return metaMaskConnector.activate(chainId); } export const ...
user avatar
  • 1,099
0 votes

Metamask: Error encountered during contract execution [Reverted]

Cannot post a comment so I will delete this answer soon. Please post a more adequate code sample, ideally just the function you are interacting with alongside everything that function uses.
user avatar
0 votes

Connect MetaMask mobile app to React Native Dapp with DeepLinks

https://www.npmjs.com/package/@walletconnect/react-native-dapp Use this npm module to connect dapp services.
user avatar
0 votes

How to solve Unhandled Rejection (Error): invalid address error with web3 js

Tbh, I don't why it's happening but I found a solution. The problem is using state. At this line, don't use account let tetherBalance = await tether.methods.balanceOf(account).call(); Your code ...
user avatar
  • 1
0 votes

How to indicate default connection to open ethereum network popup in metamask

For any of the default MetaMask networks, you'll need to use wallet_switchEthereumChain instead of wallet_addEthereumChain, providing only the chainId in the request, like so: ethereum.request({ ...
user avatar
1 vote

Use WETH for NFT MArketplace

WETH is an ERC20 token which can be simply transferred between accounts. Technically, all ERC20 tokens are accounted within the token contract. Therefore your contract needs to just simply calling the ...
user avatar
  • 186
0 votes

Metamask Staked Tokens not loading

I suggest you use the wallet on the phone (every time it gets stuck on the computer, but never on the phone), metamask sometimes gets stuck, it may be the network environment or may be congestion in ...
user avatar
1 vote
Accepted

Send Token Failing in Metamask

You need enough ETH for paying the gas. You can't pay the gas with WETH. So, try to get some ETH.
user avatar
0 votes

Mismatch in WETH shown in Metamask wallet and shown by code

Thank you @Ashish. We need to use address of wallet instead of contract address
user avatar
2 votes
Accepted

Mismatch in WETH shown in Metamask wallet and shown by code

It seems you are checking balance of contract in code , whereas in metamask , you are chcking balance of weth in the user address.
user avatar
2 votes
Accepted

Can Metamask be used for all ERC20 token?

All ERC20 tokens are fully supported in Metamask, and WETH is an ERC20 token. The tricky thing is that you have to manually add the tokens, since otherwise Metamask doesn't know which tokens you have. ...
user avatar
0 votes
Accepted

Transferring an NFT via MetaMask

In order to enable transferring Tokens via MetaMask, I want you to re-check the smart contract source code. There might be a problem in implementing transfer function. Make sure 'transfer' function ...
user avatar
  • 36

Top 50 recent answers are included