2022 Developer Survey is open! Take survey.

Questions tagged [infura]

INFURA is a scalable, standards-based cluster and API endpoint for Ethereum & IPFS.

Filter by
Sorted by
Tagged with
16 votes
4 answers
10k views

Infura web3 provider for Events (.get & .watch)

I am using infura for connecting to testnet/mainnet as my server side web3 provider. This works for most requests and operations, but it does not seem to work for Events. const allEvents = (event, ...
user avatar
  • 2,256
16 votes
2 answers
8k views

To which remote ethereum nodes does Metamask plugin send signed transactions? and are they exposed to denial of service attacks?

So Metamask allows in it UI to connect to different ethereum nw (public/ testnet) right. Do who is maintaining these peers? Can I trust these peers?. If so, can I setup similar service on my machine ...
user avatar
16 votes
2 answers
13k views

Connecting to hosted web3 provider from NodeJS backend

I'm using these instructions from etherchain. Here's a similar question(seems like duplicate, but it's not). The solution provided there doesn't work for me, because I don't have a local ethereum ...
user avatar
  • 4,138
16 votes
6 answers
10k views

Elegant way to detect current provider int web3.js

I want to know what provider the user is using (Metamaks, Mist...)so I can give better user experience. E.g. Give tips on how to unlock an account I'm currently doing this, but is far from elegant. ...
user avatar
  • 161
13 votes
4 answers
29k views

How to connect to the Ropsten test-net using web3.js

I want to connect to the Ropsten test-net: // Is there is an injected web3 instance? if (typeof web3 !== 'undefined') { App.web3Provider = web3.currentProvider; web3 = new Web3(...
user avatar
11 votes
3 answers
10k views

How to connect to infura and deploy contract use web3.py?

the orgin question is below: How to connect to Ropston and deploy contract use web3.py? I have deploy a contract to Ropston use remix and MetaMask. I want know how to deploy a contract to Ropston via ...
user avatar
  • 113
10 votes
4 answers
10k views

The best Web3 providers online

Does anyone know what are the most popular web3 providers online? (Or is Infura the only one?)
user avatar
  • 103
10 votes
2 answers
4k views

How do I connect the geth console to an INFURA endpoint?

Rather than have a local node on my PC, I'd like to be able to attach the geth cli console to INFURA and then issue requests within geth's java console, e.g. web3.eth.getBalance(<address>) I ...
user avatar
9 votes
2 answers
6k views

Truffle + Infura on Mainnet: Nonce too low error

I have the following code: const Contract = artifacts.require('./Market.sol'); module.exports = async function(callback) { let instance = await Contract.deployed(); for(var i = 0; i <=200; i+...
user avatar
  • 851
9 votes
3 answers
4k views

Can not send eth on Ropsten using Infura node

I am trying to send some test ether on Ropsten network using Infura but I can not make a transaction. Code works locally with testrpc but not with Infura var Web3 = require('web3'); var util = ...
user avatar
  • 315
9 votes
2 answers
1k views

Running Mist with INFURA

Is it possible to run the Mist browser with an external ETH client like INFURA? Yes, I understand this may not be the decentralized paradise we want to get to, but I'd just be happy to run a browser ...
user avatar
  • 1,015
9 votes
3 answers
13k views

Is there an Infura equivalent for BSC?

I am new to infura and was wondering how people interact with other smart chains. Is there an equivalent service like infura for the Binance Smart Chain? Or can you still use infura for BSC?
user avatar
  • 1,243
9 votes
4 answers
2k views

Adding Wallet using web3.eth.accounts.wallet.add

On web3 0.20.1, I am using Infura to deploy a contract to Rinkeby. This probably requires me to add a wallet to web3.accounts to provide the gas needed. When I ran the following nodejs code, Web3 = ...
user avatar
  • 1,067
8 votes
4 answers
4k views

How long does Infura store a file on IPFS?

You can send files to Infura's IPFS servers but I don't know about the limits. How long is it stored for? What's the size limit?
user avatar
8 votes
3 answers
3k views

How to send a lot of transactions to ethereum, using js

I'm trying to send a lot of transactions to Ethereum with one program written in js. I use node js, web3 and infura ropsten. The problem is: if i send transactions at once, most of them just disappear....
user avatar
  • 81
7 votes
2 answers
2k views

Why does sendSignedTransaction return a tx hash BUT does not post to the Rinkeby network (React, Metamask, web3, infura)

I'm developing a very simple React application wherein a user clicks a button and some ether gets sent from one account to another. Currently, the onClick sendEther function crafts a proper signed ...
user avatar
7 votes
3 answers
11k views

Invalid JSON RPC response error for sendTransaction on Infura + Ropsten node + Truffle console

Calls work but transactions throw the error - Error: Invalid JSON RPC response: "" I am using web3 v0.19.0 & Truffle v3.4.9. Deploying contract using truffle, truffle migrate --network ...
user avatar
  • 185
6 votes
2 answers
4k views

Best possible way to launch the ethereum mainnet node on AWS

I have multiple applications running on my local system. I want to make them live, I need ethereum main net node of my own. I launch the ethereum node on AWS server using supervisory mode but it doesn'...
user avatar
6 votes
2 answers
8k views

Simplest way to integrate Infura with a Web3/Truffle app?

I have a Truffle/Web3 app which has this code in app.js (by default) which runs when the page is loaded: $(document).ready(function () { if (typeof web3 !== 'undefined') { console.warn('Using ...
user avatar
  • 1,288
6 votes
3 answers
3k views

Truffle + INFURA for deployment

I've recently started to use Truffle to automate/speed up my development. As I'm still getting the grasp of it I've come up with a barrier when trying to use INFURA for migrations. INFURA nodes don'...
user avatar
  • 113
6 votes
1 answer
829 views

Problem with start() in web3-provider-engine

While trying to connect to a provider(infura) I get the above error below is the full stack trace: bundle.js:54318 Uncaught TypeError: this.provider.sendAsync is not a function at Web3Subprovider....
user avatar
5 votes
1 answer
541 views

Advantages of Infura over Ganache?

I'm just starting to use Ganache for building my smart contracts but have seen some youtubers using Infura. After going through the Infura website, to my newbie eyes it seems to be exactly the same ...
user avatar
  • 159
5 votes
1 answer
1k views

Cannot create filter on Infura via web3.py

I have an Infura account and I have the following code: ... web3 = Web3(HTTPProvider("https://ropsten.infura.io/mytoken") ) web3_pending_filter = web3.eth.filter('pending') ... when line ...
user avatar
5 votes
1 answer
3k views

Web3py. Error getting events using Infura: "The method eth_newFilter does not exist/is not available"

I'm trying to get all events from contract, but get error: "ValueError: {'code': -32601, 'message': 'The method eth_newFilter does not exist/is not available'}" I'm using Web3py and Infura. My code: ...
user avatar
  • 85
5 votes
2 answers
500 views

How should I store mainnet truffle artifacts?

Obviously, I shouldn't upload my private key or personal infura credentials to my repo, but I was wondering what was the best way to track main net truffle artifacts. Generally speaking, for test ...
user avatar
4 votes
1 answer
3k views

Error: "The contract code couldn't be stored, please check your gas limit" [duplicate]

It's seem that is a very common topic but I couldn't find the solution in other questions, sorry for asking it again. I'm following a beginner example, trying to deploy a contract in Rinkeby Network ...
user avatar
4 votes
3 answers
5k views

Issue in websocket connection with infura using web3

I use websocket (ws) connection to Infura node web3 = new Web3(new Web3.providers.WebsocketProvider ("wss://ropsten.infura.io/ws")); Sometimes it's works fine or sometimes it give error on console: ...
user avatar
4 votes
1 answer
8k views

How to properly set nonce in a web3 contract invocation?

I have this code, which works: MyToken.airdrop(wallets,amounts,{ gas: 1267051, gasPrice: 2000000000, },function(err,tx){ console.log('err is %s',err) console.log('tx is %s',tx) callback(err,...
user avatar
  • 509
4 votes
3 answers
2k views

Deploying from Truffle to Infura.io

I'm trying to use the Infura or any other public provider to compile and migrate a simple test contract. I don't get any errors when I run truffle compile --network test but it seems to hang and ...
user avatar
  • 339
4 votes
1 answer
4k views

Error processing transaction request: already known

I'm developing an application with which you can make ERC20 token transfers. When you make transfers from one account to another with a reasonable time between transfers it works correctly. But when ...
user avatar
4 votes
1 answer
4k views

Deploy smart contract to mainnet with Infura and MetaMask

I am trying to deploy my smart contract to the main net using the following code: truffle.js: module.exports = { networks: { live: { provider: new HDWalletProvider("mnemonic from ...
user avatar
  • 43
4 votes
2 answers
7k views

Truffle Migrate Rinkeby - Error: PollingBlockTracker - encountered an error while attempting to update latest block: Error: ETIMEDOUT

I am facing this error when on running truffle migrate on Rinkeby network with my infura
user avatar
4 votes
2 answers
2k views

Problems calling Smart Contract function in Java using Web3j

I am rather new to writing/using smart contracts in Java and I am currently trying to use my smart contract. I already wrote and tested it, compiled it, deployed it to Ropsten, and built my Java class ...
user avatar
  • 130
4 votes
1 answer
4k views

ethers.js Why aren't logs filtering? (query returned more than 10000 results)

I'm building an API to scrape events from a contract suite deployed to Rinkeby. Here's an example function with some context: const network = getNetwork(parseInt(`${process.env.CHAIN_ID}`)); const ...
user avatar
4 votes
1 answer
3k views

How to make smart contract call using INFURA and NodeJS web3js

I can not understand how I can prepare the transaction to be signed. Because INFURA does not support eth_sendTransaction but only eth_sendRawTransaction (INFURA API which then requires you to prepare ...
user avatar
  • 209
4 votes
1 answer
3k views

How to store encrypted mnemonic for Truffle + Infura mainnet deploy

I'm about to deploy a small Dapp to Mainnet using infura. Built using express + truffle. I'm curious to hear how people are storing their mnemonic value when deploying to mainnet using truffle + ...
user avatar
4 votes
2 answers
1k views

Testing in ropsten network with truffle.js gives me this error

root@ubuntu-4gb-nyc3-01:~# truffle migrate --network ropsten (node:14686) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: this.provider.sendAsync is not a ...
user avatar
4 votes
2 answers
308 views

How do I make Populus talk to a node on Infura?

I signed up for Infura and they gave me a URL for a node to talk to, like https://ropsten.infura.io/mytokenjsifejsij39kdjkjfdk. (The part beginning mytoken isn't my real token.) I'd like to deploy ...
user avatar
  • 16.3k
4 votes
1 answer
1k 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 ...
user avatar
4 votes
2 answers
59 views

Strange blocks behaviour, transactions are dropped from a validated block

I have faced a very strange issue on Goerli Testnet using infura. The number of transactions in a blocks dropped from 168 transactions to 164. I'm working on a blocks tracker, after receiving the ...
user avatar
  • 41
4 votes
0 answers
33 views

Difference between Ethereum Web APIs and Ethereum API as a service

I am approaching ethereum for the first time and I am reading the documentation. Can anyone explain the difference between Ethereum Web APIs (BlockCypher) and The Ethereum API as a service (infura)? ...
user avatar
  • 61
3 votes
2 answers
10k views

How to login with web3 without MetaMask?

Is it possible to sign a user in web3 without MetaMask? I am trying to execute a smart contract I created and I'm using Infura to connect to the Kovan test network, but web3.eth.accounts[0] is ...
user avatar
  • 31
3 votes
2 answers
6k views

Getting "replacement transaction underpriced" though not trying to replace a transaction

I'm running an airdrop script which essentially loops a database of recipients and invokes a batchTransfer function each time with 80 different recipients and amounts. After about 10 successful ...
user avatar
  • 509
3 votes
2 answers
1k views

Retrieving logs using filter is not working?

web3 has been connected to Infura node, can send signed transactions but web3.eth.filter is not working(405 error)?
user avatar
  • 867
3 votes
3 answers
5k views

Single Call vs MultiCall

What exactly is multicall and the benefits of it, compared to Single call? What is multicall contract and the purpose of it, I can't find any proper definition of it. Some source said that multicall ...
user avatar
  • 43
3 votes
3 answers
4k views

How do I send a transaction using web3.py and Infura?

I am using Infura to interact with the Ropsten testnet. I would like to send a transaction from one account to another, but the following code does not work: w3 = Web3(Web3.HTTPProvider('InfuraUrl')) ...
user avatar
3 votes
3 answers
7k views

How to use a metamask Wallet from web3,py?

I deployed contracts to Ropsten test net using truffle and a metamask wallet to pay for the transactions and Infura as a Hosted ethereum node. To do that in Truffle, I have to use the truffle-...
user avatar
  • 185
3 votes
1 answer
2k views

How to Perform Transact() On Contract Functions on Remote Node

I would like to call a smart contract functions using Web3 Python using the Infura mainnet node instead of a local node. I understand that I need to import the private key and use it to sign the ...
user avatar
  • 71
3 votes
2 answers
241 views

Why does confirm that there is always 1 block apart on the mainnet when initiate multi-transactions simultaneously- by web3.py and Infura.io

1.I have a need to initiate multiple transactions to the same contract address in the fastest time and get confirmation from the network. Means that multiple transactions are recorded in the same ...
user avatar
  • 31
3 votes
3 answers
2k views

Is there any way to see the txpool with infura and web3?

I'd like to get pending transactions information without running my own node. Is there any way to do that? Something like this would work too, but they only seem to provide a fraction of the pending ...
user avatar

1
2 3 4 5
10