Questions tagged [web3-providers]
The web3-providers tag has no usage guidance.
303
questions
0
votes
0
answers
10
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 ...
1
vote
0
answers
28
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 ...
0
votes
0
answers
37
views
long-time pending transaction suddenly is hidden on Goerli
Sometimes, happen for me scenario below:
I send a transaction to Goerli with low gas. Infura nodes return me a successful message with a related transaction hash. But when I search for the transaction ...
0
votes
1
answer
172
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.
1
vote
0
answers
36
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, ...
1
vote
2
answers
163
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....
1
vote
1
answer
42
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 ./...
1
vote
1
answer
59
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 ...
2
votes
2
answers
214
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 ...
1
vote
0
answers
22
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 ...
1
vote
0
answers
34
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 { ...
0
votes
0
answers
12
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 ...
0
votes
1
answer
26
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 ...
0
votes
0
answers
17
views
unfortunately it is not possible to create an account using an external wallet (vm london)
I have duplicated tabs of the same smart contract to make each user of the same smart contract to invoke the function related to him then i got this error.
(unfortunately it is not possible to create ...
0
votes
0
answers
121
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 ...
0
votes
1
answer
12
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 ...
0
votes
1
answer
191
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....
4
votes
1
answer
238
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(...
1
vote
1
answer
115
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 ...
1
vote
2
answers
56
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 ...
1
vote
0
answers
378
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({ ...
0
votes
0
answers
86
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
0
votes
0
answers
373
views
Connect Web3.js to Geth in Goerli Testnet
I am trying to connect to a Goerli node using geth in which I have deployed a smart contract via Remix.
In fact I'm trying to call the function of this smart contract which returns a value for example ...
3
votes
2
answers
930
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 { ...
1
vote
0
answers
167
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 ...
1
vote
1
answer
99
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 ...
1
vote
2
answers
117
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....
0
votes
0
answers
27
views
Web3 Authentication With .NET Core
I'm working on a web2 project that also has a web3 module.
Here's what I'm trying to achieve:
Frontend should be able to sign in with email/social
web3 auth provider should: create a wallet if first ...
1
vote
0
answers
79
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 ...
0
votes
1
answer
176
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 ...
0
votes
1
answer
404
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....
2
votes
1
answer
164
views
Have any a16z-backed protocols ever been hacked?
This year, we saw the hack by exploit of a Binance bridge and a Ronin bridge due to weak code written by the protocol creators.
a16z Crypto is the most influential DeFi protocol investor in web3, ...
0
votes
0
answers
76
views
How ganache unlocks account that doesn't belong to me?
In ganache mainnet fork, I can unlock any account and make transactions on behalf of that account:
npx ganache-cli -p 8545 -f https://mainnet.infura.io/v3/$WEB3_INFURA_PROJECT_ID --unlock $...
0
votes
1
answer
534
views
Metamask is not connecting to Goerli test net
For some reason I cannot connect to the Goerli network:
after spinning is completed, I get message "cannot connect. switch to a different network". I switched to "mainnet", wallet ...
0
votes
1
answer
27
views
how do call this function in my frontend dapp using metamask and ethers js
I have this smart contract function and I am trying to call it from my frontend dapp but cant seem to figure out how to do so using ethers js and metamask.
function multiSendFixedEth(address payable[]...
0
votes
1
answer
128
views
How to get the amount of Eth a particular address sent to a smart contract?
Goodday Everyone….So am building a dapp where different addresses can send ether to a smart contract…So am trying to get the value of ether sent by each addresses through a function….How do I write ...
0
votes
1
answer
107
views
How to programatically get state change of a transaction?
It's pretty easy to get state change before/after a block using a Web3 library. But I am stuck on getting the state change of a transaction.
Like any etherscan txn receipt we can view the State change:...
0
votes
3
answers
2k
views
Uncaught Error: missing provider
I am building a web3 and I have a problem where the page doesn't load if the browser doesn't detect Metamask (or web3 app) and it loads and works perfectly otherwise.
I looked at the browser's Console,...
0
votes
2
answers
727
views
baseFeePerGas missing from block in python web3 for web3.eth.get_block
I am using the python web3 library to connect to the Binance Smart Chain at RPC=https://bsc-dataseed.binance.org. Since BSC is a POA chain, I am also using web3.middleware.geth_poa_middleware as ...
0
votes
0
answers
285
views
React Native: How to connect a custom built wallet to in-app browser?
I am building a wallet app with react native using ethers.js.
Now I would like to let my app function as a wallet provider to any website as soon as the in-app expo-webbrowser is opened.
import * ...
0
votes
1
answer
15
views
I have a problem with tis array of struct please help me create a tag also
struct people {
uint256 favouriteNumber;
string name; // now we have a new type of people,
}
//and the much better way to create a list of people is to add a data structure called an ARRAY of struct
//...
1
vote
0
answers
14
views
Metamask Connect Button Not working when adding "Deposit" function
I'm following a tutorial for a basic app that utilizes Metamask, this is my code in index.js:
import { ethers } from "./ethers-5.6.esm.min.js"
import { abi, contractAddress } from "./...
0
votes
1
answer
279
views
Web3.js contract call: Provider does not have a request or send method to use
Unfortunately, the very few similar questions either have outdated answers or solutions that did not work in my case.
I'm getting the following error when calling a function in an Aave Smart Contract:
...
0
votes
1
answer
357
views
Is it possible to send batch of transactions in Ethereum?
I wonder whether it is possible to send batch of transactions at once. I am aware that on the contract side this can be done, but this limits the batch execution to a limited number of functions, and ...
0
votes
0
answers
103
views
Fall back to default provider with web3-react when not active
I need to request some data from an rpc url when a user is not yet connected to a wallet. In my dApp I do have the rpc url available and I am also able to establish connection.
But when the user is ...
0
votes
1
answer
2k
views
WalletConnect (Metamask Mobile) configuration with React Native app
Hey can anyone help me on below points-
Connect React Native (expo or xcode) Mobile App to Metamask Mobile Application with the help of Walletconnect
Not presenting the QRCode Modal but list of ...
0
votes
1
answer
55
views
How can I know if my rpcUrl is working or not?
I have a 2 rpcUrl, I would like to pick the one that's working. How can I pick the active rpcUrl? Unfortunately, I can't catch the error log on this one.
const provider = new ethers.providers....
1
vote
1
answer
736
views
Use EthersJS to connect to either Alchemy or Infura depending on availability
I've noticed that relying on one provider API can be problematic at times of heavy server load. I would like to use EthersJS to choose either Infura or Alchemy depending on which network is available ...
1
vote
0
answers
80
views
bscTestnet hardhat deployment problem
I've been racking my brain for quite a while now.
Before, I was able to deploy my code in bscTestnet with no problem, but recently, without changing any code it always stuck and it's not working. so ...
0
votes
1
answer
182
views
Faced a problem whiling getting Ethereum transactions which are in mempool
I am trying to get mempool transactions ASAP.
My purpose is to get the pending transactions on Uniswapv2 router before the transaction is confirmed.
I tried several providers from Quicknode, Alchemy, ...