Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [infura]

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

0
votes
1answer
30 views

The method eth_sendTransaction does not exist/is not available on infura

Im trying to send transaction to simple greeter contract with web3.js on infura node.while doing soo, Im getting this error. throw errors.InvalidResponse(result); ^ Error: The method ...
0
votes
1answer
39 views

Transaction stuck in 'Pending' state when using 'sendSignedTransaction'

I am trying to execute a transaction by first signing it with my private key using ethereumjs-tx and then using sendSignedTransaction to send the transaction to the network. But somehow the ...
0
votes
1answer
19 views

Unable to Deploy Smart-contract to Ropsten from Truffle using Infura

I want to deploy my smart-contract on ropsten or rinkeby network from Truffle using Infura API, but face difficulty in deploying on any network. I am using windows and my contract works well on ...
1
vote
1answer
16 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 ...
0
votes
1answer
35 views

Reset my infura project api key and secret id? [on hold]

https://mainnet.infura.io/v3/<api_key> Can i access my project wallet using a newly generated api key and secret id? Is it possible to reset these credentials in infura?
1
vote
0answers
15 views

Contract deployment error using rinkeby/infura. Error encountered, bailing. Network state unknown. Review successful transactions manually

I try to deploy smart contracts using Infura to the rinkeby test network and got this error: Running migration: 1_initial_migration.js Deploying Migrations... ... ...
1
vote
0answers
28 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
18 views

web3.isConnected returns False web3.py

Here is the code I have: from web3 import Web3 infura_url = 'https://infura.io/project/MyProjectID' web3 = Web3(Web3.HTTPProvider(infura_url)) print(web3.isConnected()) The problem is that it ...
1
vote
3answers
51 views

Replacement for Infura site

I have been using Infura site for accessing main Ethereum network, but newly this site has changed its services and don't service send methods. I searched a little and found Quicknode site, but ...
0
votes
1answer
35 views

Infura Web Sockets doesn't work on Infura

I have a problem with connecting via Websockets to Infura. I am listening on some events from my smart contract, so when some event is dispatched by calling some method from smart contract, I should ...
0
votes
0answers
29 views

Problem with send method in Infura

Newly Infura site has been changed its interface. Before that all methods of our client program was successfully working, but now when I logon to Infura, all whitelists has been removed. I added our ...
1
vote
1answer
66 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
1answer
125 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 ...
0
votes
0answers
33 views

How do you set up a Truffle script with Infura as provider?

I'm trying to set up my Truffle scripts to use Infura as a provider. I have the following, which appears to set everything up correctly: const HDWalletProvider = require("truffle-hdwallet-provider");...
1
vote
2answers
133 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">&...
0
votes
1answer
119 views

Error: types/values length mismatchProblem when calling payable contract function with web3

Enviroment Node version: v10.15.3 Web3: ^1.0.0-beta.50 Net: Ropsten My smart contract is a very simple payable/balance one and my goal is to contribute 0.1 ETH to raise the contract balance using ...
0
votes
2answers
61 views

How to unlock account using web3js with infura? [duplicate]

I need to unlock accounts using web3js with infura.io, but it seems that infura does not support web3.personal modules. In this case, I think options are 1.using geth or parity for client node not ...
0
votes
1answer
18 views

Request user to sign state changing transaction with metamask using Infura and web3js

Can't seem to find the right function to ask the user to sign a transaction via metamask, this is my code so far: const bet = '102500000000000010' const account = '...
2
votes
1answer
49 views

Calling payable state changing function on client side with metamask in ethereum infura testnet

I can't seem to find an answer for my problem, or it's either impossible and I'm missing something, or it's trivial and I'm missing something. I have this function on client side: const bet = web3....
1
vote
2answers
22 views

Deploying and Interacting with smart Contract through infura from web3.py

I'm trying to deploy smartcontract on ropsten testnet through infura node in web3.py. here is my code w3 = Web3(HTTPProvider("http://ropsten.infura.io/<*Privatekey>")) # Instantiate and deploy ...
0
votes
0answers
29 views

Infura V3 spec cannot find Project Id

I used to use the old version of infura and it worked just fine. The latest version is not working as it states that it cannot find the id despite it being there. https://mainnet.infura.io/v3/...
1
vote
1answer
37 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
57 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
0answers
58 views

Metamask not connected with web3.js

if (typeof window.web3 !== 'undefined') { web3 = new Web3(web3.currentProvider); } else { // set the provider you want from Web3.providers window.web3 = new Web3(new Web3....
0
votes
1answer
79 views

Truffle tries deploy from unknown account

I am trying to deploy a contract to Ropsten using Infura with the config file truffle.js below. The deploy fails because the account listed in the error message has insufficient funds – however I do ...
1
vote
0answers
53 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....
0
votes
0answers
42 views

Genearte error 'invalid sender' when doing send transaction using infura or roopsten

I am using following code to perform transaction web3 = Web3(HTTPProvider('https://ropsten.infura.io/{}'.format('XXXXXXXXXXXXXXXXX'))) print('https://ropsten.infura.io/{}'.format('XXXXXXXXXXXXXXXXXXX'...
1
vote
0answers
38 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?...
0
votes
0answers
32 views

eth_sendTransaction doesn't exist when using Infura node

I'm trying to sign a transaction offline and then send it using sendRawTransaction since I'm connected to an Infura node. My raw transaction looks like this let rawTransaction = { "from":...
1
vote
1answer
114 views

How to use local Metamask account with Infura Node [duplicate]

I'm building a DApp using web3js that sends ERC20 Tokens from a browser Metamask account to an escrow contract on the Rinkeby testnet. I'm using a Rinkeby node from Infura, and when I call web3.eth....
0
votes
1answer
221 views

How to deploy a smart contract using Infura and web3js@1.x.x on NodeJS?

I have an application written in NodeJS that each time it starts has to deploy a smart contract. Once the contract is deployed this application will interact with it making some transactions and ...
0
votes
1answer
99 views

Facing UnhandledPromiseRejectionWarning warning message in web3 infura

So far, I'm trying to get transactions list using web3 & infura by websocket provider. Here is my code const Web3 = require("web3"); const web3 = new Web3(new Web3.providers.WebsocketProvider('...
0
votes
0answers
35 views

Get the result back of a smart contract function call using INFURA

This is the function I use to send a signed transaction using Infura to invoke a smart contrac function (see details for the params of the transaction). web3.eth.sendSignedTransaction('0x' + ...
1
vote
1answer
194 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 ...
0
votes
0answers
49 views

UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]: The field to must have byte length of 20

I'm encountering a problem that I'm not able to solve. The code should launch a configured transaction with the details object. The current configuration is set to Ropsten and I am using the INFURA ...
0
votes
1answer
101 views

infura don't catch event

when i'm working on ganache all event that i have emit are store in my nodejs server but when i turn to kovan or ropsten my server don't catch event . i'm working with infura this my code no ...
0
votes
0answers
44 views

how to provide web3 while deploying in infura

const HDWalletProvider = require('truffle-hdwallet-provider'); const Web3 = require('web3'); const { interface, bytecode } = require('./compile'); const provider = new HDWalletProvider( "punch ...
1
vote
1answer
135 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: ...
2
votes
0answers
96 views

Error when I try to deploy with infura

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

getting error while generating key after uploading file into IPFS infura

I'm getting an error while generating key after uploading file into IPFS infura. Sample code given below var ipfsAPI = require('ipfs-http-client'); const ipfs = ipfsAPI('ipfs.infura.io', '5001', { ...
0
votes
0answers
61 views

Sign a transaction locally and send it

I'm using Infura as my web3 provider, and have MetaMask installed to connect to the blockchain. I'm trying to send a transaction, but have learned that Infura is read-only, and doesn't support the ...
0
votes
0answers
106 views

Web3.js in Docker: invalid JSON-RPC response: undefined

Recently I've made a container out of my app, which used to work fine in a normal environment with an infura node. This is the code that's causing problems inside of the Docker container. I'm new to ...
1
vote
3answers
57 views

How to install infura to a server runing ubuntu 16.04

Im setting up an exchange and came to the installation of ethereum using this document http://support.bitexchange.systems/support/articles/how-to-install-ethereum-in-your-server. The 'geth' command ...
1
vote
0answers
39 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'...
0
votes
0answers
117 views

Can anyone help me to access my eth account in metamask using infura in android

My question is about accessing my eth account in metamask using infura in android
1
vote
1answer
76 views

Using web3 estimateGas API (with infura) always returns the last block's gas limit

I am entirely unsure what the root cause is, but every time I use web3.eth.estimateGas with my call's parameters, it results in the last blocks gas limit as the result (~8 million). I have even tested ...
0
votes
0answers
27 views

sending ether Transaction failed when executing multiple transaction

I am sending ether to an array of addresses. I am getting the nonce value from eth_getTransactionCount. But problem is that the first transaction is successful but for the rest of the transactions are ...
1
vote
0answers
62 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
1answer
110 views

Am I using Infura with Web3j correctly?

This is the first time using infura with a Web3j HttpClient. I have seen people use a code after the url like this: "infura.io/--here--". Am I using Infura correctly? This is my code. (web3j v3.5.0) ...
0
votes
0answers
34 views

web3 smart contract calls to slow (arrays / lists)

I call contract like this : static async getInitialProps(res) { const users = await UsersContract.methods.getUsers().call(); const totalusers = await UsersContract.methods.getTotalUsers()....