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 [web3-providers]

The tag has no usage guidance.

0
votes
1answer
6 views

Private chain, metamask, accounts

I am wondering how a private chain can communicate through Metamask. My biggest concern is the HttpProvider and accounts. Aren't accounts accessed through the web3 instance? Since accounts aren't ...
0
votes
1answer
16 views

Unable to connect to 'Web3 Provider' on Remix using http connection

I am using an http connection to connect to the Web3 Provider using Remix. The port 8454 is listening as expected. I am getting the following error: Not possible to connect to the Web3 provider. ...
0
votes
1answer
18 views

Access to providers in a cluster with web3 does not work

I have a blockchain deployed in a cluster. I have a geth instance running in a cluster-node and another one in another cluster-node, making a blockchain. I want to run an script which needs to access ...
1
vote
1answer
28 views

Error when deploying with infura ropsten, rinkeby and kovan

when deploying to infura ropsten i get error Running migration: 1_initial_migration.js Deploying Migrations... ... 0x0ed88dd40f380a805ed0ba1b5b0a9d8178321ab6da9e5c0cb247f5700337b173 Migrations: ...
0
votes
0answers
18 views

source.setEngine is not a function

So everything worked fine in truffle 4.1.14, but when I upgraded to 5.0.0 I got this error: TypeError: source.setEngine is not a function at Web3ProviderEngine.addProvider (node_modules/web3-...
2
votes
1answer
19 views

Check if the web3 provider supports certain rpc call

For example, when I am using: web3.currentProvider.sendAsync({ method: "eth_signTypedData_v3", params: [customerAddress, data], from: customerAddress, ...
1
vote
0answers
18 views

Web3JS throws InvalidResponse without Ganache core ever receiving a request?

Versions: Ubuntu 18.04 LTS Node.JS: 8.3.0 WebJS: web3: ^1.0.0-beta.37 web3-utils: ^1.0.0-beta.36 npm: 5.6.0 Truffle version 5.x (latest) I have traced through the HttpProvider code in the Web3 ...
2
votes
1answer
47 views

How to configure truffle network with IPC provider?

How can I define in truffle the ipc connection to the node? Currently I am using in truffle.js host/port fields, which are used to create a HttpProvider. module.exports = { networks: { dev: { ...
1
vote
0answers
163 views

How to fix a web3.py HTTPConnectionPool read timeout error

I have a web3.py program running and everything was seemingly working. I was connecting to my local server via the automatic connection offered in web3.py. I am now getting the following error: ...
1
vote
0answers
63 views

Using web3.py, I get a key error when connecting to a remote server with 3 nodes running (autoconnect works fine)

I have a web3.py project that is successfully performing basic tasks (read from blockchain, send tx, process data, etc.). It is connected to a remote server that is running an ETH node, a Rinkeby node,...
0
votes
1answer
42 views

Problem with running web3.py code

I am trying to run this code from web3 import Web3, HTTPProvider import json import pprint import requests from random import randint # Debug flags debug_transaction = False debug_CALL_transactions ...
1
vote
0answers
108 views

How to Catch Connection Issues to Web3 Provider using Web3.js

My node.js script is able to successfully connect to the Web3 provider when both the private key (using truffle-privatekey-provider) and the provider host URL are correct. let privateKey = ..., ...
1
vote
1answer
33 views

How can I increase EVM time in web3.py?

When working with web3.js, Truffle and Ganache, I can do this: web3.currentProvider.send({method: "evm_increaseTime", params: [numOfSeconds]}); How can I do the equivalent in web3.py? When I do: ...
1
vote
1answer
120 views

How to integrate rinkeby test network with centralised server?

I am new to ethereum blockchain. I want to create ICO platform based website. I have created smart contract and deployed on rinkeby test network. I used python web3.py library to integrate python with ...
1
vote
0answers
245 views

Metamask create transaction with popup prompt

Im trying to create a basic static html page to send a transaction using metamask. It looks like web3 is not being injected into the page at all even though i have metamask installed. I would have ...
0
votes
1answer
154 views

Having issue with Infura mainnet web3 connection and getting info

I have been looking at a tutorial from DappUniversity about Web3... on the introductory video, I have completed all stages fine, but when getting to retriving account balance information from the ...
1
vote
1answer
113 views

Getting all ERC721 transactions by an account

My approach here was to listen for Transfer event for a contract (e.g. Cryptokitties) filtered by the indexed from account. var contract = new web3.eth.Contract(kittyABI, kittyContractAddress, {from:...
1
vote
3answers
150 views

Remix is not connecting to my private network

I have initialized the genesis file then run that command in the console- geth --rpc --rpcaddr 0.0.0.0 --rpcport 8549 --rpccorsdomain "*" --rpcvhosts "*" --rpcapi "network,admin,personal" --...
1
vote
1answer
142 views

Why no dapps in the Google Play Store? Why Ethereum not accessible by default in smartphone?

Before I create a decentralized application, I want to know whether it already exists. I thought the first step would be to search the Google Play Store, but it appears dapps are not available on the ...
4
votes
1answer
104 views

Can I use web3js without setting the provider?

So I have two NodeJS applications, both implementing web3js. The first node is used for creating and signing transactions, then it sends raw signed transaction to the second node. Finally, the second ...
1
vote
3answers
145 views

What is a replacement for Metamask in React App?

I have an app on react that works great with Metamask but in the real world nobody has to install Metamask and I don't know how to create transaction without Metamask. is there any way to create a ...
1
vote
1answer
44 views

How does web3.auto choose a provider node?

I'm having this other issue which has forced me to rely on either infura or web3.auto in order to make the getTransactionReceipt call. I've noticed that when I create a w3 instance from web3.auto it ...
2
votes
1answer
123 views

Reliable way of listening to events on frontend

I make a web application, that needs the events from my contract to initialize it's state. I was using infura websocket provider, but it seems to lag a lot and close the connections unexpectedly ...
0
votes
1answer
30 views

Is it safe to have a locally running Ethereum node exposing personal RPC API?

I am developing a REST API currently running off a node.js server. The API allows ethereum account creation, making a transaction etc. The API interacts with a locally running ethereum node to ...
0
votes
1answer
114 views

How to use web3 function (ecRecover) that shouldn't require a provider?

I want to use web3's ecRecover functionality and nothing else. Unless I misunderstand its requirements - a signature, the signed data, some cryptomagic and poof you have recovered the signer - why do ...
2
votes
0answers
123 views

How to sign transactions using metamask while developing in nodejs?

I am developing an application in nodejs. I need to interact with my smart contract and also want to sign the transaction using metamask as I don't want to manage they keys. I copied the following ...
2
votes
1answer
34 views

Is there dumpprivkey analogue in geth?

I'm creating new address with web3.py with this code: from web3 import Web3 w3 = Web3(Web3.HTTPProvider('http://localhost:8545')) w3.personal.newAccount('the-passphrase') And have few questions: ...
0
votes
1answer
328 views

web3 and web3 provider engine

Scenario: Import json file and decrypt it Use account to sign the messsage I can do this with web3(Web3.providers.HttpProvider) or with web3-provider-engine. What is major difference between using ...
0
votes
0answers
293 views

Web3.providers.HttpProvider is deprecated? How to transition to WebsocketProvider [duplicate]

As per https://web3js.readthedocs.io/en/1.0/web3.html#value the HttpProvider is deprecated. Using the web3 beta 1.0. It seems funny to me that it would be being deprecated. But I am curious as to how ...
0
votes
2answers
404 views

Using Ethereum public and private keys to encrypt and decrypt message (metamask client)

I am trying to use Ethereum private and public keys for message encryption like PGP and I found out this npm module on github, https://github.com/pubkey/eth-crypto#encryptwithpublickey, which it lets ...
1
vote
1answer
453 views

web3.js error: Cannot read property 'providers' of undefined

What is problem of this simple html / JavaScript / ethreumjs / web3.js code? <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title&...
1
vote
2answers
994 views

TypeError: Cannot set property 'method' of undefined when using WebsocketProvider

I'm using: web3 v0.20.6 web3-providers-ws v1.0.0-beta.34 First question - can web3-providers-ws be used with web3 v0.20.*? Second question (problem) - I get an error when probably trying to send ...
0
votes
0answers
69 views

Browser stuck when setting Web3 Provider Endpoint in remix

I am following a beginner's course on Youtube for solidity and stuck at the step of setting Environment to "Web3 Provider". After I click "OK" on the popup window from the top as shown below, the ...
0
votes
0answers
28 views

ethereum console in a web page

I didn't find this, but it may exists already. I'm looking for a web based Ethereum console that, along the same lines of remix, can use metamask as injected web3 provider.
2
votes
1answer
111 views

subscription not happen on geth+websocketProvider in web3

I have started geth node (connect to ropsten testnet) on my local OSX system. Command: geth --testnet --fast --bootnodes "enode://...
0
votes
1answer
396 views

Command line tool to interact with smart contract

I want to be able to interact with functions on a smart contract. I do not want to setup my own node using geth, and would like to use something like Infura as a remote node. Based on what I have ...
0
votes
2answers
479 views

Is it possible to do an escrow for ERC20 Token

I am developing a website which helps users to perform the escrow of ERC20 tokens. The particular platform only accepts the said ERC20 token. I need my client to deposit the ERC20 token to the escrow ...
0
votes
0answers
64 views

Is their a security pattern for Infura websocket failure for from Web3 for dApp? Should I use Geth instead?

I have a nodeJS dApp running on Ropsten that needs to listen to events from the blockchain. I'm using Infura's websocket provider and most of the time it works quite well. However sometimes the ...
0
votes
2answers
464 views

building your own web3 provider

I wonder if there are any tutorials / guides out there that explain how to create your own web3 provider (like metamask), what to consider when creating one, how to handle security/privacy issues, ...
0
votes
0answers
65 views

How to start using web3@latest(web3@1.0) with geth? [duplicate]

I am running my geth node on AWS with latest version of geth with command geth --datadir ~/ethereum1/data1/ --mine --nodiscover --nat any --identity private_chain --networkid 1606 --port 30301 --...
0
votes
0answers
205 views

Connect local wallet to web3 default account

I am trying to connect a local wallet I've created using a V3 object to my web3 instance which contains an Infura provider. The wallet object is from a V3 keystore file originally created in Geth. ...
2
votes
1answer
580 views

Transfer ERC20 token using Web3 and angular

I'm trying to make a simple token transfer app using Web3.js and Angular all i want is to transfer some tokens from an address A to an address B. So, I made two functions in an angular service , the ...
0
votes
0answers
79 views

How To Send Contract Using lightwallet and Hooked web 3 provider

i'm newbie. I try to send a contract call using lightwallet but nothing happen when i clicked on button. Thank you so much for your help $("#button").click(function(){ let seed = document....
0
votes
0answers
37 views

Is it possible to set my geth web3 API version [duplicate]

I've been working with web3 1.0 so far developing my Dapp with truffle. So far i could set the web3 version used inside this project (thanks to this Manually set web3 version in truffle?) but as i ...
3
votes
1answer
263 views

Unable to detect MetaMask in browser

I'm a bit of a noob in javascript and I need some help. My objective is to create a client-side javascript program that uses Metamask as web3 provider and display the output of some web3 functions on ...
1
vote
1answer
138 views

Error: could not unlock signer account

Error: could not unlock signer account Using web wallet to manage accounts in browser. But getting the above error when calling a function of a smart contract. This happen after updating the web ...
0
votes
0answers
35 views

How to detect if the node is down?

Is there any function inside MetaMask or Web3JS to detect if the node is down? For example, let say the private node that the user is connected to is down, how my app can know about it? Steps to ...
1
vote
1answer
76 views

GUI does not work for contract

I developed an contract as follows and I got "certificate of guarantee". It means that it works well. Now I want to design a web application as UI to interact with smart contract. I did it with HTML ...
1
vote
0answers
83 views

Can't call another contract constant function in Remix in Web3 provider mode, but it works in Javascript VM

Remix behaves differently when running Javascript VM and web3 provider mode. I have two contracts: contract ERC20Basic { function totalSupply() public view returns (uint256){} function ...
0
votes
3answers
475 views

web3.eth.personal : “Method not found”

When I invoke a method of web3.eth.personal I receive an error as follows: > web3.eth.personal.getAccounts().then(console.log); Promise { <pending>, domain: Domain { domain: ...