Questions tagged [infura]

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

Filter by
Sorted by
Tagged with
16
votes
4answers
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, ...
16
votes
2answers
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 ...
16
votes
2answers
11k 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 ...
16
votes
6answers
7k 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. ...
13
votes
4answers
21k 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(...
11
votes
3answers
8k 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 ...
9
votes
4answers
8k views

The best Web3 providers online

Does anyone know what are the most popular web3 providers online? (Or is Infura the only one?)
9
votes
3answers
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 = ...
9
votes
2answers
5k 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+...
9
votes
2answers
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 ...
9
votes
2answers
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 ...
9
votes
4answers
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 = ...
8
votes
4answers
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?
7
votes
2answers
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 ...
7
votes
3answers
10k 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 ...
7
votes
3answers
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....
6
votes
2answers
6k 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?
6
votes
2answers
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'...
6
votes
2answers
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 ...
6
votes
3answers
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'...
6
votes
1answer
783 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....
5
votes
1answer
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 ...
5
votes
2answers
433 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 ...
4
votes
3answers
4k 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: ...
4
votes
1answer
6k 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,...
4
votes
3answers
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 ...
4
votes
1answer
3k 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 ...
4
votes
2answers
1k 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 ...
4
votes
1answer
2k 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: ...
4
votes
1answer
2k 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 ...
4
votes
2answers
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 ...
4
votes
2answers
306 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 ...
4
votes
1answer
2k 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 ...
4
votes
1answer
675 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 ...
4
votes
2answers
33 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 ...
4
votes
0answers
27 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)? ...
3
votes
1answer
2k 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 ...
3
votes
2answers
8k 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 ...
3
votes
2answers
5k 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 ...
3
votes
2answers
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)?
3
votes
3answers
3k 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')) ...
3
votes
1answer
2k 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 + ...
3
votes
1answer
1k 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 ...
3
votes
1answer
1k views

Does infura support rinkeby event listening

Hi I ran a simple voting example connecting to https://rinkeby.infura.io/ since I do not run local Eth node. Everything works fine except event watching. var event2 = contractInstance.EventTester(); ...
3
votes
2answers
3k views

Please provide PHP example for eth_sendRawTransaction

I wish to have a PHP script use Infura's endpoint to call eth_sendRawTransaction. I have a PHP script which uses curl to call functions through Infura's endpoint, like eth_getBalance. I use ...
3
votes
1answer
4k views

Can't connect to Infura testnet or mainnet

From the Web3 JS API I've written: var Web3 = require('web3'); var web3 = new Web3(new Web3.providers.HttpProvider("https://ropsten.infura.io/MYTOKEN")); console.log(web3.currentProvider); which ...
3
votes
2answers
1k views

Promise not resolved for web3eth.sendSignedTransaction

I am testing whether transactions that I'm signing offline are accepted by the Ropsten network. I'm submitting the transactions using Web3.js (web3@1.0.0-beta.51) as follows: I connect to an INFURA ...
3
votes
1answer
529 views

Problem reading events, with web3 v1.0 beta 36 and infura

I am trying to read events from a contract already deployed on the blockchain. The event might return uint which is has the indexed property. First I was using web3 from metamask and worked normally, ...
3
votes
1answer
2k views

How can I output the latest block number to a web page using web3.js 1.0.0 beta?

On a previous version of web3js it was just document.write(web3.eth.blockNumber + "<br><br>"); and it outputs it in the section of the page where the script is as seen in the infura ...
3
votes
1answer
802 views

Strange output from truffle migrate --network live --dry-run

I can't get my contract to deploy successfully using Infura, MetaMask, and Truffle. When I run truffle migrate --network live I get this error: Error encountered, bailing. Network state unknown. ...

1
2 3 4 5
9