Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [metamask]

Question about the Metamask chrome's plugin.

1
vote
1answer
53 views

Ether is not reflecting in my Metamask account

My friend has transferred me some ether to my Metamask account but the ether hasn't reflected in my wallet. But in the ether scan, it is showing that my transaction was successful. What can I do to ...
0
votes
1answer
153 views

ERC20 token with expiration date

I would like to create a ERC20 token with an expiration date to represent for example a ticket or a gift card. I've created a contract which overrides the open-zeppelin ERC20 contract methods. ...
1
vote
0answers
52 views

Metamask mapping calls receive inconsistent return

Below is my js function that takes an array of orderId and call them one by one - to get the creator address and go on. It is chained in a series of promises with similar Ethereum smart contract ...
0
votes
1answer
763 views

ALERT: [ethjs-rpc] rpc error with payload

I am trying to create transaction local blockchain using ganache on When i confirm the transaction i get the error as "{"id":4818399857527,"jsonrpc":"2.0","params":..", please refer screenshot for ...
0
votes
1answer
48 views

Metamask does not react on delivering gasPrice

I am using following code to generate a new transaction using web3.js & metamask: var web3dictdata = { gasPrice: web3.toHex(10), gasLimit: web3.toHex(210000), to: "...
1
vote
1answer
65 views

How to update value on ethereum blockchain without metamask?

pragma solidity 0.4.24; contract UniToken{ string value="Hello"; function set(string x) public { value = x; } function get() public view returns (string) { return ...
1
vote
0answers
56 views

error in WebSocket connection

error : browser-sync-client.js?v=2.26.3:15 WebSocket connection to 'ws://localhost:3000/browser-sync/socket.io/?EIO=3&transport=websocket&sid=mW3 please i need help on this. i was getting ...
1
vote
3answers
84 views

Why is browser taking so long to read blockchain data?

I have a dAPP and I use reactjs for the frontend. The application returns data from a smart contract (the balance) on the homepage. The main problem that I notice is that everytime I or any other ...
0
votes
0answers
36 views

Why is geth account list and eth.accounts different?

I am trying to sync Metamask accounts with a private geth installation. I imported the account from MM and that shows on geth list but on eth.accounts nothing for that account. Any reason for this ...
3
votes
0answers
92 views

Quorum :- metamask do not support privateFor feature of quorum

i got to know that metamask do not support privateFor because of which private transaction for quorum dapp was not behaving as expected. so, I can't use metamask for my quorum DApp to switch port and ...
0
votes
1answer
907 views

How to connect web3.js 1.0.x to Metamsk

I am using web3.js 1.0.0-beta.36 to connect to the blockchain. But unfortunately this code cannot connect to Metamask, if it has been enabled. var metamask = false; if (typeof web3 !== 'undefined') {...
1
vote
1answer
54 views

Accessing non-active account on metamask

I want to transfer ownership of an already notarized file with a particular address. I am using smart contract and representing ownership by "msg.sender" i.e. selected account in metamask is the ...
2
votes
1answer
443 views

Launch MetaMask login window by JS

I have installed MetaMask extension for Chrome, then I saw ext icon at top toolbar. To login I will open it by click on the icon. There is a question... Is there a way to launch MetaMask window by ...
0
votes
1answer
278 views

Meta transaction with web3

iam just wondering. Are meta transactions not the same like raw transactions, which are signed by the user in frontend and send to a backend, where the transaction gets deployed?
0
votes
1answer
93 views

How to refund a wallet address from a contract with solidity and web3

I am building an app where I'd like a purchaser to be able to seek a refund from the contract. Essentially I am trying to transfer eth from a contract to a wallet. When I get to the point of issuing a ...
0
votes
1answer
81 views

Meta Mask - Breaking Change and Ganache

I have seen the announcement about the privacy changes that Meta Mask has made about no longer injecting Web3. And the article post they made gave a snip of code to include to request Web3 to be ...
2
votes
1answer
187 views

How to connect Quorum with Metamask?

I'm trying to deploy smart contract on Private blockchain(quorum). And run the dapp on private blockchain. But I'm unable to connect the metamask with quorum network. The quorum is currently running ...
0
votes
2answers
140 views

How to use a metamask Wallet from web3,py?

I deployed contracts to Ropsten test net using truffle and a metamask wallet to pay for the transactions and Infura as a Hosted ethereum node. To do that in Truffle, I have to use the truffle-...
3
votes
1answer
298 views

Using metamask from a local html file?

I'm building a DAPP it works fine when I host it from a server, but when the HTML file is local MetaMask gives this error: MetaMask does not allow file:// protocol, use http(s):// Any ideas what ...
0
votes
2answers
43 views

web3 returns 0x0000000000000000000000000000000000000001 as an address

I'm trying to create an asset in a smart contract using MetaMask and web3.js: contract AssetTracker { struct Asset { string name; string description; string manufacturer; ...
1
vote
2answers
17 views

Will a transfer go through on a testnet transaction on meta mask to luno

What if you sent your ETH on the Ropsten testnet via Metamask to an ETH platform gateway like Luno (https://www.luno.com) ? Will you receive your Ether and will it reflect on that account? I've done ...
0
votes
1answer
105 views

Changed behaviour regarding web3.eth.accounts[0] in Metamask?

Some time ago, it was possible to get the selected account using sync methods on web3 0.2. https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md It always worked on our DAPP. But on Nov 8th in ...
1
vote
1answer
44 views

Translating Metamask Address to Alias

When using Metamask, the user can see transaction data before approve a transaction, like origin and destination. Users can define alias to their accounts, so the origin is in general easy. So, in ...
2
votes
2answers
199 views

Metamask now longer interacts with PetShop Dapp

Since November the 4th - In order for MetaMask to interact with your webpage dapps, you need to implement the windows.ethereum.enable as part of your scripts I have run through the pet shop tutorial -...
1
vote
2answers
868 views

New web3 method to request account access from dapp browser, no request

Since metamask communicated that they will no longer inject web3 by default (https://medium.com/metamask/https-medium-com-metamask-breaking-change-injecting-web3-7722797916a8) I tried to use their new ...
0
votes
1answer
115 views

how to call function on Ropsten

I deployed a smart contract to Ropsten testnet I want to call its only public function to test it on the network. How can I do such a thing and where I will see the result? The TxHash is: ...
2
votes
1answer
282 views

Metamask Warning

In an effort to improve user privacy, MetaMask will stop exposing user accounts to dapps by default beginning November 2nd, 2018. Dapps should call provider.enable() in order to view and use accounts. ...
0
votes
0answers
217 views

Deploying a contract from Remix IDE, using from Truffle

As I understand, if I compile a contract via truffle compile to have the Contract.json, and then deploy the contract from Remix IDE to, say, Ropsten, the dapp should work via MetaMask pointed to ...
0
votes
1answer
15 views

Manually specify extra gas amount required in solidity for apps such as metamask

I've had an issue with my first solidity contract whereby sometimes transactions will work and other times I'll get "out of gas" errors. I believe after much research I've pinpointed this problem to ...
1
vote
1answer
230 views

MetaMask breaking change - does ethereum.enable() prompt an Access signature every time it's called?

Does ethereum.enable() prompt an Access signature every time it's called? Or will access-granted status persist?
1
vote
3answers
68 views

What is Metamask?

I know it's a dApp web3 browser, a wallet. But which ethereum client is used in the back end to interact with block chain? How the same account is able to connect with all networks (mainnet,testnet, ...
2
votes
0answers
411 views

NetworkError when attempting to fetch resource. Resource URL: moz-extension://2…/contentscript.js Source Map URL: ../sourcemaps/contentscript.js.map

I get the following error message in Firefox Developer Tools Console following a successful sendTransaction: "Source map error: TypeError: NetworkError when attempting to fetch resource. ...
2
votes
1answer
178 views

MetaMask expose accounts

From 2nd November MetaMask will not expose user accounts by default anymore and we must do it. I'm confused about how we are supposed to integrate that in our dapps. For example, I have a standard ...
0
votes
1answer
190 views

Unable to interact with DApp deployed on quorum

I am unable to interact with contract using Dapp deployed on Quorum blockchain (using metamask). I am following "https://truffleframework.com/tutorials/building-dapps-for-quorum-private-enterprise-...
0
votes
0answers
16 views

Metamask mysterious tx showed up

A tx appeared in my Metamask which looks like this: I don't understand what it's about. I noticed there is a 'Cancel' button and I clicked it, but nothing is happened. And now I have 2 txs in the ...
2
votes
0answers
52 views

Use React Dev Tool in developing MetaMask

I am new to MetaMask, and learning how MetaMask works. I found MetaMask UI was implemented with React, so I tried to use React Dev Tool, but I am not able get it working. Please help. I started stand ...
0
votes
1answer
137 views

Importing accounts into geth from metamask

I Have entered into my geth console geth eth.accounts ["0xf844f0d7acb0d01bf66ffd81809fb96b2236abce", "0xc8d94cb87173fc94c4b165e44a5fc0b047618044", "0x6a0ef1a429c3570cb342963d309dd5aaa9e49cd4", "...
1
vote
1answer
54 views

Set method name for MetaMask history

I have a question about the Metamask UI. Is it possible to set custom transaction method name for metamask history to make it more user-friendly? I want to rename "Bid" (default method name) to "Made ...
0
votes
1answer
207 views

Access private blockchain from another PC/Laptop?

I have private block chain on my PC.The private blockchain is configured and deployed using geth. I want to connect to that blockchain from another node(my laptop) to access the smart contract ...
1
vote
0answers
129 views

How to update drizzle-box app to handle metamask no longer injecting web3?

I was reading about the latest and greatest metamask changes, and was wondering how I can update one of my dapps based off the truffle drizzle-box to be compatiable with the new metamask changes. For ...
0
votes
1answer
33 views

Sending real ETH to contract on Rinkeby

I have a contract deployed to the Rinkeby testnet. It includes the following function: function deposit(uint amount) payable public { require(msg.value == amount); } If I try to send ETH to this ...
1
vote
0answers
163 views

Where is the latest MetaMask hello world dapp example?

MetaMask recently added a new permissions check. I'd like a copy-pasteable hello world dapp that includes all best practices and can check the balance of the current user's ERC20 balance for some ...
0
votes
1answer
33 views

Calling a smart contract function inside another in web3

Here is my code Sample in js script connected to ContractInstance through web3: ContractInstance.Fire(function(error,res){ if(!error){ContractInstance.dead.call(function(err, result){ ...
0
votes
2answers
75 views

Different Values for v, r, s? What am I doing wrong?

lets assume I have this private key (test account on ropsten, no need to worry): 785cdcd731a1b2438ec4511a25d04efbdc499ed350df612364af1aa6f4fd6abd When I use Pyethereum to run v, r, s = ecsign(tx['...
2
votes
1answer
173 views

Remix + Metamask not fetching any values

I have a simple test contract that stores a hash and I deployed it via Remix and Metamask pragma solidity 0.4.25; contract Hash { bytes32 hash; constructor(bytes32 _hash) public { ...
2
votes
0answers
81 views

Retrieve MetaMask version in web3.js

Is there a way to determine the version of the currently installed MetaMask extension from web3.js? I can't find it by inspecting the Web3 instance.
0
votes
1answer
244 views

Transaction reverted during contract execution [Reverted]

I sent ETH to a contract address, and the transaction "failed" saying : Warning! Error encountered during contract execution [Reverted]. contract address and transaction failure here: https://...
0
votes
1answer
53 views

How is gas adjusted for a transfer in solidity?

I am using Remix with Metamask on the Ropsten test system, and when I try and transfer Wei I get a gas error. I tried a few combinations but there are various errors relating to gas. Has anyone any ...
0
votes
1answer
381 views

web3.js token approve function show null / 0 in Metamask

EDIT The allowance is set, the issue is just that metamask detect no token name nor amount that is allowed. In my HTML/JS amount = parseInt(web3.toWei(amount, "ether" )); tokeninstance.approve(...
1
vote
1answer
50 views

How to process Smart Contracts payable functions in batch?

I am aware that metamask will enable effective security for processing via the web browser a payable function action to a smart contract. What happens in batch? I have an API service which then ...