Questions tagged [web3-providers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 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/...
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 ...
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
16 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
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 ...
1
vote
1answer
28 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 ...
1
vote
1answer
15 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
57 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?
0
votes
1answer
67 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
0answers
16 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 ...
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
0answers
48 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 ...
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 / ...
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 ...
1
vote
0answers
37 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
219 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 ...
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
0answers
44 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 ...
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 ...
0
votes
1answer
474 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
1answer
195 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....
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, ...
0
votes
0answers
17 views

I am trying to connect my Website with Remix Ethereum IDE and getting one issue { setInstructor} function is not responding.help me with set function

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1....
1
vote
1answer
203 views

Is Metamask a web3 provider?

Is Metamask a web3 provider? I am aware it is a wallet. But is it also a web3 provider? I have read from here that: Web3 provider is a website running geth or parity node which talks to Ethereum ...
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
43 views

What is the best way to download all NFTs data

Mb someone knows what is the best way to download all NFTs data(uri) from contract?? I try to use filter on minting event but I need to do N iterations, because infura or web3 has limitation of 10k ...
0
votes
1answer
42 views

I AM Trying to connect my Website with Remix Ethereum IDE and getting Error { (index):85 Uncaught TypeError: CoursetroContract.at is not a function}

''' Document <link rel="stylesheet" type="text/css" href="main.css"> <script src="https://unpkg.com/web3@latest/dist/web3.min.js"&...
0
votes
1answer
246 views

TypeError: Cannot read property 'providers' of undefined: Truffle & Web3

Here is the necessary part of the code, from where I keep receiving the following error: const { Web3 } = require("web3"); const web3 = new Web3(new Web3.providers.HttpProvider('http://...
5
votes
2answers
345 views

Should web3.currentProvider.send() return a promiEvent when called with async/await?

According to the web3.js docs I'd expect it shouldn't be necessary to use callbacks. When no callback is passed, promise-like "promiEvents" should be returned. Why is the ouput of the ...
0
votes
0answers
249 views

IPC Connection not work on Node.js (web3)

I have a geth node launch on linux, I want to access it through the IPC connection in a Node.js application. I am getting this error : /home/**/node_modules/web3-core-helpers/lib/errors.js:66 ...
1
vote
0answers
57 views

Unknown account while trying to send transaction via OptimismProvider

I'm trying to make use of OptimismProvider to sign the transaction on Mumbai Matic. I'm making use of provider.send("eth_sendTransaction", [hexTxn]) and instantiating provider object by: ...
0
votes
0answers
672 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: ...
1
vote
1answer
451 views

How to access window.BinanceChain object like window.ethereum object on page load

I am trying to initiate provider from the window.BinanceChain object injected by Binance Wallet chrome extension as I did it with the MetaMask extension before: let provider = new ethers.providers....
1
vote
1answer
225 views

difference between metamask and ethereum provider

I found this image online but I can't tell the difference between metamask and an Ethereum provider. Also doesn't metamask use a provider to connect to the network? I'm confused
0
votes
1answer
1k views

Metamask stopped innjecting Web3. How to inject Web3.js properly?

I've been running a Django application which allows users to sign up/log in using Metamask. Everything worked great until recent breaking changes: In early 2021, MetaMask will no longer inject the ...
0
votes
0answers
142 views

Run dapp in mobile metamask browser

I am having a dapp which is working perfectly in web browser using metamask wallet.Now I want to test my dapp in mobile browser using metamask mobile wallet. I tried to make transactions in BC using ...
0
votes
0answers
11 views

No receipt and data return

I had a functioning dapp until yesterday. But contractInstance.methods.x().send().on('receipt') and contractInstance.events.y().on('data') suddenly stopped to work. I can't even find the reason. Why ...
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
0answers
121 views

Lost beween useWeb3ReactCore and getWeb3

I am learning Solidity and DAPPs. I have tried to create a project with truffle, with this command: $ truffle unbox react Here is what i see in generated code: import getWeb3 from "./getWeb3&...
0
votes
2answers
678 views

issues after removing window.web3

I am taking a smart contract course on udemy which belongs to 2017.Many web3 versions have come since then which is making me confused to implement what i am learning in newer versions. When i want to ...
0
votes
1answer
309 views

I am getting UnhandledPromiseRejectionWarning: Error: Returned error: execution reverted error while calling my smart contract methods using wb3js

Here is my code const web3 = new Web3(new Web3.providers.HttpProvider("https://rinkeby.infura.io/v3/2a6f2bf907594edfbe6343066c394df8")); // web3.eth.handleRevert = true var address = "...
0
votes
2answers
597 views

@metamask/detect-provider: Unable to detect window.ethereum

I want to set web3 to Metamask. As mentioned in Metamask document and npmjs, i took a use @metamask/detect-provider. My problem is when i approach window.ethereum. I have a UI, JS file, and some ...
0
votes
1answer
757 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
1answer
661 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-...
3
votes
1answer
353 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(...
0
votes
0answers
58 views

uncaughtException : RangeError: Maximum call stack size exceeded

Facing an issue while working multi-http-provider. When I write var Web3 = require('web3'); require('multi-http-provider'); It throws an error uncaughtException : RangeError: Maximum call stack size ...
2
votes
1answer
680 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:...
1
vote
0answers
179 views

How to catch contract exception in Web3 py?

I'm using infura.io with web3.py and I would like to catch exception thrown by smart contract. Currently, web3.py does not throw any exception even if the contract does, and hence it burns a lot of ...
0
votes
0answers
65 views

A public node URL which can take connection of ethers.js in React Native app

I just installed ethers.js in my React Native 0.63 app and would like to conduct brief checks to see if the lib is up and running. What I need is to have a Ethereum node URL as there is no Metamask or ...
0
votes
1answer
56 views

Function not returning address when using web3 provider

I have a contract that works fine when only using remix. I needed to test the block size and block number. here someone suggested me to use ganache which I did but now I don't get the output I'm ...

1
2 3 4 5