Questions tagged [infura]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
9 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
11 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
6 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
1answer
18 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
28 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
11 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
24 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
17 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
41 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
19 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
44 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
13 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
16 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
14 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
18 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
35 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: ...
0
votes
1answer
27 views

Cross Origin Blocked? Setting up Infura provider [closed]

useEffect(() => { const loadWeb3 = async () => { const web3 = new Web3( new Web3.providers.HttpProvider("https://mainnet.infura.io/censored") ); let n = await web3....
1
vote
0answers
40 views

Why can I only deploy approx. 3 smart contracts per minute with infura using Ropsten and Rinkeby

I have created a Dapp that is written in Solidity and compiled with Truffle on both Rinkeby and Ropsten. I have also created a frontend for batch file uploads and a backend for the actual deploying ...
0
votes
0answers
27 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
2answers
56 views

Infura Json RPC: how to call a function passing parameters?

IMPORTANT My final goal is receive data via api on a php server and use Infura to call my contract to save the data Test Situation having this test contract on rinkeby contract test008 { ...
0
votes
1answer
38 views

how can someone use the smart contract deployed on Rinkeby network? what are next steps after successful deployment? [duplicate]

I am new to the smart contract and blockchain technology but learning step by step. I developed a small bidding smart contract in solidity. Using Truffle, NPM and Infura, I deployed it in the Rinkeby ...
0
votes
1answer
25 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 ...
1
vote
1answer
39 views

Infura getLogs returns an empty result

I'm writing a crypto based system with PHP on Infura, and now I am coding a script to retrieve logs for a specific address. This is my code: $ch = curl_init($my_server_url); $data = array( '...
0
votes
1answer
76 views

How to create account using mnemonic words or private key in web3js and call contracts using that account

I have a simple React Project with web3@1.2.4 installed and I want to call a contract's method like this: await maincontract.methods.CurrentMethod("arguments").send({ from: accounts[0]/*my account ...
0
votes
1answer
29 views

Infura node seems to crash when tryining to deploy contract

I am trying to deploy a contract and run some tests on the functions within it. Here is what my code currently looks like: package main import ( "context" "crypto/rand" "encoding/hex" ...
0
votes
2answers
44 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
68 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 = ...
2
votes
1answer
185 views

Web3py. Error getting events using Infura: “The method eth_newFilter does not exist/is not available”

I'm trying to get all events from contract, but get error: "ValueError: {'code': -32601, 'message': 'The method eth_newFilter does not exist/is not available'}" I'm using Web3py and Infura. My code: ...
0
votes
1answer
60 views

NodeJS + Web3 + Infura Ropsten - Error: Invalid JSON RPC response: “”

I have problem with invalid response to ethereum from BE NodeJS app. I got error like: Error: Invalid JSON RPC response: "" Below I'd attached my simple code for testing connection. const Web3 = ...
0
votes
0answers
50 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
1answer
27 views

What is the client version?

I am using Infura and web3.py. When I connect to Infura the web3 object has a clientVersion property that reads this from JSON RPC "Geth/v1.8.15-omnibus-255989da/linux-amd64/go1.10.1" Can someone ...
2
votes
1answer
107 views

Error trying to get events in web3.py via Infura

I was trying to get all events from my smart contract (in Ropsten) via Infura node. The problem is that I know that Infura does no support creating filters, but I don't know how to get events by ...
0
votes
0answers
72 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
46 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
1answer
17 views

AttributeError while trying to call a contract using web3py and Infura

I am trying to call a function from an already-deployed contract on the Ropsten network: from web3 import Web3 infura_url = "https://ropsten.infura.io/v3/XXXXXXXXXXXXXX" w3 = Web3(Web3.HTTPProvider(...
0
votes
1answer
38 views

Error sending ether to a a smart contract deployed in ropsten with web3 with python

I am trying to send ether to a smart contract deployed on ropsten via infura, but I am having some problems in txn. The error is "Error in Txn: Reverted". The sender account has enought ether to ...
1
vote
2answers
122 views

How to post to the blockchain without a third party API like infura

I have been using web3 nodejs and infura.io to build apps that interact w/ the Ethereum Blockchain and it is all great but I don't like the idea of a failure point my my apps because they rely on a ...
0
votes
1answer
72 views

Unlock Ethereum account via infura

I am trying to connect my wallet (Metamask) via Infura, but I receiving an error. My code: [HttpPost] public async Task<IActionResult> LoginAsync([ModelBinder(typeof(AccountBinder))] ...
0
votes
2answers
31 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 ...
0
votes
0answers
13 views

How to deploy contract using ropsten infural url and web3.py? [duplicate]

# web3.py instance >>> w3 = Web3(Web3.EthereumTesterProvider()) # set pre-funded account as sender >>> w3.eth.defaultAccount = w3.eth.accounts[0] # get bytecode >>> ...
2
votes
1answer
182 views

ipfs.infura.io for IPFS gateway and pinning

I'm using Infura API for initializing IPFS. IPFS uses garbage collector to clean 2 weeks old unpinned data in public gateway. So, if I'll pin my hash is it possible that IPFS will still delete my ...
0
votes
0answers
85 views

Events using Infura websockets on rinkeby Web3 1.2.1. Returned values aren't valid, did it run Out of Gas?

I am trying to do a simple event listener with NodeJS and Web3 using an Infura endpoint. I have the correct project-id const Web3 = require('web3'); let web3 = new Web3( // Replace YOUR-PROJECT-ID ...
1
vote
3answers
184 views

How do I send a transaction using web3.py and Infura?

I am using Infura to interact with the Ropsten testnet. I would like to send a transaction from one account to another, but the following code does not work: w3 = Web3(Web3.HTTPProvider('InfuraUrl')) ...
1
vote
2answers
109 views

Could I use Infura to get the token details?

I went through https://infura.io/docs but not sure if Infura could allow me to read token details like owner, token Id, etc. I also googled on how to read token using Infura but to no avail. Has ...
1
vote
2answers
61 views

Insufficient funds when transferring ERC-20 token using web3

I am trying to send an ERC-20 token on Mainnet using web3 v1.x and Infura. I get the error in the title while executing this code. I have a balance of about 0.14 ETH var provider = new ...
0
votes
1answer
77 views

Do I need to build my own Ethereum block explorer to read my own tokens and smart contract?

I'm new to blockchain. I find that Etherscan's UI/UX is too complicated for average person to use. I basically need my users to read my Ethereum smart contract transactions and to view their own ...
0
votes
0answers
38 views

Do send raw transactions consume extra gas as opposed to a send transaction

I would assume the portion of verifying the signature consumes gas. I'm asking this because it seems infura does not handle signed transactions and I have a getBalance Call that is failing. I would ...
0
votes
1answer
195 views

getting full pending transactions from Infura

I use Infura to get all pending transactions from Ropsten: web3.eth.subscribe('pendingTransactions', async (error, txHash) => { let tx = getTransaction(txHash) ... } With this ...
0
votes
0answers
30 views

web3py Filter Contract Events

I am new to web3py and I am trying to filter the events of a certain ERC20 contract. I can successfully call the contract's functions, but I struggle with the events. contract = w3.eth.contract(...
0
votes
2answers
102 views

TimeoutError when using Infura websocket with web3.py

When I run the following code sometimes it executes successfully, but most of the time it raises a concurrent.futures._base.TimeoutError. What can I do to fix this? Here is the code: infura_url_ws = ...

1
2 3 4 5 6