Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
0
votes
2answers
7 views

Transaction won't be mined / Failed signing of transaction

I'm trying to send a transaction that writes somesthing on ethereum(kovan) but it seems my transaction is not mined and probably not even send to the network? All my view requests to ethereum work, so ...
0
votes
0answers
15 views

Getting the warning Served eth_sendRawTransaction err=“already known” on local blockchain with metamask

The problem: I call a smart contract function on my local blockchain, then I confirm the transaction on metamask and finally the transaction is submitted but the transaction does not get mined. On ...
0
votes
0answers
7 views

Mobile DApp (React-Native) interacting with Ethereum through smart contract

I'm trying to develop a mobile Dapp with React Native but I have a few questions: 1) Is it possible to call a smart contract methods like we do in web with metamask? 2) Is there any wallet that ...
0
votes
1answer
14 views

How can I set my custom gas Price and gas Limit?

I want to set my custom gas and gas Price in sendTransaction method.Currently I set it but when i send the transaction gas fee is showing 0.21 ETH in metamask. How can I solve this? web3.eth....
0
votes
1answer
31 views

I'm getting “Cross-Origin Request Blocked” error

I'm getting this error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8545/. (Reason: CORS request did not succeed). I'm aware ...
0
votes
1answer
7 views

My cutom RPC meta mask created account is not showing in terminal

I have installed geth and created genesis.json and run my own private eth network. I started my rpc using geth --rpc --rpcport 5200 --rpcaddr 192.168.1.99 --datadir ./private Then I connected to ...
2
votes
0answers
35 views

MetaMask - RPC Error: invalid argument 0: json: cannot unmarshal non-string into Go value of type common.Hash

I am using this code below and I got an error: await web3.eth.getTransactionReceipt(this.state.transactionHash, (err, txReceipt)=>{ console.log(err,txReceipt); this.setState({...
1
vote
0answers
16 views

How to sign transactions using Metamask and send the signed transaction to NodeJS so that it can be added on Ropsten Infura?

I have developed a secure file sharing application in NodeJS(v10.16.1) + Express(v4.17.1) + Truffle(v5.1.15) + Metamask(v7.7.8) which works perfectly on localhost. I am using @truffle/contract(v4.1.11)...
1
vote
0answers
29 views

transferFrom is not displaying DAI amount on MetaMask verification popup

I am using web3.min_1.36.js to send DAI to a contract. I already called "approve", so transferFrom is working correctly without error. However, the Metamask verification popup does not display the ...
1
vote
0answers
19 views

Metamask+Remix gives different gas than Web3.js+Infura

I have one transaction, that can be executed with 2 different ways: - Remix with Metamask wallet - Web3.js with Infura network In both ways, I am connected to Rinkeby network. The Gas is ...
1
vote
0answers
16 views

Can't deploy Token from Remix in Rinkeby Test Network

I get the error "This contract may be abstract, not implement an abstract parent's methods completely or not invoke an inherited contract's constructor correctly." My full code is: pragma solidity ^...
1
vote
1answer
23 views

Integrate Metamask in Electron

Hello guys, Is there any of you who have tried to add metamask to electron.js. I wasn't able to find any relevant sources. My goal is to create desktop dapp. If you have any articles or advices will ...
1
vote
0answers
16 views

ERC20 Token balance isn't showing up in metamask [closed]

I'm making an ERC20 Token using OpenZeppelin, and I keep running into the same issue. My balance shows up in remix when I call "balanceOf," however, when I add the coin to my metamask wallet, it shows ...
1
vote
1answer
26 views

Show Pending Transactions when I use metamask or any other platform

When I try to sendTransaction using mainnet then it always show a pending status. How can I solve this? I am using web3js and nodejs to send a transaction.
1
vote
2answers
21 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 ...
0
votes
0answers
9 views

Drizzle Dapp on HTTP vs. HTTPS

If I have a Drizzle dap on an http server. Is there a risk that the private keys used with this dapp can be revealed? I suppose this is like asking if a MetaMask interaction within the unsecure http ...
1
vote
0answers
18 views

What function/method does MetaMask use to generate the entropy for mnemonic keys?

I am trying to understand how exactly MetaMask is generating the initial entropy to create its mnemonic key. There are questions like this, MetaMask's documentation, or their GitHub but I can't find ...
1
vote
0answers
9 views

web3.eth.personal.sign is not a function error when deployed on heroku

I am building dApp with react as my front-end frame work, i encountered this error when I deployed on Heroku, sign function doesn't work and it displays that error, specifically TypeError: A.t2.sign....
1
vote
1answer
21 views

Unable to get metamask account with web3

I have been following a tutorial on creating solidity contracts. I am unable to get the list of account numbers on my metamask wallet when I use my script below. async componentWillMount(){ ...
0
votes
1answer
15 views

ERROR: Web3 not defined

I'm trying to build a browser UI to interact with my Solidity smart contract that is deployed on my local Ganache blockchain. But I can't seem to get my index.html file to connect to Metamask. I keep ...
1
vote
0answers
31 views

Metamask always show '0' for gas price and value

I tried to deploy and execute some transactions on multiple contracts but Metamask keeps showing 0 for the gas price and value field. I am on Ropsten test network. It is not specific to any contract, ...
3
votes
2answers
128 views

Approve contract to withdraw funds from users's wallet

I want to achieve the following flow: A user clicks a button allowing my contract to spend funds on the user's behalf A user clicks a second button whereupon funds are transferred from the user's ...
1
vote
0answers
15 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
0answers
18 views

Interacting with client side metamask in serverside rendered react

i'm new to using web3 and am building a react app served from the server that will connect to an infura node. I've read that metamask injects web3 by default but have seen some mentions that it won't ...
2
votes
1answer
24 views

Signing transactions with Ledger Nano S on Ganache with Metamask

I am trying to sign transactions and move funds on a private Ethereum Blockchain with my Ledger Nano S on MetaMask. So far I have tried to do so in Ganache and via blockchain setup via custom RPC. ...
0
votes
2answers
23 views

ERROR: Provided address “6.963865902119903e+47” is invalid

Full error log: formatters.js:471 Uncaught Error: Provided address "6.963865902119903e+47" is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be ...
0
votes
0answers
25 views

Unlocking the ethereum account in azure using azure cloud shell

I have created an ethereum account in azure using ethereum consortium proof of concept and linking metamask with it ,I m trying to unlock the adrees of ethereum i have created I HAVE TRIED IN BOTH ...
1
vote
1answer
37 views

Metamask duplicated actions

When I interact with my deployed smart contract (Ropsten testnet) on Chrome I sometimes face the following situation : I call my method which is an approval of my contract After confirming I get ...
0
votes
0answers
24 views

window.ethereum: 0 if use MetaMask

I try to connect to MetaMask from my DApp. It used two work well about two month ago, but now window.ethereum object is 0 (not undefined). For some reason ethereum object is 0. I am aware about ...
0
votes
1answer
45 views

What does MetaMask mean by stop injecting web3.js?

MetaMask announced that they will stop injecting web3.js here. I know previously MetaMask will add a global variable in browser window.web3 and this global lowercase web3 variable will be deprecated ...
0
votes
2answers
61 views

Web3.js eth.subscribe: on('changed', function(event){}) doesn't work with Metamask?

I write a demo DApp website with this javascript const web3 = new Web3(ethereum); const contractAddr = "0x0Aa27e4B13D5c08A8767B36a0ACb76ED4549B7EA"; const abi = ...; let inst = new ...
0
votes
1answer
23 views

How do I prompt metamask to open?

I'm using react and javascript. For whatever reason, I've tried a few methods and it doesn't seem to be opening metamask. await window.ethereum.enable(); and window.web3 = new Web3(web3....
0
votes
0answers
8 views

How to update Data on UI

I have a UI thats connected to metamask The UI updates all the Info now on address change and when metamask is enabled How can i make my UI update every second? so it always shows accurate stats on ...
0
votes
1answer
30 views

Does metamask uses web3?

I was curious if metamask uses web3 for communication with eth node ? I tried google for it; showed bunch of other results but didn't precisely answered my question. Indepth answer on how metamask ...
1
vote
1answer
26 views

Help on recovering wallet through brute force or from extension data (Bounty on recovery)

I know 10 of 64 characters (hex) of my ethereum private key unencrypted and their positions. I also know the corresponding wallet address. Is a brute-force possible? What I am thinking of is ...
1
vote
1answer
25 views

ERC20 coin transaction not successful

I called the mint function on a default coin to send some of my new coin to my METAMASK account but it looks like nothing was received. I can't tell what specifically could have gone wrong, so here's ...
1
vote
1answer
27 views

What are best practices for submitting multiple sequenced transactions with web3?

I have a dapp that, as part of one logical user operation, must issue an approve() call on a token contract followed by a call to another contract that will use the funds. Since these each require ...
0
votes
1answer
73 views

How to use erc20 transfer in another contract in remix ethereum using metamask?

I read a lot of documentation in here and another web pages, I have a question and I so tried to solved but nothing works for me. I am using this example. It works fine with truffle, but I don't ...
0
votes
2answers
25 views

How does metamask know a contract is for ropsten or for main network?

Im using this code to detect for metamask. Now im using ropsten but i want to know how does metamsk know that my contract only works with ropsten? window.addEventListener('load', async () => { ...
1
vote
1answer
62 views

how to build Dapp for Android using react-native

I have a ethereum Dapp for web application and have metamask extension installed in my chrome browser to make transactions. Now i want the same application to be developed in android using react-...
1
vote
2answers
33 views

My ether was automatically sent to different address without my permission

My ethereum account is 0xfAd956B56be1298ee8ec1950cc305B46268d926f (generated by metamask) and the moment friend of mine sent me an ether, it was automatically directed to another account. This is the ...
0
votes
1answer
28 views

How to convert to 8 digits in etherum

I have a token that has 8 digits, so the output is 4762575931 instead of 47.62575.. How can i change this so this works on UI and for metamask input? I know there is the function to wei but this is ...
0
votes
1answer
33 views

How can I turn this into a human readable output? [closed]

I have this buy function but the output gives me a transaction Nr. or whatever this is async function buy() { var a = document.getElementById("amount").value; var accounts= await web3.eth....
0
votes
1answer
11 views

how to send parameters to smart contract while deploying using metamask

I am trying to deploy a smart contract using BrowserSolc and Metamask. and deployed successfully when the contract doesn't have constructor parameters but now I am trying to deploy with the ...
0
votes
0answers
20 views

Unfulfilled Promise From A Metamask Transaction

I'm having a problem with my JS code pausing on the let result line. Metamask prompts me to approve the transaction initiated in the line (which I do), but then doesn't proceed any further. As the ...
0
votes
0answers
26 views

Not able to call the solidity function through App.js? Anyone know how to call a solidity function?

I'm trying to call a Solidity function from App.js, but I'm unsuccessful even after a number of tries. Its a very simple function betOnTeam(). Inside this function I just want to check condition and ...
0
votes
0answers
32 views

MetaMask - RPC Error: JsonRpcEngine: Response has no error or result for request

I am running a Truffle react box and encounter the following error when I try to confirm a transaction via Metamask: MetaMask - RPC Error: JsonRpcEngine: Response has no error or result for request: ...
0
votes
1answer
32 views

getBalance of shows the wrong balance

I have this code to show the erc20 token balance of an account var tokenAddress = '0xb97E9bBB6fd49865709d3F1576e8506ad640a13B'; var walletAddress = '0x62f28320f688A7A4e0021c55d7ffD1acd770A133'; ...
0
votes
1answer
56 views

cant call contract instances on my UI

I want to be able to display the read functions of my contract on a UI. These are the calls I make to my UI Those functions work perfectly in the console using node but when i try to call them from ...
0
votes
0answers
45 views

Whas this Error Code and how can i get rid of it?

Im using this code to query the balance of the logged-in address // get sellPrice function sellPrice() { web3.eth.getAccounts(function (error, accounts) { contract.sellPrice(address, ...

1
2 3 4 5
19