Questions tagged [infura]

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

96 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
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 = ...
6
votes
1answer
703 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....
3
votes
0answers
230 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
2answers
43 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
1answer
675 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
1answer
769 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
1answer
71 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 ...
2
votes
0answers
202 views

Error when I try to deploy with infura

Running migration: 1_initial_migration.js Deploying Migrations... ... 0x0ed88dd40f380a805ed0ba1b5b0a9d8178321ab6da9e5c0cb247f5700337b173 Migrations: 0xcfc4ba0488f20c7a2bb24e735f43e240bf249bc8 Saving ...
2
votes
1answer
177 views

Issues sending Ether with web3j

Hello guys I have search around but no reasonable explanation as to why i would get these exceptions, I have already requested and have 3 ethers with associated with my address. Here is my code for ...
2
votes
1answer
196 views

Reliable way of listening to events on frontend

I make a web application, that needs the events from my contract to initialize it's state. I was using infura websocket provider, but it seems to lag a lot and close the connections unexpectedly ...
2
votes
3answers
774 views

Deploying smart contract with truffle and infura giving me error

I am having trouble deploying my smart contract to the ropsten network using infura and truffle am getting error that says "var sig = secp256k1.sign(msgHash, privateKey); ^ ...
2
votes
3answers
275 views

Does Using Infura Breaks Decentralization?

Decentralized applications have a philosophy: they are immutable,secure and trustless applications. You can connect to Blockchain and be sure about that features. Infura is a great tool when ...
2
votes
0answers
383 views

Noob having trouble connecting to the Infura Mainnet

I've been attempting to run a script from my terminal, and have been getting this error: Error: CONNECTION ERROR: Couldn't connect to node https://mainnet.infura.io. I've installed Web3j on my ...
2
votes
0answers
617 views

web3 1.0.0-beta example for etherscan websocket?

Does anyone have a working JS example for wss://socket.etherscan.io/wshandler? Or any alternative websocket providers, besides Infura? The reason I'm looking for Infura alternatives is it fails for ...
2
votes
0answers
235 views

Provider not set or invalid when using Web3 1.0

I'm trying to use Web3 1.0 to call the balanceOf function on my contract. The error I get during runtime is as follows: Error: Provider not set or invalid. The code causing the problem is as follows:...
2
votes
0answers
993 views

eth_call using INFURA

I've developed a very simple smart contract and I'm trying to invoke a function using eth_call. The contract is deployed on the revived Ropsten testnet. If I invoke the function getSTR() sending the ...
2
votes
0answers
344 views

Different uPort provider

I'm trying to integrate uPort in one of my project and, the first thing that I noticed are the different ways to give a provider: from the official repository uPort-lib let web3 = uport.getWeb3() ...
1
vote
0answers
44 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 ...
1
vote
1answer
46 views

How to get events on android with infura?

I am developing an app on Android, but Web3j does not support events on infura ( Should I use Infura with Web3j for Event filter? ) . What are the options, I did not find any alternative library?
1
vote
0answers
223 views

Cannot read property 'type' of undefined - abi-coder

I'm creating a simple voting contract. It is deployed with truffle and infura. This is the contract code: pragma solidity >=0.4.21 <0.6.0; contract Voter { struct OptionPos { uint ...
1
vote
0answers
66 views

Using web3j with infura returns null

I've used web3.js to handle my contracts, and it worked very well. But web3j is pretty hard for me since the beginning. I'm using android studio, infura, web3j. Since I don't know very much about ...
1
vote
0answers
40 views

Infura websocket API timing out on connect

Has anyone ever had issues with the Infura Websocket API suddenly ceasing to respond. I have been using it to subscribe to event logs, but now the connection to the API is timing out.
1
vote
0answers
102 views

How to use 'geth attach' with Infura?

I have a project in Infura and the project ID is 6f...3a. I'm having problem to start geth attach process with Infura. I tried all protocols (http, https, ws and wss) but all failed. Did I miss ...
1
vote
1answer
338 views

Error on WebSocket connection to Infura Ropsten (broken close frame)

I am trying to connect to Ropsten with Web3js (1.0) via Infura using their WebSocket provider but I am getting the following error: WebSocket connection to 'wss://ropsten.infura.io/ws' failed: ...
1
vote
2answers
571 views

Uploading files on IPFS Infura

I am trying to make a dapp to upload files on IPFS Infura. I am using IpfsHttpClient in web browser by including the script <script src="https://unpkg.com/ipfs-http-client/dist/index.min.js">&...
1
vote
0answers
174 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 ...
1
vote
0answers
59 views

How to send transaction using web3py using infura.io

I have connected to mainnet via infura.io and have used http provider for connections now i want to generate address and send transaction And i wand to send real eth so how can i do this?...
1
vote
1answer
339 views

Error when deploying with infura ropsten, rinkeby and kovan

when deploying to infura ropsten i get error Running migration: 1_initial_migration.js Deploying Migrations... ... 0x0ed88dd40f380a805ed0ba1b5b0a9d8178321ab6da9e5c0cb247f5700337b173 Migrations: ...
1
vote
0answers
70 views

CORS Error for using infura

I need to call the balance function from my smart contract using my application and i don't want to use metamask and other web3 providers like infua as I am not going to send any transactions and don'...
1
vote
0answers
93 views

Transaction submitted through Infura, but not from local node

So, I have a Rinkeby fast sync on my server. When I try to interact with my contract and transfer something, geth says "Submitted transaction", but then I can't find it using its hash on etherscan. ...
1
vote
0answers
54 views

How can I make an offline transaction and send it to Ethereum client network in java?

private class Myclass extends AsyncTask<Void, Void, Void> { protected Void doInBackground(Void... params) { //sldknfbhvsjhxcnzmcxcmj Web3j web3 = Web3jFactory....
1
vote
1answer
110 views

contract does not gets deploy to rinkeby via Infura

I am trying to deploy my contract to Rinkeby network via Infura. But it actually does not get deploy to network when i run node deploy.js terminal does not spit out the address at which it is deployed....
1
vote
0answers
89 views

Unable to call setter function in solidity using Infura

Solidity code contract Greeter { string public greeting; function Greeter() public { greeting = 'Hello'; } function setGreeting(string _greeting) public { greeting = _greeting; } function ...
1
vote
0answers
169 views

Same Block Received More Than Once With Same Block Parameters

Use Case: I am implementing a deposit system where I will get a block as it is mined and parse transactions to check for a deposit of Ether or a specific token. Getting the same block twice will ...
1
vote
0answers
95 views

Why would an Infura/MetaMask watch of a contract's allEvents() that works on Rinkeby fail sporadically on Mainnet

I have some code that immediately sets up an allEvents watch for the contract, then leaves that running and uses it to handle various events generated by the contract. I've been running it on Rinkeby ...
1
vote
0answers
531 views

send SignTransaction to contract function using web3 + infura + truffle

contract has an function "addToWhiteList", only owner of the contract can access this function and add user in whitelist. /** * @dev Adds single address to whitelist. * @param trusted Address to be ...
1
vote
0answers
78 views

How to work with ENS without starting own node?

I am trying to get how to work with ENS. It is relatively clear how it works, but most questionable thing for me is whether it possible to work with, for instance, Ropsten resolver without running my ...
1
vote
0answers
165 views

Mist RPC to Infura

I am attempting to connect Mist to ropsten.infura.io. Attempted this: Running Mist with INFURA but it didn't work. My command is as follows: mist --rpc https://ropsten.infura.io/ and the error ...
1
vote
0answers
465 views

Invalid JSON response when using web3js in nodejs with infura provider

I am trying to build a simple Dapp. Tested already in local testnet (test rpc), next wanted to test it in rinkeby. Since I used web3 in server side, unable to capture injected web3 from metamask, so ...
1
vote
3answers
983 views

Smart contract function always returning transaction underpriced or exceeds block gas limit

Was wondering if anyone has come across this before. I am using Ropsten through Infura and no matter what I set the gas to it will always return either transaction underpriced or exceeds block gas ...
1
vote
1answer
559 views

Is there any way to subscribe to contract event without creating filter?

I developed contract with couple of events. It was tested using local geth node and working as expected. Now I want to deploy it and decided to use infura.io as public node provider. Here I faced ...
0
votes
0answers
21 views

Signing Ropsten transactions with

I am trying to sign transactions using the Web3 HDWalletProvider package and an infura API. I am using the following code: const Web3 = require('web3'); const Web3HDWalletProvider = require("web3-...
0
votes
1answer
20 views

What is the data field in eth_call commands for USDT?

I'm trying to use eth_call to send USDT (TetherToken) from one account to another (Although I know that eth_call just simiulate such transaction). Everything is clear in this regard, just the data ...
0
votes
2answers
34 views

How to get new transactions by addresses?

I have an array of addresses on my server which I need to track. What method should I use to do that via websockets? I’m new to eth and cryptocurrency at all, and I don’t understand “blocks”, “gas ...
0
votes
1answer
31 views

Cannot read property 'then' of undefined

I am trying to send ether from one address to another. After executing the code I am receiving an error: Cannot read property 'then' of undefined. How can I fix this? Thanks in advance. const Web3 = ...
0
votes
0answers
26 views

Why does Infura Ropsten websocket filtering event timeout?

When listening events via Infura Ropsten websocket, web3.py implementation timeout while web3.js succeeds. The demo can be cloned from -- https://github.com/jerryji/ropsten_wss_timeout_demo After ...
0
votes
0answers
38 views

How do you mint tokens on Compound Finance with Infura and Web3

I'm new to Compound and I'm trying to get minting/redeeming implemented in my app using Infura (Ropsten) as my httpProvider for Web3. I understand that Infura doesn't allow invocation of ...
0
votes
0answers
40 views

Infura API: getPastLogs times-out, even when there are less than 2500 records

I would like to receive all event logs for a particular topic of an event log. I know there is a limit of 10,000 records, but the getPastLogs function times-out when less than 2,500 records need to be ...
0
votes
2answers
26 views

Why use nodepools or backends?

I have a fundamental question about eth/blockchain infrastructure. I see several posts talking about the need for backend node infrastructure when launching a dapp/ smart contract. This infrastructure ...