Questions tagged [web3-providers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 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
22 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-...
1
vote
0answers
16 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
22 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 ...
1
vote
0answers
56 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
21 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
17 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
19 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 ...
0
votes
0answers
9 views

All requests routed to submodule when changing its provider in web3js

Using web3.js 1.2.11, I expect the last part of the following code to route requests from the web3.eth.personal module to the IPC socket, and requests on web3.eth to TCP port 7545. let Web3 = require('...
0
votes
1answer
75 views

Use web3.js without MetaMask

I have <script src="https://cdnjs.cloudflare.com/ajax/libs/web3/1.2.9/web3.min.js"></script> How to use this web3.js on browsers without MetaMask (for read-only Ethereum queries)...
1
vote
0answers
26 views

How to get event from geth ethereum node using web3.js

I have created a simple contract where I am trying to write a value to a state variable in solidity smart contract, and emit that written value. I am using Truffle v5.1.28 (core: 5.1.28) Solidity - 0....
0
votes
0answers
37 views

Web3 IPC provider connect?

I am using Infura web3 provider to connect etherum but I want to use IPC provider(more secure), How to use IPC provider in ethereum web3.
1
vote
1answer
68 views

The send transactions “from” field must be defined using Infura web3

when I try to send my transaction using infura I get this error "The send transactions "from" field must be defined" My problem is my web3 object. When I used Metamask and ...
0
votes
0answers
21 views

Trying to deploy a simple contract using node and getting the error: Unhandled Promise Rejection / Contract code couldn't be stored

I am doing an online course and trying to deploy using node. Can anyone help ID what I might be doing wrong. Thank you for any help! The error is below, followed by the js code. iii@iii:~/Digital ...
2
votes
2answers
85 views

How do you normalize client-side web3 libraries?

In my web front-end, I need the ability to interact with the Ethereum blockchain. It's possible a user has MetaMask installed. It's possible a user is using the web without MetaMask installed. It's ...
0
votes
1answer
44 views

web3 providers for ethereum apart from metamask, to connect web and mobile dapps?

I want to create a list of ethereum web3 providers available apart from metamask, which could be used to integrate blockchain functionalities in our apps or dapps created in various platforms (web app,...
1
vote
0answers
67 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 ...
0
votes
0answers
121 views

Could not transact with/call contract function, is contract deployed correctly and chain synced?

i got "web3.exceptions.BadFunctionCallOutput: Could not transact with/call contract function, is contract deployed correctly and chain synced? " error when try to run this code: from web3.auto.infura ...
1
vote
1answer
213 views

How can I tell if a node I am using is a full archive node?

What is the best way to tell if the node I am is using a full archive node? One way I know if is to call a contract from the context of an old block, but this requires an RPC call and is not explicit ...
0
votes
1answer
84 views

Unhandled Rejection (TypeError): this.provider[(intermediate value)(intermediate value)(intermediate value)] is not a function

I am receiving the error: "Unhandled Rejection (TypeError): this.provider[(intermediate value)(intermediate value)(intermediate value)] is not a function". However, I have not used "this.provider" in ...
0
votes
0answers
26 views

Geth returns txhash of sendTransaction() but nothing is broadcasted on Ethereum blockchain

I have a strange issue with Geth. The code I've written is based on web3.php and worked well up to now. Currently, I'm testing sending ETH via sendTransaction() method. The operation finishs and I ...
0
votes
0answers
30 views

How to interact with Remix contract through web3py

I have an assignment for which I must write a client that can interact with a deployed contract by transacting and filtering event logs, but I cannot figure out how to successfully get either to work ...
0
votes
2answers
84 views

Unit testing time sensitive Provable smart contracts

I'm currently using Provable (formerly Oraclize) to make a CRON job : constructor() public payable { OAR = OracleAddrResolverI(0x6F486C8BD6fc43eA212E93CCF8ce047C7f1Cb475); provable_query(7 ...
0
votes
2answers
122 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
152 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 ...
1
vote
1answer
65 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 ...
0
votes
1answer
26 views

Problem with Syntax in Solidity with sale contract

Good evening. Well, I have really been battling with this and have followed instructions to the "T" but somehow i'm not getting the Syntax right on Solidity. I'm using Remix in my Web.3 Browser. I ...
0
votes
0answers
15 views

What's the Difference Between Accessing ChainId Through the Provider or the .net.getId() method?

It seems there are two documented mechanisms for obtaining the chainId to identify if web3 provider is on mainnet or one of the testnets. The first that I've seen is using web3.eth.getId(). However, ...
1
vote
0answers
43 views

Why ethers.js sign function not working?

I am using the ethers.js library, and am trying to code a transaction. Here is a snippet where I connect a wallet to a provider, connect to a contract I want to call a function in, and try to call the ...
1
vote
2answers
98 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 ...
1
vote
1answer
34 views

how to let the user use Ethereum DApp Without having wallet

I have a question regarding Ethereum and DAPP .. I have a smart contract that basically store a document and I integrated it with a user interface that let the user go to the website and search for ...
0
votes
1answer
111 views

Can I retrieve data from smart contract to my local webpage without using metamask?

I am creating a DApp where I want to show the public variable's information from the contract. I want my users who don't have metamask to see this information also. Is there a way I can do that? If ...
1
vote
0answers
50 views

Connection not open on send when subscribing to new block headers

I am running a local ethereum node with the below configuration geth --syncmode "full" --datadir "." --ethash.dagdir "." --cache=4096 --rpc --rpcaddr test.example.com --rpcapi="web3,miner,admin,...
0
votes
0answers
21 views

mobile web3 v1.0 not listening to events

I'm able to listen to contract events on desktop but it's not listening on mobile (coinbase wallet). const contractInstance = new web3.eth.Contract(abi, contractAddress); contractInstance.events....
0
votes
1answer
21 views

If you need a server to store HTML and java script code, then what is the use of the block chain?

I have been studying block chain for a while, and I came to know that decentralisation of data is its greatest pros. From my understanding, if block chain is massively adopted in the future, we will ...
1
vote
3answers
52 views

Basic question I guess but is “web3” a client in the sense that I want to use a very simple client to interact with the network?

Long story short I need a way to send programmatically a raw transaction without any bounds checkings or any checks...now I am not trying to abuse or flood the network - my goal is to attempt to send ...
-1
votes
1answer
61 views

I want to create a account on blockchain using web3swift in IOS app, but I am new on blockchain don't know how to do. Please can anyone help me out?

I want to create an account on the blockchain using web3swift in the IOS app, but I am new on blockchain don't know how to do it. Please, can anyone help me out?
0
votes
1answer
98 views

How to use shh.subscribe

I want to use the web3-shh functionality. I used the example from readthedocs(web3-shh). Everything works except for the subscribe operation. It raises following error: ...
1
vote
0answers
163 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....
0
votes
1answer
71 views

How to connect project without web3 js npm package

I'm working with ASP.NET Core project and wanted to connect Blockchain with it. But the problem is, we don't want to use Web3 npm packages. Hence, I have added web3 js as follows <script src="...
0
votes
1answer
156 views

Why does webjs 1.0.0 cdn show api 0.20.7?

I have a project where rather than installing modules I have to import web3.js cdn. It's possible to find it here: https://cdn.jsdelivr.net/gh/ethereum/web3.js@1.0.0-beta.34/dist/ In the project ...
3
votes
0answers
115 views

How does getDefaultProvider work in ethers.js?

From the docs: This creates a FallbackProvider backed by multiple backends (INFURA and Etherscan). This is the recommended method of connecting to the Ethereum network if you are not running ...
0
votes
0answers
44 views

web3 update monitoring

Inside a DAPP, I have been using web3.currentProvider.publicConfigStore.on('update',... to monitoring Metamask activity. But in the new metamask-mobile such method does not exists. There is a ...
0
votes
1answer
509 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
1answer
277 views

Is there any working provider for Ethereum Classic APIs?

Provider used for Ethereum is Infura, but there is no any provider for Ethereum Classic. Previously tested Ethercluster endpoint to access APIs for Ethereum Classic, not able to connect with Kotti ...
1
vote
0answers
98 views

how can i translate the ethers.js “getSigner” utility to web3?

I have a web3 object but I'm working off an example that uses ethersProvider.getSigner(). Is there an equivalent (or mostly equivalent) in the web3 library? For reference, the ethersProvider is ...
1
vote
1answer
49 views

Do smart-contracts work as APIs?

Is it possible to put a smart contract "behind" a restful API, i.e. expose my contract functions and properties through restuful API where I can make RPC to it? Or does it work as an API already, but ...
0
votes
1answer
558 views

TypeError: this.provider.sendAsync is not a function

First I connected web3 with Infura. Then reading an ethereum account. I receive the following error while fetching account balance through node.js console. > web3.eth.getBalance(address, (err, ...
0
votes
1answer
136 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; } ...
0
votes
1answer
150 views

Code not returning when using websocket provider in web3

Below are two code snippets. I have created a 'ganache-testing.js' file and running it using node ganache-testing.js command Web3 = require("web3"); provider = new Web3.providers.HttpProvider("http:/...