Questions tagged [metamask]

Question about the Metamask chrome's plugin.

324 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
985 views

truffle migrate hanging on Deploying Migrations

I am deploying a contract on Ropsten Network,These are my settings 2_deploy_contracts.js var SafeMath = artifacts.require("./SafeMath.sol"); var TahaCoin = artifacts.require("./TahaCoin.sol"); var ...
1
vote
0answers
1k views

NetworkError when attempting to fetch resource

I'm getting this error in Firefox when running a dApp: Error: NetworkError when attempting to fetch resource. Stack trace: InvalidResponse@http://localhost:8081/bundle.js line 995 > eval:38:16 ...
1
vote
1answer
535 views

return msg.sender.balance not acting as expected

I'm using MetaMask to connect to Rinkeby and I'm deploying the contracts via Remix. When I call the function returnsenderbalance it returns ...
1
vote
1answer
1k views

Getting “Error: unknown account at Object.InvalidResponse” when appication is connected to private network using metamask

My Contract is: pragma solidity ^0.4.8; contract Awards { address public owner; string  public name1; string  public name2; string  public name3; function Awards() {   owner = msg....
1
vote
0answers
352 views

Truffle overwrite MetaMask web3 wrong msg.sender address

Considering this contract : pragma solidity ^0.4.7; contract Test { function Test() { // constructor } function getMsgSender() constant returns (address account) { ...
1
vote
1answer
279 views

Constant function returns empty array + web3js

I have a simple solidity script where I tested in remix (injected Web3 using geth local environment) and worked fine returning an array of data from a constant method. pragma solidity ^0.4.11; ...
0
votes
0answers
19 views

My Crowdsale contract wont transfer ERC20 tokens and all transactions fail

I have a crowdsale contract that recieves tokens directly from a mint function in my token contract.the function mints the tokens and sends its to the Crowdsale account address. when I run let token = ...
0
votes
0answers
49 views

How do i withdraw Eth from a contract i created

New to blockchain.. havent a clue.. I managed to create a new contract with Eth. I moved money from MyEtherum Wallet to Metamask and into a contract, somehow? I have no coding experience but need ...
0
votes
0answers
20 views

How does MetaMask secure / store unlocked accounts?

I understand that MetaMask stores the encrypted vault somewhere like C:\Users\USER_NAME\AppData\Local\Google\Chrome\User Data\Default\Local Extension Settings\nkbihfbeogaeaoehlefnkodbefgpgknn ...
0
votes
0answers
12 views

Metamask not connecting with my account in ganache

I'm developing a project with truffle pet shop . when i connect my project to metamask using the private keys of a account , im not able to receive my account address on my code and though i connected ...
0
votes
0answers
15 views

Specified HTTP/RPC port, yet Geth 1.9.15 will not map that port

I am trying to expose port 8545 on a local geth client for use with MetaMask on Chrome 83.0.4103.106 (x86_64), using a Windows host (10.0.18362.900). I store all my blockchain data on a separate drive,...
0
votes
0answers
30 views

Error: “Couldn't decode uint256 from ABI: 0x” Private Ethereum Network web3js MetaMask

I am trying to call the smart contract for data using this code and every time I am getting this error. I am using a Private Ethereum Network with MetaMask. The calling function is given below. ...
0
votes
0answers
12 views

Setting up WalletConnect

I'd like to implement WalletConnect on my site, so that users of a platform I'm trying to improve a lot (real estate tokenization) can connect their MetaMask wallet (and others eventually?!) to the ...
0
votes
0answers
19 views

Metamask wallet lost after Chrome Extension crashed

I installed Metamask a long time ago and sent 1 ETH to it for testing last month. Today the Chrome extension crashed and was disabled by Chrome. When I re-enable it, it asks me for my seed phrase ...
0
votes
0answers
30 views

My is metamask returning RPC Error: Error: [ethjs-rpc] rpc error with payload, metamask shows failed [object, object]

My metamask shows ALERT: Transaction Error. Exception thrown in contract code. When I am about to transfer using truffle, open zeppelin and ganache on localhost:7545 after confirming the transaction ...
0
votes
0answers
12 views

How to import an account in FireFox on Android?

Questions. How to import an account in FireFox on Android? Description: According to the instructions, I downloaded the JSON file. I received an email code. I went to the "Import Account" page. I ...
0
votes
0answers
21 views

MetaMask - RPC Error: Error: [ethjs-rpc] rpc error with payload [obejct Object

I am trying to sign transactions using certify_send() function to a smart contract deployed to my private ethereum blockchain but I keep getting this error after I approve in MetaMask MetaMask - RPC ...
0
votes
0answers
12 views

TypeError: Different number of arguments in return statement than in returns declaration

function _execute(Proposal memory p, bytes memory transactionBytecode) internal returns (bool) { ProposalType proposalType = p.proposalType; uint childID = p.childID; ...
0
votes
2answers
33 views

How to debug a “rpc error with payload”

Debugging smart contract errors can be surprisingly hard. There is one particular kind of error that annoys me the most: the infamous rpc error with payload. For instance, just a few hours ago, while ...
0
votes
0answers
28 views

Ethereum noob. Internal TX not reflecting in balance on metamask. “bad jump destination” error. Going crazy

New to the Ethereum environment. Using metamask, I initiated three transfers of STA for ETH. The STA was deduced from my wallet, however the ETH I was to get in return is not showing. The only new ...
0
votes
2answers
35 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 ...
0
votes
0answers
11 views

Transaction to contract from web3 not working but working from metamask

I have a method in contract to increase totalSupply and only owner can call it. function addTokenToTotalSupply(uint _value) onlyOwner public { require(_value > 0); balances[owner] = ...
0
votes
0answers
27 views

Accessing modifier of another smart contract - Role Based Access Control

I am trying to create a simple role based access control system for the contracts I have created. I have two smart contracts, one named Users that stores all of the users details as well as the type ...
0
votes
1answer
25 views

Couldn't get any accounts!, Ethereum client is not configured correctly

I'm running testrpc on the default port 7545. I run truffle console and test with: web3.eth.getAccounts().then( function (result) { return result[0] }); This works fine. According to docs the ...
0
votes
0answers
18 views

Best way to avoid transactions that create a new smart contract before submitting it

We are creating a permissioned network (using Besu) where anyone can create and submit transactions. In this context, the writer nodes need to verify that these transactions are not creating new ...
0
votes
1answer
31 views

Metamask false positive error: ERC20 transferFrom tx displays “Exception thrown” error in metamask, but tx confirms fine

I'm fairly certainly this is due to approvals- that metamask thinks that an error will be thrown because the contract does not have approval to transfer the ERC20- even though the approval tx is ...
0
votes
0answers
13 views

Chain Transactions Together on Metamask Mobile

So, I have to approve a transaction on one contract and then I have a chained promise call to initiate a transfer onto another separate contract. Works just fine on Metamask Desktop, but on the ...
0
votes
0answers
14 views

Chain Transactions Together on Metamask Mobile

So, I have to approve a transaction on one contract and then I have a chained promise call to initiate a transfer onto another separate contract. Works just fine on Metamask Desktop, but on the ...
0
votes
1answer
73 views

Web3 is not connecting to metamask. TypeError: Null object returned to account

I am currently following the tutorial in Dapp University YouTube channel where I am coding my own ERC-20 token https://www.youtube.com/watch?v=XdKv5uwEk5A&t=21611s. At 5:51:00 onwards you can see ...
0
votes
1answer
57 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 ...
0
votes
0answers
19 views

How can I call a method on a smart contract with the web3 provided by MetaMask?

How can I call a method on a smart contract with the web3 provided by MetaMask? Building smart contracts with solidity was the easy part for me. I had relatively few problems thanks to https://remix....
0
votes
2answers
21 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
1answer
142 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
25 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

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 ...
0
votes
0answers
17 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 ...
0
votes
1answer
34 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 ...
0
votes
0answers
23 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 ...
0
votes
2answers
28 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
29 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 ...
0
votes
0answers
64 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
136 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
249 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
0answers
9 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
181 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
1answer
23 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
21 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
30 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
73 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
51 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'; ...

1 2 3
4
5
7