Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
0
votes
0answers
73 views

Web3.eth.sign() not working properly. Not sure if this is a MetaMask or Web3 problem

window.ethereum.enable() is working properly, the window pops up from MetaMask and I allow access like normal. I am also able to send transactions between two of my accounts on the test network ...
2
votes
0answers
48 views

Automatic sign of Transaction

Is there any secure solution(without exposing a Private key of the user) to automatically sign transactions, which are requested from a DApp, so that user doesn't have to sign each of them manually? I ...
0
votes
0answers
91 views

Contract deployment not working anymore

So I have this following code that was working a couple of weeks ago and today I decided to run a few tests and it just doesn't do its job anymore. function approve(rid, guest_wallet, ctr_key, dti, ...
2
votes
0answers
46 views

How to get v,r,s parameters from transaction receipt in remix ide?

I am trying to get v,r,s parameters of a transaction so that I can use them to verify the signature. I am not sure but I think previously remix used to give these parameters in transaction receipt. I ...
2
votes
2answers
161 views

Offchain encryption in Ethereum dapp

Im wrting a dapp which holds / manages sensitive data which might need to be encrypted and decrypted and push again into chain. I know it is not safe to encrypt data in smart contract,which is why Im ...
0
votes
1answer
24 views

MetaMask repeated errors with LocalHost

Every time I try to send ETH to my locally deployed contract I get errors like this: -While the error message says "out of gas" I know that can't be true since all my accounts have like 100ETH in ...
0
votes
0answers
359 views

Web3 is injecting but stilling getting an invalid provider error

I'm injecting web3 with MetaMask, and everything works, but when I make a production build, I notice that it injects web3 alright, but when I try to call a web3 function, it throws `Please provide an ...
0
votes
0answers
108 views

MetaMask privacy mode warning keeps showing

I have added "privacy mode" code as shown here - https://bit.ly/2QQHXvF But the warning keeps showing. How to remove it?
0
votes
0answers
159 views

How to call contract method from specific address and private key without Metamask check

Good morning, I need to known how call contract method in javascript from specific address(and relative private key) without the check of Metamask. I explain better. This is an example of js code, ...
1
vote
2answers
572 views

Remix IDE getting VM error invalid opcode

I am attempting to deploy a test contract on javascriptVM using Remix IDE in chrome. However when I try to execute the contract I receive this message in the status section. "transact to Notes....
1
vote
2answers
731 views

DOMException: Failed to execute 'postMessage' on 'Window' error when using Metamask and truffle Ganache

I faced Uncaught (in promise) DOMException error like below when I was developing Nuxt web app with Metamask(chrome) and truffle Ganache. Uncaught (in promise) DOMException: Failed to execute '...
3
votes
0answers
199 views

Why can't I fetch my Metamask account address with Next.js's getInitialProps?

I'm using Next.js to implement server-side rendering in my Ethereum app, however I can't fetch my Metamask address to display it in the top-right corner of the navigation bar in my index.js file. ...
1
vote
1answer
582 views

How to use sendTransaction to send ERC20 tokens through Metamask?

I have a custom ERC20 token and I want to enable metamask support. By this I mean: 1) The user clicks a "Pay using metamask" button 2) The Metamask payment window pops up and with "Pay 100 ABC ...
3
votes
2answers
179 views

Native mobile Dapp - Sign transactions with user wallet

I'm starting a new project that involves a mobile Dapp and I have a question regarding signing transactions. Every mobile Dapp post that I read about offered two solutions: Use a Dapp browser, such ...
2
votes
1answer
1k views

Metamask transaction confirmed but “Internal JSON RPC error”

I am using getWeb3() to instantiate a contract and make calls with, the transaction says that is confirmed but when I open up developer tools there is the following error MetaMask - RPC Error: ...
0
votes
0answers
42 views

Got Gas Estimation failed error every time, at the time of execution of MultiSig wallet contract. Specifically while executing sendMultiSig() function

function sendMultiSig( address toAddress, uint value, bytes data, uint expireTime, uint sequenceId, bytes signature ) public onlySigner { // Verify the other signer var operationHash ...
1
vote
0answers
24 views

how to use getPublicEncryptionKey from eth-sig-util in a Dapp

The metamask repo includes small collection of ethereum signing functions: https://github.com/MetaMask/eth-sig-util There is a function (not exposed in readme section) named getEncryptionPublicKey ...
1
vote
1answer
69 views

Calling a write function of a contract will deploy a new contract

I'm calling a function that will write information to contract, and MetaMask will list it as a 'Contract Deployment'. It is on the Rinkeby testnet. But if I run it locally using Truffle/Ganache, it ...
0
votes
1answer
262 views

Intergrating metamask in DAPP

I am trying to integrate MetaMask version 5.3.1 in my Dapp. I am unable to call web3 functions like getBalance with the given instance, also I am unable to post a transaction. Is there any ...
0
votes
0answers
44 views

I think Metamask gas fee showing has an error. Please have a look!

1) This is the 5 Gwei gas price, and the Metamask is showing it well. 2) This is also 5 Gwei gas price, but the Metamask is showing much expensive ETH on it. So, when the second Metamask window pops ...
0
votes
1answer
171 views

Tokens are not visible in meta mask

I have deployed my ERC223Token contract in my private blockchain. I have transferred some tokens to my wallet It is showing tokens in my mist wallet and remix as well, but it is not showing tokens in ...
1
vote
1answer
26 views

looking for ethereum account easy management process

Suppose I want users to answer surveys and that each response are hashed and sent to ethereum. My issue is the user experience of creating an account and login without metamask which is not user ...
0
votes
1answer
47 views

Execute smart contract only if the wallet contains some tokens [closed]

i created an erc20 token and i'm trying to create a smart contract that stores some informations in a blockchain just if the wallet contain my tokens. How can i do this? Have i to work on the token ...
0
votes
1answer
127 views

Connecting Metamask to geth

In here it's said we need to run below command line to let Metamask connect to geth: geth --rpc --rpccorsdomain="chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn" I'm running a private ...
0
votes
0answers
185 views

Sign a transaction locally and send it

I'm using Infura as my web3 provider, and have MetaMask installed to connect to the blockchain. I'm trying to send a transaction, but have learned that Infura is read-only, and doesn't support the ...
1
vote
1answer
37 views

Simple but important question: How to get the value of contract's state when using Metamask? [closed]

I'm designing an HTML file (or a user interface: UI) for my smart contract. let's assume that my contract has a state as follows: address public owner;// it is set to "...
0
votes
0answers
65 views

Why is not Metamask invoked in my user interface?

I'm running a private Ethereum blockchain on my computer. I've installed Metamask on my chrome as well. I can create an account on metamask, and then interact with my smart contract deployed on my ...
0
votes
1answer
511 views

Contract deployment using web3.eth.contract(abi) with constructor arguments

I'm trying to deploy the following smart contract: pragma solidity ^0.5.00; contract TestContract { address public owner; string public word; constructor(string memory _word) public{ ...
0
votes
1answer
65 views

approve() and sendFrom()

Im trying to run the code below in a smart contract to use as an escrow. calling approve first and calling send from later does nothing to get the tokens into the smart contract, what am I missing ...
0
votes
0answers
58 views

Balance from ethereum accounts on geth disappears

I have geth private network with 3 accounts A, B and C. each account has 100, 200 and 300 ether balance I connected to this network from Metamask and Transferred the balance of 50 eth from account A ...
0
votes
1answer
137 views

Transaction fails during smart contract deployment from Remix IDE, while i confirm the transaction from MetaMask

I am able to connect to private ethereum network and able to do the transactions from Metamask, but while deployment of smart contract from remix IDE, it launches MetaMask and i get below error while ...
1
vote
0answers
66 views

Metamask not loading transaction fee on Ropsten

I'm trying to send test Ether to a contract on Ropsten, but Metamask won't load the gas options on the send transaction screen. It displays a "Loading" text and never renders the Fastest/Fast/Slow ...
0
votes
1answer
37 views

Oraclize a restfullAPI using a specific number represented by the variable z for a custom token (remix)

is it possible to pass an integer (in this case 141) represented by the variable z from a certain restfullAPI into the custom token function: balances[msg.sender]? So in the end I want to have my own ...
0
votes
1answer
137 views

How to confirm transaction as a receiver in metamask?

My question is simple If I want to send some ether to someone in remix like contract Sender { function send(address _receiver) payable { _receiver.send(msg.value); } } Metamask asks me as a ...
0
votes
0answers
22 views

Meatamask and Ganche-cli generating different signs for the same hash

I'm have created ERC865 token so that users can send tokens without having ether. I followed 1 and 2. My contract recovering the correct address after generating the sign using Metamask customized ...
1
vote
1answer
337 views

How do you set an icon for Metamask “DApp Connect” popup prompt?

For example, here, how would someone get a logo to appear instead of the default "A" logo?
0
votes
1answer
40 views

Private ethereum network account related query

Please help with below queries: how to reset the paraphrase for an account on private ethereum network Is there a way to delete an account on private ethereum network How to enable the etherscan url ...
0
votes
0answers
40 views

Metamask to Private ethereum communication issue [duplicate]

When i connect to my private ethereum network using the 'Custom RPC' of the metamask, it is getting connected from the MetaMask. FYI, i am connecting from outside the network of my server, and all ...
1
vote
1answer
69 views

Error: [ethjs-abi] invalid hex or buffer, must be a prefixed alphanumeric even length hex string

While recovering address from hash and sign, getting above error. myHash = '0xd0109ef5f602b69354acd389a2c752f9b80ef6bbce92a922ae8853d43a027b68'; mySign = '...
0
votes
0answers
59 views

How to generate sign to pass to transferPreSigned(), contract is not asking for sign while transfer()

I'm creating ERC865 token so that users can send tokens without having ether. I followed 1 and 2. As per 1, sender will sign transaction object while calling transfer() but I'm unable to see any "...
0
votes
1answer
140 views

ERC-20 Token Transfer Error

No matter how much gas I use, I get this error : ERC-20 Token Transfer Error (Unable to locate Corresponding Transfer Event Logs), Check with Sender. When I try to transfer tokens managed through ...
0
votes
0answers
184 views

MetaMask to Private ethereum network connection - using Custom RPC fails

What should be the network ID (the one chosen is 3 i.e. Ropsten network) parameter in the below command in order, I want to connect with Custom RPC (which is hosting my private ethereum network) from ...
5
votes
3answers
465 views

How is Metamask able to send erc20 tokens without ABI?

When I use web3js and Truffle, I cannot send tokens to another wallet without the Token Contract ABI. But Metamask only requires the token contract address to recognize and send the ERC20 tokens. How ...
0
votes
1answer
49 views

i have erorr when sendTransaction web3

file javascript //smartcontract window.onload = function() { if (typeof web3 === 'undefined') { document.getElementById('metamask').innerHTML = 'Instal metamask dulu' ...
0
votes
1answer
210 views

Transactions on Ethereum private network using the MetaMask Ropsten test connection?

I have 4 accounts on my private blockchain ethereum network and one of the account has balance of 10000000000000000000 and other accounts have zero balance each. When I connect to this network from ...
1
vote
1answer
232 views

Etherscan indicates I have tokens, MetaMask cannot find them

There are about $2K of Tokens as in the pic, but MetaMask does not get them, and I don't get it.
1
vote
1answer
152 views

Inability to Log into MetaMask [closed]

I had a MetaMask account with password. Had used password to connect to DDex exchange for Ethereum connectivity, transactions, and token balance checks. Recently, I deactivated MetaMask from one of ...
1
vote
0answers
193 views

Metamask and web3 wrong behaviour when extension is disabled

Basically I have a dapp that gets the web3 object from window.web3 (the injected from metamask). When i disable de extention from chrome (not removing, just disabling) the web3 invocations are ...
1
vote
1answer
128 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
256 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. ...