Questions tagged [web3-providers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Use web3 with metamsk to connect to Binance Smart Chain provider in browser

I am developing a Dapp for the Binance Smart Chain and a issue appeared regarding setting up the metamask provider. In ethereum, I'd set up the provider like that (using next.js): import Web3 from &...
0
votes
0answers
7 views

How to apply a signer from `ethjs-provider-signer` to `eth-provider` instance?

To mimic Metamask plugin behavior (for Dapp testing purposes) I packed a simple provider chimera-provider which is just a modified ethereum-provider from @metamask/providers package (only HTTP version,...
0
votes
0answers
6 views

How to Verify Contract Address Ownership on BscScan

We own a multi-sig wallet with Gnosis and we are trying to Verify Contract Address Ownership on BscScan and we need some guidance. There are no instructions on how to do so from what we have ...
0
votes
0answers
44 views

Remix IDE not connecting to Ganache Web3 Provider

I'm trying to deploy my smart contract to Ganache (perferably the Ganache desktop app but this issue is also occurring for ganache-cli). When I select "Web3 Provider" under the "...
0
votes
1answer
71 views

TypeError: Cannot read properties of undefined (reading 'Contract') - Web3, Next.JS

I'm trying to create a small web3.0 app, using next.js. I have deployed my contract on rinkeby test network, and I am able to check the functionalities using Remix, work properly. I have also worked ...
0
votes
0answers
14 views

Quick ways to learn web3.js please?

could you please suggest some way's to learn about web3.js quickly? I have gone through https://web3js.readthedocs.io/en/v1.5.2/ it is really good, but it is so long and difficult to memorize. It's ...
0
votes
0answers
15 views

Listening for exchange events using brownie

I'm trying to find a way to listen for uniswap pricing 'infinitely' then code some logic to possibly arbitrage between different exchanges. Please link me to any relevant projects if possible. I used ...
0
votes
1answer
72 views

ethers web3provider can't connect to metamask the second time

I am developing a React NFT marketplace on Polygon where a user can create, buy and relist an NFT. The issue is I am unable to connect to Metamask/web3provider for the second time after successfully ...
1
vote
1answer
51 views

Metamask provider not detected on mobile

I have build a webapp to MINT our ERC721 token using Webflow. It works fine on desktop but the window.ethereum is never injected on mobile (browsers & metamask application) Here is my code to ...
1
vote
1answer
65 views

Do we need to use both Metamask and Alchemy as providers?

I was using metamask (window.ethereum) as my Web3 provider but for production was going to switch to Alchemy and realized that the provider.listAccounts() method stopped working with Alchemy provider. ...
1
vote
0answers
45 views

Read from a testnet Rinkeby contract with hardhat script

I am trying to read state variables (using hardhat scripts) from a contract deployed on the Rinkeby network. I use the script below but it returns 'undefined' as if it can't read from the contract. ...
0
votes
0answers
21 views

Ganache-cli server and Webjs not connecting : Returned values aren't valid, did it run Out of Gas?

I am trying to connect web3js in the javascript section of my html to my ganache-cli nodejs server ganache deployment script: const ganache = require("ganache-cli"); const Web3 = require(&...
1
vote
0answers
380 views

reason: 'missing revert data in call exception' - Alchemy provider and ethers

I am following Alchemy tutorial and i keep getting errors when im trying to interact with my smart contract. any suggestion why? I keep getting the error: reason: 'missing revert data in call ...
0
votes
0answers
39 views

How to use NodeReal's Meganode service in BSC Testnet?

This question seems even a bit stupid to me, but I read in Binance documentation about Nodereal, and they state in their documentation about Meganode service, the following: Supports mainnet and ...
1
vote
0answers
13 views

What's the best way to be as up to date with the network as possible

I am trying to create a fast responding system based on event logs. After getting into testing the system I ran across multiple issues from the public providers I am using. I started getting errors ...
0
votes
0answers
68 views

@walletconnect/web3-provider responds with an error after contract interaction

I'm trying to interact with my contract using walletconnect test wallet (https://test.walletconnect.org/). It worked with Metamask but not I get this error after transaction approval. Any ideas why ...
0
votes
0answers
14 views

Can I instantiate Web3 connecting via IpcProvider to a still syncing node?

I'm trying to build up a node but I'm having trouble syncing with the blockchain (really slow), and while it is syncing I'm testing the connection for my script that would be connected via IPC to the ...
0
votes
1answer
45 views

Strange error on Mumbai's polygonscan

I have a write function to add an array of addresses, I put for example this: ["0xddC5f73aB04FbcE9fF79AA07D0A4196BD0285f46"] And the polygon scan (not metamask), says this error: invalid ...
0
votes
0answers
42 views

How to identify swap transaction with Moralis

I am making an app using the WatchedEthAddress class from Moralis. However I am unable to find any documentation on how to identify the swap transactions. Should I be looking at any specific field on ...
0
votes
0answers
25 views

Does a geth light node verify transactions before sending them on chain?

I have a geth light node running locally , i used to use alchemy but now i use geth, however i noticed alchemy json rpc fails and doesnt submit the transaction when something is wrong , whereas my ...
0
votes
1answer
50 views

What are the security and privacy risks of using a custom node provider instead of Metamask's default node provider?

What are the security and privacy risks of using a custom node provider instead of Metamask's default node provider? By example custom node providers, I mean providers like Alchemy. Is there ever a ...
0
votes
0answers
42 views

Stop the suscription.on() web3 subscription

I am trying to check the first next incoming transactions for a given wallet. I am using a function watchTransaction() only when expecting a transaction. I want to stop once the transaction is ...
0
votes
0answers
56 views

Override web3 methods using web3-provider-engine

I have created an open-source key management system, like a digital vault that manages the ETH keyring, which has methods implemented to securely sign transactions and export keys without having the ...
0
votes
1answer
722 views

How to send transactions Infura + Web3.js + WalletConnectProvider

I want to initiate transactions using the following stack. However, Infura doesn't support web3.eth.sendTransaction(tx) because it requires the server to hold private keys. Here is a link to how it ...
1
vote
0answers
166 views

getNFTs() of Moralis SDK returning bad request

I am trying to retrieve nfts of an address for a side project. This is my code. const moralisWeb3 = useMoralisWeb3Api(); async function connectorValue() { try { const nfts = await ...
1
vote
1answer
312 views

Only one account is listed by the configured Web3Provider

I am trying to configure ethers.js together with metamask. Here is how I configure my provider: initProvider() { const ethereum = window['ethereum']; ethereum.enable(); this.provider = ...
1
vote
1answer
370 views

How to authenticate with an Ethereum account through personalSign?

I want to authenticate a user using her Ethereum account. There are several demos and tutorials available, for example Amaury's which uses, however, the deprecated web3 API: web3.personal.sign(web3....
0
votes
2answers
1k views

What is the difference between ethers.getDefaultProvider() and providers.EtherscanProvider() in ethersjs?

What is the difference between ethers.getDefaultProvider() and providers.EtherscanProvider() in ethersjs and when should you use one over the other?
0
votes
0answers
56 views

'web3' is not defined no-undef even after importing

I imported web3 but why this annoying error is occurring please help me... i imported like this import Web3 from 'web3' and the error is occurring here this.web3Provider = web3.currentProvider
0
votes
0answers
135 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 ...
2
votes
1answer
805 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
204 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
494 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
72 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) ...
3
votes
1answer
1k 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
571 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 ...
1
vote
0answers
108 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
76 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
789 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
626 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
140 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
156 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
2k 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
206 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
153 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
13 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
3k 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
2k 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
35 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
54 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
2 3 4 5