Questions tagged [infura]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Getting error Error: Returned error: execution reverted on web3 [closed]

require("dotenv").config() const { ChainId, Token, TokenAmount, Pair, Trade, TradeType,Route ,Percent, WETH} = require('@uniswap/sdk'); var Fetcher = require('@uniswap/sdk'); const express = ...
3
votes
0answers
21 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 ...
1
vote
1answer
12 views

Can not connect to Infura Mainnet

I am looking at the infura documentation and no matter what method I am trying to authenticate my project id I am getting errors such as the one displayed below or 404 errors. Has anyone had the same ...
1
vote
0answers
23 views

How to get method name from transaction history (since the beginning and news in realtime)

My job is to get all the method name from the token contract transactions from the beginning and to display the new transactions in realtime. 1) Get all events For the moment I can display the "...
1
vote
0answers
32 views

send eth transaction from one address to another with web3py

I want to send 1 ETH from one account to another with web3.py, however the transaction does not appear on chain after the standard timeout of 2 minutes. from web3 import Web3 from web3.auto.infura ...
1
vote
1answer
33 views

What would be a better Infura node alternative?

What would be the current best Infura Node alternative? I need to make a large number of requests every day. The current Infura node is too expensive for a large number of requests..
0
votes
0answers
21 views

Delay from web3 provider Infura in receiving new block headers

I use web3 in NodeJs to subscribe to 'newBlockHeaders' and use https://infura.io/ as provider. Holding the output of my app side-by-side with https://ethstats.net/ and comparing block numbers, there's ...
0
votes
1answer
14 views

What does Infura do for contracts?

I am a bit confused by how some contracts can be launched with Remix (I presume without Infura), whereas if I launch contracts via truffle then I need to connect to Infura. Is there a simple ...
0
votes
0answers
30 views

Sign transaction on behalf of user and execute server-side

Hello StackExchange 👋 I'm working on my first Ethereum learning project (an ERC721 marketplace that generates tokens based on user input), wrote a couple of untested contracts and am now looking to ...
0
votes
1answer
12 views

Error while supplying test assets to the compound protocol using infura project, ganache-cli and web3.js

I'm trying to supply assets to the compound protocol using this guide: Supplying Assets to the Compound Protocol. I created account at https://infura.io/ and got my ProjectID. I cloned https://github....
0
votes
1answer
87 views

Single Call vs MultiCall

What exactly is multicall and the benefits of it, compared to Single call? What is multicall contract and the purpose of it, I can't find any proper definition of it. Some source said that multicall ...
0
votes
0answers
8 views

I get an error when I want to post on infura

I prepared a new token to learn. My tutorial would show me to post this in infurada, but I am doing the same and getting an error. I would be glad if anyone could help me.
0
votes
0answers
29 views

Error: A “infuraKey” or a “rpc” object with a parameter of 1 must be included in the WalletConnect initialization object

I'm starting to develop https://pooltogether.com/ in docker environment. I cloned their repo https://github.com/pooltogether/pooltogether-pool-builder-ui and follow the readme instructions. In .envrc ...
0
votes
0answers
12 views

How do I get multiple signers for the Kovan testnet?

I am using hardhat + ethers + infura for my contract development and testing, and all has been fine so far. On my local computer, when I run const [deployer, d2] = await ethers.getSigners(); in my ...
1
vote
1answer
25 views

Query ethereum chain without owning a node

When I want to query the ethereum blockchain I use infura server with a curl command like this: curl https://mainnet.infura.io/v3/2a8c33bac50647a6be2638a92f9d4a4c -X POST -H "Content-Type: ...
1
vote
1answer
41 views

unsigned transactions not supported - web3, infura, @ethereumjs/tx

I am working on sending signed transactions using web3, @ethereumjs/tx, and infura. However, I am getting an error "unsigned transactions not supported". Here my code, credit: const Web3 = ...
1
vote
0answers
9 views

Need to create WS Infura connection with JWT

Im developing a web app in which I connect the client with infura using ws and the project id, but I also need to use JWT in order to add an extra layer of security. There are explanations in infura ...
0
votes
0answers
88 views

{ code: -32000, message: 'invalid sender' } - Truffle deployment with Infura endpoint to Rinkeby

I am having trouble with deployment of a project contract to the Rinkeby network using @truffle/hdwallet-provider and an Infura endpoint. Here is the code for deploy.js: const HDWalletProvider = ...
1
vote
0answers
19 views

Problem connecting a deployed smart contract to JavaScript. Remix + JS + Infura + Ropsten (with Metamask)

I am a beginner in DApps and still learning most concepts. Recently, I wrote a smart contract in Remix IDE which I deployed in the ropsten test network using injected web3 and metamask. The functions ...
0
votes
2answers
296 views

Truffle Migrate Rinkeby - Error: PollingBlockTracker - encountered an error while attempting to update latest block: Error: ETIMEDOUT

I am facing this error when on running truffle migrate on Rinkeby network with my infura
0
votes
0answers
33 views

How to sign a transaction

I'm having the hardest time simply calling a method on a smart contract using the web3.js library. I'm communicating with the Rinkeby blockchain through the Infura gateway. Following are what I've ...
3
votes
1answer
2k 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?
0
votes
0answers
12 views

How to get smart contract assertion message thorugh web3.js? [duplicate]

I revert a transaction in my smart contract when a specific condition is met. For instance: function doMoneyLaundering(uint256 millionsOfDollars) public { ... require(...
1
vote
1answer
24 views

Transaction not propagated or mined on Rinkeby

I create ETH transactions programatically and send them to the Infura Rinkeby node as rawTransaction. The transaction in questios is accepted by the node, but can't be found by other nodes (Alchemyapi,...
0
votes
1answer
87 views

Big discrepancy between the cost of deploying to the test net and the main net

I have a simple 100-line contract with 6 functions that I want to deploy to the main net. When I deploy it to the Rinkeby test net through Truffle, I get the following result: Summary ======= > ...
0
votes
2answers
35 views

infura.io secret configuration in HDWalletProvider (truffle-config.js)

I have set a secret for my project in infura. Here is my truffle-config.js file: module.exports = { networks: { ... ropsten: { provider: new HDWalletProvider(mnemonic, "https://...
1
vote
0answers
61 views

eth_estimateGas Error when balance of an account < the amount to send in a transaction

I have used the following request to estimate gas in an ETH transaction in Ropsten. ## JSON-RPC over HTTPS POST curl https://ropsten.infura.io/v3/YOUR-PROJECT-ID \ -X POST \ -H "Content-...
0
votes
0answers
46 views

Infura authentication in truffle-config.js

I have create a project on infura.io website. I have create a new truffle project. Here is my truffle-config.js file: const path = require("path"); const HDWalletProvider = require("@...
0
votes
1answer
71 views

Transaction not showing on Kovan etherscan even after its status showed transaction mined and executed successfully

I have my contract deployed on Kovan Testnet and from remix IDE I called one of the functions of my smart contract through remix itself. Now, the status of transaction shows "transaction mined ...
0
votes
0answers
31 views

How do I create a passphrase for Ethereum account on Alchemy/Infura?

I want to run a livepeer node and for that I have to run a command: livepeer -network mainnet -ethUrl https://eth-mainnet.alchemyapi.io/v2/<project_id> -transcoder When I run the above command, ...
0
votes
0answers
17 views

Is it safe to perform calculations on past events?

I would like to store all balances of my ERC20 contract on my website's database: addresses and their balances and be able to call the script anytime to sync it with new balances using Transfer event. ...
3
votes
1answer
116 views

How to run Chainlink Project using eth-brownie python

I had installed eth-brownie using command pip install eth-brownie after Brownie installed.I had bake existing Brownie project into a new directory. mkdir MyChainlinkProject cd MyChainlinkProject/ ...
0
votes
1answer
47 views

How to store the balance in a variable when running on client-side?

Context I am learning web3 after having written some smart contracts on the Ropsten and Kovan test networks. I'm trying to simply read the balance of an address and store it in a variable, in order to ...
1
vote
0answers
22 views

GetBalance generate too much request

What I do?. Download logs and collect address Use address to getBalance Result make a hodler table Result Too much generate request to infura Question Is any function/method to make a one request? ...
0
votes
2answers
86 views

The fastest way to send multiples transactions

I want to send multiple transactions from differents address at the same time with Infura and Web3.py Currently my code look like this : for i in range (n): tx= ... (build transaction for adresse i)...
0
votes
1answer
53 views

Execution Reverted Details

I am writing code in Java and trying to calculated potential gas units, for a function call on my methods. I am trying to do so by using infura as a provider for my web3 Instance, and then created a ...
1
vote
0answers
12 views

web3.contract.events.EventName.on('data', () => {}) expiring after ~15 minutes

I am using the following code: const web3 = new Web3.providers.WebsocketProvider(host); const contract = web3.eth.Contract(...); contract.events.EventName.on('data', console.log); The EventEmitter ...
2
votes
1answer
113 views

Got error!!Trying to deploy smart-contracts in ropsten infura

When I am trying to migrate smart contracts in ropsten infura network, but got error. The error is shown below: Using network 'ropsten'. Running migration: 1_initial_migration.js Replacing Migrations....
0
votes
0answers
62 views

org.web3j.protocol.exceptions.ClientConnectionException: Invalid response received: okhttp3.internal.http.RealResponseBody

Environment Android Studio Infura – Rinkeby test network Web3J Metamask Rinkeby.etherscan.io I am trying to build an Android app to read and write smart contract by following the medium article: ...
0
votes
1answer
35 views

Why can't I establish a socket connection with Infura? Project ID is correct, I triple checked

I want to subscribe and listen to events that involve funds moving to my wallet, however I for some reason am not able to establish a socket connection to an Infura node. First I npm init and npm web3....
0
votes
1answer
97 views

TypeError [ERR_INVALID_ARG_TYPE] web3.js error

Can anyone help me fix this problem? I keep getting 'throw new ERR_INVALID_ARG_TYPE( ^ TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or ...
0
votes
1answer
76 views

Calling web3.eth.getAccounts() does nothing - no errors

I am trying to get all accounts using web3@1.3.3 and @truffle/hdwallet-provider@1.2.2. I am using HDWalletProvider with Infura. I am running this code on backend (Node.js v14.15.5). This is the code ...
0
votes
0answers
19 views

web3.eth.sendSignedTransaction returns undefined [duplicate]

Please look into the below Web3 script, this is returning undefined, but it must have returned the transaction hash and its related meta data. Code: const Tx = require('ethereumjs-tx').Transaction ...
0
votes
1answer
95 views

“txHash: undefined” error using web3.js

Can anyone help me fix this problem? I get 'txHash: undefined' error in terminal var Tx = require('ethereumjs-tx').Transaction const Web3 = require('web3') const web3 = new Web3('https://ropsten....
0
votes
2answers
72 views

Deploy contract to Kovan with brownie and infura

I'm trying to simply deploy a smart contract in Kovan network, i've used the export of the ID using export WEB3_INFURA_PROJECT_ID=xxxx but i'm getting this error ValueError: The method ...
0
votes
0answers
50 views

Error: *** Deployment Failed ***

I am trying to deploy my contracts, but I keep getting the same error message: Deploying 'Migrations' ---------------------- Error: *** Deployment Failed *** "Migrations" -- sender ...
0
votes
0answers
229 views

EstimateGas reverts, actual transaction works

On Rinkeby I'm trying to estimate gas and send ERC-20 Weenus tokens. If I shove the necessary data into an estimateGas call to Infura Rinkeby it returns with an error of execution reverted. { &...
4
votes
0answers
25 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)? ...
0
votes
0answers
68 views

What is the theoretical average latency of data transmission?

I concluded a pretty simple test to measure some latencies. I connected to two providers (Infura and Quiknode) with Web3.js and subscribed to new block headers. Then I compared the time of arrival and ...
1
vote
0answers
105 views

org.web3j.protocol.exceptions.ClientConnectionException: Invalid response received on web3j on Android

I am trying to execute transactions by calling my RegisterNewUser function in the deployed smart contract through Android and I am using Infura. However, when I run, there is an error as seen below : ...

1
2 3 4 5
8