Skip to main content

Questions tagged [web3-providers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
23 views

Reading Ethereum JSON-RPC data faster using web3.py

I know this kinda of question has been asked many times but none of them seem to meet my expectation. I am looking to extract total historical block transaction eth-values and also historical balances ...
user127776's user avatar
0 votes
1 answer
22 views

TypeError: Cannot read properties of undefined (reading 'getSigner')

get this mistake by running the following: const signer = hardhat.provider.getSigner(); what could be the problem?
אליה שלמה's user avatar
3 votes
1 answer
51 views

how can we control the logic behind ethersJs fallbackProvider's choices

I am trying to use ethersJs to handle multiple RPCs with a fallback mechanism, to ensure we always get a response. I tried the FallbackProvider . The probelm with it is that event if you set a quorum ...
Kaki Master Of Time's user avatar
0 votes
1 answer
25 views

Trying to create a dApp where transactions are signed by a default wallet

I am making a casino for a client and I want all data of amount won by a user to be sent to my contract. The gas for each of these "data sending transactions" will be approved by the client'...
Risavdeb Patra's user avatar
2 votes
3 answers
67 views

How does Etherscan decode unverified contracts events?

Etherscan is able to decode event data from unverified contracts, even without an exposed ABI. Below is an example screenshot. No signature available for this event. I've been able to replicate the ...
user130657's user avatar
0 votes
0 answers
14 views

Unhandled Rejection (Error): ENS is not supported on network private

Unhandled Rejection (Error): ENS is not supported on network private l.<anonymous> /packages/web3-eth-ens/lib/ENS.js:481 478 | if (!this._detectedAddress) { 479 | var networkType = await ...
Nishant Patil's user avatar
0 votes
1 answer
244 views

Can anyone explain what Linea mainnet is and does

"Linea is a network that scales the experience of Ethereum. Its out-of-the-box compatibility with the Ethereum Virtual Machine enables the deployment of already-existing applications, as well as ...
saksham khandelwal's user avatar
0 votes
0 answers
76 views

Need Help Deploying Contract to Sepolia

I've built a web3 dapp for the "Rock, paper, scissors, lizard and spock" game. I've made it run on my local system using truffle and ganache but I must deploy it on an Ethereum test like ...
Priyadarsh S S's user avatar
0 votes
2 answers
297 views

Connecting to MetaMask using Web3.js: Web3.givenProvider vs window.ethereum

I am currently attempting to programmatically connect to MetaMask using Web3.js. I am following the Getting Started guide (https://web3js.readthedocs.io/en/v3.0.0-rc.5/getting-started.html), and the ...
Dawid's user avatar
  • 141
0 votes
2 answers
857 views

Infura Ethers.js jsonrpcprovider failed to detect network and cannot start up

I have tried to make Ethers.js 6.8.0 to work with Infura: endpoint = "https://sepolia.infura.io/v3/" + infuraApiKey; provider = new ethers.JsonRpcProvider(endpoint); but got this ...
Russo's user avatar
  • 1,784
0 votes
1 answer
77 views

Cant make conection with my Smart Contract using web3

I cant get my contract instance using web3 . I am making todo app using web3 . I cant get my contract instance in js file . I am new to web3 development and everyday I am trying my best improve my ...
Shorna's user avatar
  • 17
0 votes
0 answers
27 views

I cant log out my contract in a project

I am building web3 Todo app . I am building it using Next Js . I am trying to console log out my contract on console . So I have just build my smart contract . Now trying to make connection with my ...
Shorna's user avatar
  • 17
0 votes
0 answers
123 views

Connect wallet to dapp automatically in internal wallet browser

I am working on a ethereum wallet and building an in-app webview where user can open dapps inside dapp itself (like trust wallet, family, etc). I am injecting a Provider (inspired from trust-web3-...
akathecoder's user avatar
0 votes
1 answer
24 views

In the post merge 2023 developer ecosystem, what's the best practice for connecting to a web3 dApp that doesn't use client-server JS (e.g. node)?

I have a very simple application that uses Django as the underlaying web framework, and our app got a bit stranded by the move from Walletconnect's services in the migration from v1 to v2 that was ...
jdero's user avatar
  • 101
0 votes
1 answer
121 views

(SOLVED) TypeError: Cannot read properties of undefined (reading 'call') and TypeError: TestContract.name is not a function

This is my simple js code (without api). I try to do my first steps with js and web3 and the goal is to fetch data from the OMG network, a very simple task, but for some reason it is not working. I ...
Christopherus's user avatar
0 votes
0 answers
32 views

Coinbase Wallet extension does not return pending transaction from eth_getTransactionByHash

I encountered a problem while integrating CoinBase wallet into a DApp. Previously, only MetaMask was supported. With MetaMask, I was able to send a TX hash of a pending transaction to ...
CherryDT's user avatar
  • 113
0 votes
1 answer
294 views

ECONNREFUSED with Ethers.js and Node.js

const { ethers } = require("./node_modules/ethers/lib"); require("dotenv").config({ path: "./.env" }); const provider = new ethers.providers.WebSocketProvider( ...
Sinners's user avatar
0 votes
0 answers
821 views

How to implement wallet connection with Ethers.js v6 for multiple providers (MetaMask, Coinbase)

I'm building a DApp and want to provide wallet connection options for users. I'm using Ethers.js v6 for Ethereum interactions. My goal is to allow users to click buttons like "Connect to MetaMask&...
Rodrigo Vila's user avatar
0 votes
0 answers
8 views

Minting react app

I build a sample minting app with React, When I built the app on localhost everything ran correctly, but when deploy the app on Vercel appear a blank page. what is wrong?
asd youa's user avatar
0 votes
0 answers
1k views

Getting "err: max fee per gas less than block base fee" when estimating gas cost of a transaction

For the last few days, I have some trouble using the eth_estimateGas function from the Quick Node provider. Indeed, after fetching a transaction from the mempool, I want to estimate the gas cost of ...
VeeN's user avatar
  • 101
1 vote
0 answers
81 views

Stargate swap error

I'm trying to swap calling stargate protocol function. But there is en undifined error when executing. Don't know where to find solution. Please help me chain_id = 111 rpc = 'https://arb1.arbitrum.io/...
MyakishevM's user avatar
0 votes
1 answer
531 views

Change or remove default web3 wallet on Android

I accidentally chose Ledger as the default wallet for DApps in the Android pop-up when I use Metamask also. How do I remove the default so that I can choose which wallet I want to use?
Janine White's user avatar
4 votes
3 answers
451 views

Looking for the best provider

What’s the best multi-chain provider? I want to use Polygon, Avalanche, Solana, & Ethereum.
Tien's user avatar
  • 193
1 vote
2 answers
106 views

What is the most suitable node provider for Avalanche c chain transactions and assets tracking

On Avalanche C-chain I need to be able to publish transactions and track their status whether it’s mined/confirmed/dropped, furthermore I need to be able to track multiple account balances. There is a ...
Andrey Obruchkov's user avatar
1 vote
0 answers
86 views

Detecting gnosis safe through Walletconnect

I am on a chain with a specific problem of not being able to estimate gas when Gnosis safe walletconnect dapp is used to connect to a dapp on this chain. So I require detection on whether the wallet ...
Atilla Birer's user avatar
2 votes
2 answers
1k views

Web3ReactProvider || Cannot read properties of undefined (reading 'length') || Error while using web3-react/core

getting this error while consuming the web3provider, Did the same configuration as per the tutorial.
amit perane's user avatar
1 vote
2 answers
1k views

WEBSOCKETS Provider url for binance smart chain

I have a contract deployed in Binance smart chain. I have written a script that will help me read the events logs from the Blockchain. currently, I tested that with the local hardhat network itself, ...
Bappa Banerjee's user avatar
1 vote
2 answers
856 views

Goerli + ethers.js 6.3 + API key --> unsupported network and 403 server errors

My code transfers coins from a bunch of wallets to the main one. Previously, with ethers 5.7x it used to work well. However, it doesn't any longer. I used to have this: const provider = ethers....
Kyell's user avatar
  • 91
1 vote
1 answer
485 views

Getting error while adding web3 in react file

I am completely new to web3 and react . I following a course to build a small project .I have been trying add a web3 instance in my main react file . I getting this error everytime . ERROR in ./...
Shorna's user avatar
  • 17
1 vote
2 answers
197 views

gasless transaction with account abstraction

With the new account abstraction 4337, I am planning to crearte a chrome extension that can support gasless tx on any web3 platform. I have a paymaster that can support transactions. For example, I am ...
bbusdriver's user avatar
  • 1,154
2 votes
2 answers
638 views

If I am using window.ethereum provider, what is the use of alchemy api key?

I am following a tutorial on creating a simple dApp; in the tutorial, the provider used is window.ethereum, which is, correct for me if I am wrong, a MetaMask provider, but he still uses the alchemy ...
Mohamed Ashraf's user avatar
1 vote
0 answers
144 views

How to pass web3 client from server to client in next.js?

I spent all day (meh, not a record (but I'm not finished yet lol)) trying to pass the web3 instance to the client side of my app. Why would I use it on the server side? Well, to keep my wallet ...
Eugene1111's user avatar
1 vote
0 answers
93 views

How to set up my own ganache provider in web3-react?

There are no examples or documentations about setting up my own provider in web3-react library. Can someone provide a simple example about that? Here is my attempt: src/connectors/metaMask.js import { ...
Libra's user avatar
  • 21
1 vote
1 answer
52 views

Is there a decentralized version of Cloudflare Workers?

Is there a decentralized version of Cloudflare Workers or some comparable service like AWS Lambda functions or GCP Cloud Functions? I would love a blockchain based, or just a decentralized version of ...
ChristianOConnor's user avatar
0 votes
1 answer
96 views

How to use thirdweb contracts with node v14 in reactjs?

Hey everyone I am using useStorageUpload from @thirdweb-dev/storage for uploading NFT image and metadata to ipfs but it is giving me errors which I cannot figure out where am I doing wrong Here's my ...
Nirban Chakraborty's user avatar
0 votes
1 answer
419 views

Binance smart chain node API provider without billing per websocket response

I'm unsure if this is the correct place to ask but I thought I'd try anyway. Problem I want to build a Node.js application using the Web3 library. The application should collect prices on liquidity ...
Jaron_e's user avatar
0 votes
1 answer
44 views

Can I transfer ethers from user to a contract by pressing a button and accept in metamask?

I am learning solidity and react and for that I want create a web platform for Social Events. The events have a id, adress (owner of the event), price and the page looks like this: I am connected to ...
user118391's user avatar
0 votes
1 answer
1k views

Error: call revert exception; VM Exception while processing transaction: reverted with panic code 50

I am getting an unusual error. It would be great if someone can help me out with it. This is the code of my user interface which sends a transaction to the smart contract. const provider = new ethers....
Sina Rahimi's user avatar
4 votes
1 answer
303 views

If `provider` is essential in communicating with the blockchain, how is this following code working?

Here is the smart contract code: // SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; interface Bucket { function drop(...
amit's user avatar
  • 390
1 vote
1 answer
284 views

BSC: CONNECTION ERROR: Couldn't connect to node

I use this tutorial for run BSC node: https://docs.bnbchain.org/docs/beaconchain/light-client But with web3 I get error: Uncaught (in promise) Error: CONNECTION ERROR: Couldn't connect to node My ...
user118189's user avatar
1 vote
2 answers
138 views

How Does a New Wallet Get Added to a dApp’s List of Support Wallets?

Let's say I have a new wallet that I've created and I wanted it to show up next to Metamask whenever a user clicks "Connect Wallet" on a dApp front-end as another wallet option. What is the ...
Jackson Kelley's user avatar
1 vote
0 answers
854 views

How to correctly set up a WebSocketProvider in ethers.js?

I'm trying to switch my dapp from Web3Provider to WebSocketProvider, form this: const provider = new ethers.providers.Web3Provider(window.ethereum) const accounts = await window.ethereum.request({ ...
Sawy's user avatar
  • 11
0 votes
1 answer
300 views

walletconnect v2 cdn for javascipt project

do we have an cdn for walletconnect v2 for using in pure js project? after that we need to get provider and getsinger for using data and creating contract ethers.js by signer for call functions
user116235's user avatar
3 votes
2 answers
2k views

Connecting to MetaMask wallet via WalletConnect Web3Modal V2 from mobile browser does not give connect prompt in metamask app

import { EthereumClient, modalConnectors, walletConnectProvider, } from "@web3modal/ethereum"; import { configureChains, createClient, WagmiConfig } from "wagmi"; import { ...
chaitu605's user avatar
1 vote
0 answers
304 views

Set ethers provider to use any injected web3 providers

Using MetaMask provider to detect MetaMask as provider and Etherprojects provider to set provider. import { ExternalProvider, Web3Provider } from '@ethersproject/providers'; import ...
Sagar Atalatti's user avatar
1 vote
1 answer
572 views

How to remove default Provider and allow users to choose?

Currently I have MetaMask installed in my chrome browser. And the dApp that I'm building uses the Ethereum provider by default. How can I not use it as the default Provider, and selects the Provider ...
code_learner93's user avatar
1 vote
2 answers
546 views

How to use two defaultNetwork: in Hardhat.config.ts

Here's my hardhat.config.ts file { defaultNetwork: 'goerli', //////// here 'polygon_mumbai' networks: { hardhat: { }, localhost : { url : 'http://127.0.0....
user114704's user avatar
1 vote
0 answers
146 views

How to recover from intermittent 'the resource eth_call is not available' during runtime?

When I call a contract function using a block_identifier from the past, I get error code -32002 the resource eth_call is not available in ~4/5 times when using a public RPC using Python web3. ~1/5 ...
decryptozoo's user avatar
0 votes
1 answer
3k views

remix scam, did i get scammed? [duplicate]

I made a smart contact without looking into it much, but here is the video and code video: https://youtu.be/BvIpfcKzwbk Code: https://pastebin.com/raw/xCBDQc3V Im unable to withdraw anything now, i've ...
user115006's user avatar
0 votes
1 answer
720 views

Alchemy provider API provider does not support signing

I am using AlchemyProvider with ether.js to deploy a smart contract using frontend data But I am not able to sign the provider i.e AlchemyProvider. Code const provider = new ethers.providers....
Yakshesh Gupta's user avatar

1
2 3 4 5
7