Questions tagged [metamask]

Question about the Metamask chrome's plugin.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 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
1answer
74 views

Wait a promise end before continue

i try to create a map with (address => bool) with web3js. I want to know if the address is a contract owner. So, i have to call "owners" function in my solidity contract. As you can see below : let ...
0
votes
1answer
238 views

How to fund account for parity private chain?

I'm having trouble funding accounts when starting parity with a custom chain. My json file is { "name": "DevelopmentChain", "engine": { "instantSeal": null }, "params": { ...
0
votes
2answers
35 views

connect users to the sidechain SKALE

SKALE is Ethereum Dapps to run high speed, Low cost smart contract layer. I wish to connect users to the sidechain SKALE,from their browser. automatically without the manual change as necessary for ...
0
votes
2answers
357 views

DApp using IPFS Ganache and MetaMask

I am following a tutorial (hosted by dappuniversity) on youtube regarding DApps using IPFS. I have done exactly everything as mentioned in the tutorial but i get this errors: GET https://ipfs.io/ipfs/...
0
votes
1answer
24 views

Accounts with ether cannot execute transaction on private chain

According to Metamask my accounts have ether, one account can submit transactions and have them be executed by the network, the other two have their transactions left as Submitted transaction. Note, ...
1
vote
1answer
18 views

Metamask doesn't show token value on erc20 contract interaction

Why using the Transfer method is showing the value of the erc20 that I want to transfer while with a custom method is always showing 0 ETH on metamask instead of the token that I'm transferring via ...
1
vote
1answer
18 views

web3.eth.getAccounts() gets no accounts

I got no accounts loaded with code import Web3 from "web3"; let web3; // typeof check if variable exists if (typeof window !== 'undefined' && typeof window.web3 !== 'undefined') { web3 ...
0
votes
0answers
9 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....
2
votes
1answer
234 views

Metamask not allowing any transaction by code

I am building an application using ethereum smart contracts. I am using Metamask Chrome extension to run my application on Chrome. But I am facing a little issue. When I try to make any transaction by ...
0
votes
1answer
252 views

Browser integration testing with web3.js for dApps

What are the practices to test web3.js codebase in a wwv browser using testrpc chain? Basically emulating Metamask and having Selenium automation to sign the transactions.
1
vote
1answer
14 views

When I tap buy button in market how does wallet check my allowance instantly?

On CrytpoKitties, when I tap the buy button in a market, MetaMask comes up and shows if I can buy or not based on allowance instantly. How is this possible? Is it making query? Is it included in kitty'...
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
1answer
12 views

How to listen to Metamask Ethereum events

I am trying to listen to the 'chainChanged' event for Metamask, but the event never fires. When running the following snippet, the I get a console.log of the chainId once, but the chainChanged event ...
0
votes
2answers
8 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
18 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
10 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
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 ...
7
votes
2answers
7k views

How to obtain all transaction of a contract?

I'm trying to obtain all the transactions of a contract, but in all cases I only obtained [] or undefined. I'm following this posts: Common useful JavaScript snippets for geth web3 filter option not ...
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
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 ...
0
votes
1answer
175 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 ...
0
votes
2answers
122 views

how to write backend for contract if you use infura ropsten metamask and remix

i'm using metamask with ropsten. deployed my contract on ropsten using remix. for the backend i used infura to create instance of web3. ew Web3(new Web3.providers.HttpProvider('https://ropsten.infura....
0
votes
2answers
72 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
64 views

Metamask TestRPC shows 0 Ether while connecting to Ganache- CLI

I've gone through various Q/A(s) of the problem of ganache-cli and metamask not linking but after trying all the solutions, still doesn't work for me. As soon as I type ganache-cli in windows cmd ...
0
votes
1answer
335 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
1answer
59 views

dApps being required to explicitly ask for access to web3(when using MetaMask)

Injecting web3 into the dapp is done automatically,when using MetaMask. Web pages get access to the Blockchain when using metamask in their browser, to read addresses for tranactions, and other ...
2
votes
1answer
122 views

Function to return tuples throws error on frontend

I have similar functions like this and they work fine: function getBarsOfParticipant() external view returns (uint256[], uint16[], bool[]) { uint256[] barIds = participantToBarIds[msg.sender];...
1
vote
1answer
59 views

MetaMask transaction popup opens on another computer

We have two computers on the same local network with Static IP for internet. When Computer A calls a transaction through a DApp for an address X, Computer B Metamask is also getting triggered with the ...
0
votes
1answer
82 views

Internal transactions on Rinkeby - Metamask, ICO through wizard.oracles.org

I have tried to play with solidity and smart contracts. I created "ICO" through wizard.oracles.org on Rinkeby network. Then I tried to send ethereum there from 2nd account, I received tokens on that ...
0
votes
1answer
35 views

Problem with loading my front end local host due to metamask

I have been trying this Dapp university tutorial online and after following it meticulously I've come across this problem. I suspect it's metamask as the video said if I get this loading message I ...
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
1answer
206 views

How to recover/find metamask wallet file

So I had foolishly kept my metamask passphrase only on StickyNotes. This meant when my computer crashed, I had to reinstall all my programs, but all my files remained. For some reason my stickynotes ...
2
votes
1answer
78 views

Dapp cannot fetch a string

Somehow i cannot get any result from my backend solidity. i have asimple dapp that takes firstName from input field save in blockchain and then fetch it back and display it on the screen. state={ ...
4
votes
2answers
223 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
61 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 ...
2
votes
0answers
36 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
1answer
55 views

How to automate blockchain transactions of users without having to ask them to enter wallet addresses?

I am working on a game with an in-game currency. The goal would be that when a player buys something, he only have to click on buy, without having to enter the public address and so on. Are smart ...
1
vote
1answer
81 views

How can i deploy compilled contract with node/web3 and metamask?

Does anybody knows how to deploy smart contract with node/web3 and using unlocked metamask account. I mean over internet it is advised to use HDWalletProvider with mnemonic but I want that user that ...
2
votes
1answer
70 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 ...
1
vote
1answer
28 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 ...
2
votes
1answer
84 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 ...
1
vote
0answers
17 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
1answer
125 views

How can I set up callbacks in my UI after user has submitted tx via Metamask?

I have a webapp that calls a smart contract via web3js/Metamask and I want to reload certain elements once the user has submitted the tx. How can I set up the callbacks for those reload actions?
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
2answers
358 views

Quorum 7nodes example unable to attach to geth node 1,2,4,5,6,7 but node 3 is working

Quorum 7nodes example all of sudden gave fatal error unable to attach to remote geth. Problem: can't attach to geth node Every time I import metamask account to geth node (using personal.importRawKey(...
1
vote
1answer
83 views

How to detect and replace the transaction details that stored in local when user retry the transaction with higher price using Metamask

For a web application i stored the transaction id of an activity. if the user retry the transaction with a higher gas price in metamask(in case of the transaction take too long, metamask gives this ...
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 ^...
3
votes
1answer
185 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 { ...

1
2 3 4 5
19