Questions tagged [web3-providers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
658 views

web3-react does not appear to be exposing Ethers.js instance

I've configured the web3-react package in my project (set up with the React Truffle box) but I don't seem to be getting an ethers.js instance in the context. According to the package page, the web3-...
0
votes
0answers
17 views

Is the rate limit of bsc rpc endpoint for single user or all users that are using it at the same time? [closed]

I'm trying to build a bot that gets all of the transactions that occur in the BSC mainnet, I leant that there is a rate limit for the json rpc endpoints: https://docs.binance.org/smart-chain/developer/...
3
votes
1answer
348 views

Metamas - Infura problem. Cannot read property 'currentProvider' of undefined

I got a problem. I am using code below to connect to the eth from node.js app. Everything works perfect as long as I have installed MetaMask in my browser. I can be logged in, logged out, all good ...
0
votes
0answers
28 views

Cannot find module web3

I've tried npm install web3 already but it didn't work. I suspect that this Chainlink deployment does not come with the web3 configuration files, is that possible? For example, in another Truffle ...
1
vote
1answer
26 views

The current provider doesn't support subscriptions: HDWalletProvider on Polygon (matic) blockchain

I use wss://rpc-mainnet.maticvigil.com/v1/MY-APP-ID as my polygon dApp provider, however I cannot subscribe on newBlockHeaders event with the following error: Error: The current provider doesn't ...
0
votes
0answers
16 views

How can I set timeout limit for my pending transactions in the transaction pool?

Sometimes when I send transactions to some of my providers (using web3.js), they keep them pending on their pool (maybe in a queue) for a while before really processing them and including transactions ...
1
vote
0answers
15 views

How to redirect from browser to Metamask or similar app like trustwallet on android?

I have a website that detects metamask and connects with it on pc, but on the android mobile app browser when I open my website it doesn't show some functions as it needs to be connected with BSC, So ...
0
votes
1answer
100 views

How to connect to a peer in ethereum and then run contract on ethereum?

I have developed a smart contract and run it with remix in cases of javascript vm and web3 provider. Now, I want to run it such that my computer to be connected to real ethereum network. I think in ...
0
votes
0answers
660 views

web3 not working because of some deprecated library

May be this is some stupid question to ask but I'm absolute beginner. Guide me what changes I need to do. Thank you. App = { web3Provider: null, contracts: {}, account: '0x0', hasVoted: ...
0
votes
1answer
35 views

Is it possible to have several instances of Web3 object in the same dApp?

I need to access two smart contracts through two different providers in the same app, is it possible to have two instances of Web3 in the same dApp. Something like this: const web3 = new Web3(); const ...
0
votes
1answer
187 views

How to use Web3.WebsocketProvider for continuously receiving the last block from own Node in Python

I use python 3.7 and own Node. So i want to receiving every last block from own Node immediately after it was mined. from web3 import Web3 WEB3_WS_URI = 'ws://node_url:8546' w3 = Web3(Web3....
1
vote
1answer
14 views

Which Provider Can Provide High Transaction Fee Cap?

Geth's default transaction fee cap is 1ETH/BNB/HT controlled by txfeecap. Infura and quicknode use the default option and will raise error tx fee (1.2 ether) exceeds the configured cap (1.00 ether) ...
1
vote
1answer
55 views

Binance Smart Chain RPC Rate Limit

In the BSC documentation, it says that we can make 10K/5mins RPC requests to their servers. Do you guys know if it's 10K per app or user?
2
votes
1answer
281 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
62 views

Error in block header subscription: Error: The current provider doesn't support subscriptions: HttpProvider while connecting the bsc blockchain

I'm trying to connect to the binance smart chain in frontend but although window.ethereum do works i keep having those issues in the title no matter what change i made in the code. My Get Blockchain ...
0
votes
2answers
461 views

Deploying contract to infura via @truffle/hdwallet-provider is hanging

I created a contract and deployed to Ganache test network successfully but it is not deploying to infura. //this section is clean. worked for Ganache var output = JSON.parse(solc.compile(JSON....
0
votes
1answer
460 views

How to get token info with contract address in Ethereum

I use web3 library to interact with Ethereum Network and I want to get token info with his contract address such as tokenName, tokenSymbol, tokenDecimal, tokenLogoURL etc. I can get almost any data ...
0
votes
0answers
15 views

Rinkeby - Not found: no matching order found

I am working on buying asset script using opensea js. I followed the docs and got it working on Mainnet. But when I change my Network and MetaMask to Rinkeby. I get an error: Not found: no matching ...
1
vote
1answer
2k 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....
0
votes
1answer
752 views

How to make web3Modal dapp compatible to coinbase browser?

I have made my dapp compatible with web3Modal. The dapp is using simple Html/css/js. It is working fine with metamask desktop, metamask mobile and wallet connect but when I try to browse it from ...
0
votes
0answers
12 views

remix.ethereum.org refused to connect

I was trying to connect remix to ganache, but the https link is forced. so I followed this up to geth attach <IPC_LOCATION> - now the connection to https://remix.ethereum.org/ is refused. Anyway ...
0
votes
1answer
158 views

Cannot connect to private testnet with web3.js

I have setup a local private test net and now I want to connect from Node.js to a node in the testned using IPC. I started a node with this command: ./geth --identity "5" --datadir /home/davide/...
0
votes
2answers
1k views

Filters object not working for web3.eth.contract getPastEvents() method

I have referred, Web3 Events, but filters object is not working for me, I've got the same result for events before and after applying filter object. Here's the code: instance.getPastEvents( "...
0
votes
0answers
47 views

How to handle connection to a wallet in a dapp

I'm a bit confused on how to handle a connection to a wallet such as Metamask in a decentralised web-app. Let's consider this very simple contract: pragma solidity ^0.8.0; contract ToDo { struct ...
1
vote
1answer
20 views

Connecting to Geth Node using Web3 WebSocket Provider resets every 2 hours

I have a Node JS application which connects to a Geth Node using the Web3WsProvider which under the hood uses W3CWebSocket. The app starts and connects to the node and is set mostly to make read only ...
0
votes
1answer
59 views

Retrieving the private/ public key with web3js for a specific wallet provided by truffle/hdwallet-provider

I can't find a way to retrieve the private key / public key / public address for a web3 account loaded via a provider. I have tried the web3.eth.accounts command but I am not getting the private key / ...
2
votes
1answer
403 views

How do i connect geth to web3.py using IPC on Windows?

I'll briefly explain my setup before describing the problem in detail. I am on Windows 10 and using the geth client in Light Sync Mode, along with web3.py on Jupyter Notebook and Metamask as a wallet....
1
vote
1answer
823 views

Websocket provider reconnects every 1 minute

I'm developing an application on a private Ethereum chain and trying to listen to some events. I wrote a basic indexer script for listening to events and writing them in a database. To listen to the ...
1
vote
0answers
36 views

Listening to smart contract events RPC, using web3, on aleth node

bakcground, I am working on an ethereum based fork of cpp-ethereum/aleth node and not using the official golang client (geth), unfortunately from what I read, websocket support has been 'ditched' in ...
0
votes
1answer
213 views

WalletConnect web3 provider issue with TrustWallet (Multi-coin wallet)

I am using walletconnect/web3-provider to try to connect to trustwallet ios APP. My config on walletconnect is listed below: try { console.log("Log in with connect wallet") const ...
2
votes
1answer
347 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
0answers
28 views

Can you use Ganache to test create wallet using web3py?

I am using the web3.py library using the web3.eth.account.create () to create my own wallets, my question is if there is any way to use the Ganache services as Provider to be able to perform tests ...
0
votes
1answer
190 views

Metmask injection local client standalone

It is too confusing for me. I tried everything. If I run the code in node.js with browserfy.. everything works fine. No I want to run it on my webserver. As MetaMask states it will not inject the ...
0
votes
1answer
24 views

How to prevent user to change recipient address when MetaMask transaction window pops up?

I want to integrate MetaMask as one of payment methods on my website. The idea is to lock my content, when user made a successful ETH payment so the content will be revealed. This is the source code: &...
0
votes
1answer
739 views

Web3 js proper way to call a Reading contract function

So i recently took over a project that had been abandoned for a while, which involves an ECR20 smart contract and the use of the web3 library to communicate with the smart contract. I've been trying ...
0
votes
0answers
43 views

Delay from web3 provider Infura in receiving new block headers

I use web3 in NodeJs to subscribe to 'newBlockHeaders' and use https://infura.io/ as provider. Holding the output of my app side-by-side with https://ethstats.net/ and comparing block numbers, there's ...
1
vote
1answer
602 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 ...
2
votes
1answer
338 views

Can we call two contracts in web3.eth.filter method?

I have two contract address and I want to check events on both in one call. I mean, can we pass two contract address in one option param like i do below? let web3 = new Web3(); web3.setProvider(...
0
votes
0answers
9 views

Integrate a DApp Store to a mobile Wallet [duplicate]

Please how do i integrate a a kindof "dApp store" to a custodial wallet(mobile),so that users can connect to dApps with thier wallet(the wallet i created)- an example is trust Wallet- you ...
3
votes
1answer
351 views

How to set multiple nodes in HttpProvider web3 v1.2.0

I'm working with Nodejs application, and using a multi-node setup on different servers. If I have single node end point like http://localhost:8545 I can use Web3 providers as below var web3 = new Web3(...
1
vote
1answer
1k 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 ...
2
votes
2answers
5k views

Error: Max retries exceeded with url appear when using web3.py

Here is my code: from web3 import Web3, HTTPProvider, IPCProvider web3 = Web3(HTTPProvider('http://localhost:8545')) print(web3.eth.blockNumber) Below is the error: requests.exceptions....
1
vote
1answer
156 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 ...
2
votes
1answer
679 views

I keep getting the `Set 'ethereum.autoRefreshOnNetworkChange' to 'false'` warning, despite setting value to false

I'm using ethers.js to connect to MetaMask. I keep seeing this warning in my console: inpage.js:1 MetaMask: MetaMask will soon stop reloading pages on network change. For more information, see: https:...
0
votes
0answers
16 views

where to hide the private wallet key in my dapp?

Hey I'm making my first dapp and I just want to hide my private wallet key outside of the application itself.I've made other apps before, and I know keys can be hidden off the app with FireBaseConfig, ...
2
votes
2answers
424 views

How to connect these **Remix - kovan - parity**?

I have been trying to connect deploy a smart contract from remix onto kovan chain via parity but kept on showing even after trying with all the rpc flags. if possible please throughly explain the ...
3
votes
1answer
3k views

Cannot use 'new' with an expression whose type lacks a call or construct signature

A issue in the this.web3 = new Web3(window.web3.currentProvider);the web3.js has output and I type to the code of console.log(window.web3.currentProvider)that window.web3.currentProvider is defined. ...
1
vote
2answers
486 views

How do I make my smart contract available for interaction with Metamask?

I am using OpenZeppelin starter kit. I wrote a smart contract that simply contains two integers which can be called. I compiled and deployed the smart contract to my local Ganache blockchain. I have ...
2
votes
1answer
339 views

Difference between 'web3-react' and ''@web3-react/core''

I am trying to understand how popular projects works. Here is what i've found in uniswap interface's source code: https://github.com/Uniswap/uniswap-interface/blob/master/src/hooks/index.ts: import { ...
0
votes
1answer
197 views

Gas estimation failed when using web3 provider testrpc

Gas estimation failed error while invoking a simple function pragma solidity ^0.5.9; contract sample{ uint number; function setNumber(uint _number) public{ number = _number; } ...

1
2 3 4 5