Questions tagged [infura]

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

Filter by
Sorted by
Tagged with
15
votes
4answers
7k 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, ...
6
votes
3answers
7k 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 ...
2
votes
1answer
922 views

New Ethereum Account with Infura

Can I create a new ethereum account using Infura like we do using web3.personal.newAccount();
16
votes
2answers
6k 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 ...
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+...
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'...
5
votes
1answer
834 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 ...
2
votes
1answer
904 views

Should I use Infura with Web3j for Event filter?

I'm using Web3j with Infura for smart contract deployment, calling contract method and transactions. Now I want to use Filter contract event from log. Should I use Infura for this? Is Web3j filter ...
7
votes
2answers
880 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 ...
4
votes
1answer
2k 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,...
7
votes
3answers
5k 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 ...
2
votes
2answers
5k 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 ...
2
votes
2answers
3k views

How to send transaction to Infura node using Web3?

I want to send ETH from one account to another using Web3 interface and Infura node. I have tried like below, and I got error 405(). Error: Invalid JSON RPC response: "" I test it in Rinkeby test ...
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 ...
5
votes
3answers
2k 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?
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
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 ...
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
2k 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
3answers
3k 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 = ...
2
votes
1answer
247 views

How to call contract state-changing method on Ropsten via Infura using web3@1.0.0?

I have the following contract: pragma solidity ^0.4.24; contract Escrow { address public owner; event LogReceivedFunds(address sender, uint amount); event LogReturnedFunds(address ...
2
votes
2answers
1k 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 ...
2
votes
2answers
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: ...
2
votes
3answers
4k 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
vote
1answer
4k views

Create account via infura - ropsten network [duplicate]

I connected node with infura via web3js: var currentProviderr = new web3.providers.HttpProvider("https://ropsten.infura.io/..."); How to create accounts in infura? How to view them? web3.eth....
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)?
2
votes
4answers
737 views

use web3js and infura deploy contract

const Web3 = require('web3'); const fs = require('fs'); const solc = require('solc'); let web3; if (typeof web3 !== 'undefined') { web3 = new Web3(web3.currentProvider); } else { web3 = new ...
1
vote
1answer
82 views

Infura - Signing transactions in a multi-user application

I hope this question is not a duplicate. Since I'm using Infura as a full node, I need to send raw transactions by signing them. In a multi-user application how would my application on the server-...
1
vote
0answers
173 views

metamask and infura - Managing and signing with private keys

I am using Infura as a node for my DApp so I need to send raw transactions by signing them. These transactions can come from multiple users of an application so each user must sign and send a raw ...
0
votes
1answer
147 views

Error linking library when deploying with via Infura (ropsten)

I'm trying to deploy via Infura to ropsten and get this error. The local deployment works without a hitch. Linking SafeMath to contracts Error encountered, bailing. Network state unknown. Review ...
0
votes
1answer
455 views

Transaction signing fails Invalid RLP.“,”data“:”RlpExpectedToBeList"

I'm trying to sign and push a transaction using ethereumjs and Infura. It seems to be working and I'm getting a transaction hash back, but the transaction is not visible on Etherscan, and when I'm ...
0
votes
2answers
1k views

Error: Invalid JSON RPC response: “” using infura

My code: const contract = require('truffle-contract'); const fs = require('fs'); const HDWalletProvider = require('truffle-hdwallet-provider'); const Web3 = require('web3'); const fileContents = fs....