Questions tagged [infura]

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

Filter by
Sorted by
Tagged with
16
votes
2answers
7k 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
9k 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 ...
15
votes
4answers
8k 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, ...
14
votes
5answers
5k 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. ...
12
votes
4answers
14k 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(...
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
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
3k 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
3k 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 ...
8
votes
1answer
1k 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 = ...
7
votes
2answers
1k 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
6k 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 ...
7
votes
3answers
2k 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
7k 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
3answers
8k 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 ...
6
votes
1answer
729 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
3answers
3k 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?
5
votes
2answers
3k 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'...
5
votes
1answer
871 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 ...
4
votes
1answer
3k 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
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

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
304 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
2answers
314 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 ...
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
3answers
3k 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: ...
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
1k 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 ...
3
votes
1answer
565 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: ...
3
votes
1answer
1k 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 ...
3
votes
1answer
748 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
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
3k 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
772 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
436 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
631 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. ...
3
votes
2answers
2k views

JSON RPC calls using Parity. Difference between Infura and Geth?

I began by trying to follow the article on front running bancor with Python. I thought it would be easy to send an api request to my full node then replicate the same request in Python--all ...
3
votes
1answer
2k views

Truffle + INFURA remote provider deployment. Migrations not running

I am running into the same issue proposed by this question. I cannot resolve it because I am using a remote provider (INFURA), per this document. My code looks like this: var ethwallet = require('...
3
votes
1answer
139 views

Metamas - Infura problem. Cannot read property 'currentProvider' of undefined

I got a problem. I am using code below to connect to the eth from node.js app. Everything works perfect as long as I have installed MetaMask in my browser. I can be logged in, logged out, all good ...
3
votes
0answers
253 views

The sendSignedTransaction function does not activate the on('receipt') event at an appropriate time

console.log(transacting...); web3.eth.sendSignedTransaction('0x' + serializedTx.toString('hex')).on('receipt', receipt => { log(receipt); log(`https://ropsten.etherscan.io/tx/${receipt....
3
votes
0answers
410 views

ping / pong pattern for infura websocket [closed]

Infura websockets disconnect after an hour of in-activity so they suggest you ping / pong the connection at an interval less then an hour. My problem is I'm new to server-side programming and don't ...
3
votes
2answers
54 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 ...
3
votes
2answers
761 views

Ropsten infura test network + web3 js event listener

I have deployed contracts on ropsten test network. truffle.js ropsten: { provider: function() { return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/<api-token>") }, ...
3
votes
2answers
1k views

Invalid address error

I keep getting Error: Invalid address when trying to run the application. My current setup of web3 using infura node is if (typeof web3 !== 'undefined') { web3 = new Web3(web3.currentProvider); } ...
3
votes
0answers
622 views

Should I use mainnet node provided by infura or create my own? [duplicate]

I am trying to implement a solution in my current system where payments can be made via ethereum main network. I have done some research and found out that I have two options of implementation: Use ...
3
votes
2answers
1k 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 ...
2
votes
3answers
6k views

web3 Websocket connection to infura

I receive this error when I'm trying to connect to the websocket WebSocket connection to 'wss://ropsten.infura.io/ws' failed: Error during WebSocket handshake: Sent non-empty 'Sec-WebSocket-Protocol'...

1
2 3 4 5
7