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
20 views

Do I use Infura sending transaction using web3 (injected from) Metamask?

I'am working with truffle using MetaMask wallet to send transaction to my Contract on Rospten Blockchain. I have dubs about the flow of my work. I deploy my smart contract on Ropsten thank to Infura ...
0
votes
1answer
22 views

Ethereum is not transferred on Ropsten network

Here's my code for signing nd sending a transaction on Ropsten testnet which is working properly. However, the value that is set to '1' eth is not transferred to the target address. var Tx = require('...
0
votes
2answers
29 views

Infura returns strange error: `query returned more than 10000 results` [closed]

The purpose of the function below is to track USDT that is transferred to and from Yearn and Fulcrum. When I call search_liquidity(_toBlock), I get an error that says Returned error: query returned ...
0
votes
1answer
25 views

Receiving 'undefined' when using getBalance from web3

I am trying to fetch the balance of an address by web3 and node from Ropsten network with the commands below: var Test = require('web3') var url = 'https://ropsten.infura.io/v3/...' var web3 = new ...
0
votes
1answer
19 views

How to check if the newly mined block contains a contract deployment using infura sdk?

I am trying to implement following scenario. Get a notification every time a new block is mined. Loop through/filter all the transactions in the newly created block. Check if the any transaction ...
0
votes
0answers
19 views

Does Infura support Event Filters?

Does Infura support creating filters to Listen to events ? I have a dapp with many events, and would like to test it in Ropsten testnet and python web3.py, but it seems infura does not support filters....
0
votes
0answers
18 views

Can not run more than 1 event in Infura

I am trying to listening to many events from infura but it is not working. Only one filter work, when I add the second filter, this message appear: RuntimeError: cannot call recv while another ...
1
vote
0answers
11 views

Infura and Remix Smart Contract

I have a smart contract in Remix and would like to be able to filter events using Infura. I know nothing on how to get started. I went to infura and created a project which has a project ID. What ...
0
votes
0answers
19 views

Known transaction error in Python3

I'm experimenting on an automatic ethereum wallet. But I have some problems. The first process is successful but it's error message the second process: Known transaction how do I solve this problem? ...
0
votes
0answers
20 views

Subscribing to new blocks doesn´t work [ROPSTEN]

I'm trying to subscribe to newBlockHeaders on the ropsten network, but it does not seem to work. The following code works for mainnet but not ropsten. Any ideas? const Web3 = require('web3') const ...
0
votes
0answers
10 views

Events stop triggering after a while

I created a script that subscribes to PairCreated event on Uniswap using Web3 and Infura API. The event works for a few minutes but stops working after a while (timeouts?). How can I make it watch the ...
0
votes
1answer
27 views

ethers.js Why aren't logs filtering? (query returned more than 10000 results)

I'm building an API to scrape events from a contract suite deployed to Rinkeby. Here's an example function with some context: const network = getNetwork(parseInt(`${process.env.CHAIN_ID}`)); const ...
0
votes
1answer
13 views

Etherlime Infura Rinkeby deployment causing ECONNREFUSED 127.0.0.1:443

I’m trying to deploy to Rinkeby using Infura (using Etherlime), but am getting a strange error: 'Error: connect ECONNREFUSED 127.0.0.1:443\n' + ' at TCPConnectWrap.afterConnect [as oncomplete] (...
0
votes
0answers
71 views

Query returned more than 10000 results with getPastEvents

I am writing a function to sync all transactions on a particular contract from a particular account in my local database to build a dashboard for account owners. I need to fetch all the past transfer ...
0
votes
1answer
81 views

“Migrations” — sender account not recognized

This is my truffle.js i've removed the credentials marked as * var HDWalletProvider = require('@truffle/hdwallet-provider'); var fs = require('fs'); var infura_apikey = "*" var mnemonic = &...
0
votes
0answers
24 views

Web3 IPC provider connect?

I am using Infura web3 provider to connect etherum but I want to use IPC provider(more secure), How to use IPC provider in ethereum web3.
1
vote
1answer
41 views

The send transactions “from” field must be defined using Infura web3

when I try to send my transaction using infura I get this error "The send transactions "from" field must be defined" My problem is my web3 object. When I used Metamask and ...
1
vote
1answer
34 views

Infura getFilterLogs api returns empty array

I am trying to filter transfer events using node.js for a contract address between a range of blocks. I am trying to filter the latest 7 transactions which can be shown in etherscan here. My code is ...
1
vote
1answer
72 views

WebSocket connection dropped in Web3.js with Infura

I know this question have been asked several times and many solutions are being proposed as a workaround but not sure why it is not been working on our case. In our case we have to listen for ...
0
votes
0answers
29 views

Web3j 5.0.0 and event listener

I'm using Web3j 5.0.0. I would listen to events of a smart contract. So, I write this.getContract().tokenMintedEventFlowable(DefaultBlockParameterName.EARLIEST, ...
0
votes
0answers
12 views

Lightweight Ethereum client for Android and IOS

Are there any available Lightweight version of Geth or Parity client on Android or IOS in order to avoid using Infura service when accessing blockchain form a mobile app?
0
votes
1answer
145 views

Infura: “project ID request rate exceeded” despite minimal requests

Looks like I'm being rate limited by Infura, despite making nowhere near the 100,000 request/day limit under Infura's Core plan. truffle migrate and truffle test both produce VM Exception while ...
1
vote
1answer
27 views

Automate faucet Ether request to access Ethereum Testnet from a mobile DApp

I want to develop a mobile DApp to interact with a smart contract deployed in a testnet (free of charges). The mobile DApp is designated for public users. The DApp needs first to setup a local wallet ...
1
vote
0answers
29 views

Drizzle problem: how to connect to infura direct when user has Metamask, but isn't connected?

I understand how to connect direct to infura if the user has no wallet at all (for displaying blockchain data when users don't have a wallet) the problem is that I don’t know how to connect to infura ...
0
votes
0answers
31 views

Kovan transaction never being mined

I have setup an Infura account to send transactions on the kovan network. This is the code I want to use to send ether to another account (current one has 1 ether from a faucet): var Web3 = require('...
0
votes
2answers
81 views

Transactions not happening in Ropsten Test Network

I'm learning to set up a simple front-end website that executes smart contract methods in a testing environment, but even though MetaMask confirms the deployment of the contract, the transaction is ...
0
votes
1answer
75 views

UnhandledPromiseRejectionWarning: Error: Returned error: The method eth_sendTransaction does not exist/is not available [duplicate]

var Web3 = require('web3') var url = 'https://rinkeby.infura.io/v3/cadc6b0dc5c54720b973b3720eab5584' var web3 = new Web3(url) var RemixContract = new web3.eth.Contract([ { "constant": ...
0
votes
1answer
45 views

Error when sending multiple transactions

I'm having a weird issue with the code below in that sometimes it works and sometimes it doesn't. It seems more apparent when TRANSACTIONS is set to a larger number. I have had it fail AND pass with ...
0
votes
0answers
80 views

Could not transact with/call contract function, is contract deployed correctly and chain synced?

i got "web3.exceptions.BadFunctionCallOutput: Could not transact with/call contract function, is contract deployed correctly and chain synced? " error when try to run this code: from web3.auto.infura ...
0
votes
2answers
200 views

Truffle deployment error while deploying with Infura (Error: Callback was already called)

I am trying to deploy a token smart contract to Ropsten test network with Infura, but I am always getting an error as I am using truffle migrate --reset --network ropsten_infura Compiling your ...
0
votes
1answer
21 views

Is it possible to explicitly tell if a node is using Geth or Parity?

Is it possible to explicitly tell if a node is using Geth or Parity? This can be from a raw RPC call or the Infura (or other provider) layer. Is there an explicit way to do this without making an ...
1
vote
0answers
22 views

Not able to fetch custom token after mint from Infura

I am using web3j library with an Infura Websocket connection. I set up a subscribe method where I listen to transfer events of my custom ERC20 Token. When a transfer event occurs on the blockchain I ...
0
votes
0answers
207 views

Listening to events in Ethers.js with websockets

I'm trying to listen to all emitted events from a contract with Ethers.js and Websockets. Any idea why this is not working? var wsProvider = new ethers.providers.WebSocketProvider("wss://rinkeby....
1
vote
1answer
21 views

What's the max number allowed as nonce? [duplicate]

I tried to generate nonce using this formula, so I can avoid 'underpriced' problem and nonce conflicts nonce: web3.utils.toHex( Math.round (Date.now() / 1000 - 1586000000) ), But simply these ...
0
votes
1answer
30 views

How to trace erc20 testnet deposit with web3.JS

I am using ropsten testnet, I wish to detect deposit of an erc-20 token. I am using infura and use method of eth_getBlockByNumber to get all the transactions and check whether the to field match an ...
0
votes
0answers
21 views

web3.eth.getAccounts() returns no output

const deploy = async () => { const accounts = await web3.eth.getAccounts(); console.log("Attempting to deploy from contract ", accounts); }; The code runs but returns nothing and even the next ...
0
votes
0answers
27 views

How to interact with Remix contract through web3py

I have an assignment for which I must write a client that can interact with a deployed contract by transacting and filtering event logs, but I cannot figure out how to successfully get either to work ...
0
votes
2answers
83 views

Deploying contract to infura via @truffle/hdwallet-provider is hanging

I created a contract and deployed to Ganache test network successfully but it is not deploying to infura. //this section is clean. worked for Ganache var output = JSON.parse(solc.compile(JSON....
1
vote
1answer
37 views

How long does it take it typically take for call value of changed variable to update?

I'm trying to mine a proof of work contract. Each time a solution is found, the return value for units.functions.getChallengeNumber().call() should change. I ran two instances of this script (with ...
0
votes
0answers
57 views

Getting HTTP/1.1 403 Forbidden when i want to get account balance

Some months ago, I was able to get the balance of my account using this code (I run the code in Unity 2018 and get the code from tutorial in github. I modified some parts of the code). This is the ...
0
votes
1answer
37 views

Get emitted events of a a smart contract function using infura

I have used infura in my App.js to connect to the kovan network. Then I am creating an instance of the smart contract deployed on that network. Then I am calling a function on that smart contract ...
1
vote
0answers
85 views

How to sign transactions using Metamask and send the signed transaction to NodeJS so that it can be added on Ropsten Infura?

I have developed a secure file sharing application in NodeJS(v10.16.1) + Express(v4.17.1) + Truffle(v5.1.15) + Metamask(v7.7.8) which works perfectly on localhost. I am using @truffle/contract(v4.1.11)...
1
vote
2answers
115 views

web3 - Error when calling sendTransaction with @truffle/contract on Ropsten Infura

My smart contract is already deployed on Ropsten TestNet provided by Infura at 0x63865E0F065C7b865e1a2EE4d99C383A414Bec22 address. I want to sendTransaction using NodeJS(v.10.16.1) + Web3(v.1.2.6) + @...
1
vote
0answers
28 views

Metamask+Remix gives different gas than Web3.js+Infura

I have one transaction, that can be executed with 2 different ways: - Remix with Metamask wallet - Web3.js with Infura network In both ways, I am connected to Rinkeby network. The Gas is ...
2
votes
1answer
141 views

How to interact with my ropsten smart contract

I've looked for hours online for how to interact with contracts but I've yet to find an efficient way to do so. My contract is deployed at 0x09B81faA7fB51E5Af79b0241243e58297aC84158 on the ropsten ...
1
vote
0answers
19 views

Call contract method via raw transaction in python

From what I've read online I can't call the method I want to in python using contract.functions.myfunc(param1,param2 becaues infura doens't support these types of transactions. So instead I want to ...
1
vote
1answer
23 views

problem of connecting to ethereum

I am using web3@0.20.7 and infura to connect Ropsten testing network. I haven't opened my website(using ethereum) for a while. Today I restarted my website, and I can not connect to ethereum with ...
0
votes
1answer
25 views

Deployment transaction mined but contractAddress still empty

I'm trying to deploy a very simple smart contract on Ropsten through Infura When I launch (on Ubuntu) my deploy.js script, everything seems to work except I don't get the contractAddress in the ...
0
votes
0answers
30 views

Interacting with client side metamask in serverside rendered react

i'm new to using web3 and am building a react app served from the server that will connect to an infura node. I've read that metamask injects web3 by default but have seen some mentions that it won't ...
1
vote
1answer
72 views

“Nonce too low” using contract.methods.myFunction().send()

Using web3 to build a contract from the ABI: contract = new web3.eth.Contract(JSON.parse(abi), '0x17c91A5a6f5e3E4BEaFC478D18C4A44D88833277', { from: '0x0Ad2b5CCe78D677fD000698a7E4Cde866DE189C6', gas: ...

1
2 3 4 5
7