2022 Developer Survey is open! Take survey.

Questions tagged [confirmations]

Confirmations correspond to the number of blocks that are dependent on a given transaction. This includes the block containing that transaction and all blocks after it in the blockchain. The more confirmations a transaction has, the more likely is it that it will remain in the blockchain permanently.

Filter by
Sorted by
Tagged with
0 votes
1 answer
27 views

Solidity function // for loop

Im calling in a for loop a set function in js, but it stops/crashes after the 2nd or 3rd loop. I want to run it for about 5000 times, without losing queue. Is it possible? How can i implement this? I ...
user avatar
0 votes
0 answers
19 views

Transaction Confirmation Time

Is there any public/paid API that I can use to get confirmation times of transactions within given block? For example: This transaction ...
user avatar
  • 880
0 votes
0 answers
68 views

How to calculate block propagation latency in Geth?

i am trying to calculate block propagation latency in a private network. is there a command for it? please share some thoughts on how can we arrive at the calculation .
user avatar
  • 1
1 vote
1 answer
42 views

Why computed number of confirmations is a lot larger than value from the block explorer?

As it has been explained here, here and even here I proceed with computing number of confirmations for a given txid. It works but gives weird results which are not consistent with the block explorer. ...
user avatar
  • 157
0 votes
2 answers
27 views

removed mined transactions consequences

I'm building a game on ethereum and one thing that really makes my life hard is understanding the removed mined transaction flow. what happens to other transactions that counted on that transaction, ...
user avatar
2 votes
0 answers
76 views

How to subscribe to newly minted blocks?

I am trying to figure out the most efficient way to poll latest blocks. I found that there is a newBlockHeaders event that I can subscribe to using web3js. What is not clear to me is how to track the ...
user avatar
  • 553
1 vote
1 answer
31 views

How long it takes on average until a new transaction is included in a mined block in the Ethereum MainNet?

On Bitcoin there are charts and statistics providing an estimation on the average time until a new transactions are included in a mined block, as https://www.blockchain.com/charts/avg-confirmation-...
user avatar
  • 11
1 vote
1 answer
55 views

Programatically determine confirmation of transaction

Assume I request a transaction A from a Ethereum Node (let's say Infura for simplicity) by using getTransactionByHash shortly after the transaction was processed by the network (currentBlockNumber = A....
user avatar
0 votes
1 answer
148 views

How to reduce time for block confirmation in the Ethereum blockchain and also time to listen to logs emitted?

I am designing an application in which I am emitting logs through transactions in the Ethereum blockchain. I also created an event listener to listen to the new logs emitted. But I want time from ...
user avatar
  • 43
1 vote
2 answers
1k views

Can transactions with only 1 gwei gas price still succeed (confirmed) in 2021?

https://ethgasstation.info (now https://archive.is/wip/Zemix) showing Lowest gas price (gwei) 0 6 Does that mean it is still possible to have transactions with only 1 gwei gas price confirmed?
user avatar
  • 11
1 vote
1 answer
69 views

How to guarantee an ETH transaction makes it to mainnet

Is there a library out there that handles the lifecycle of a transaction and ensures it up to a certain guarantee (1-12 confirmations, accepted, etc)? How do developers handle this issue? It seems to ...
user avatar
  • 113
1 vote
0 answers
30 views

Rust: Need both events when a transaction is sent and when is confirmed

Rust. For a method send() of a smart contract I need to process both events when the transaction is sent (and generates txhash) and when it is confirmed. From https://docs.rs/ethcontract/0.7.2/...
user avatar
  • 1,284
0 votes
0 answers
609 views

How to know when a transaction is finished? (web3.js)

I make a contract method call using .send() method: contractInstance.methods.pay(itemId).send({from: defaultAccount, value: web3.utils.toWei(String(price*1.0000001)), gas: '1000000'}, ...
user avatar
  • 1,284
2 votes
0 answers
255 views

is "newBlockHeaders" in web3 emits a legit block?

I'm using web3.eth.subscribe('newBlockHeaders') to track transaction I sent to the blockchain. My question is that is the block emitted from "newBlockHeaders" legit or in other words, the block has ...
user avatar
  • 196
2 votes
1 answer
866 views

web3.js: call event handler after N confirmations

web3.js seems to call the event handler of an event directly upon confirmation. I would like to know if it is possible to call an event handler only after e.g. 5 confirmations using web3.js. Is that ...
user avatar
  • 8,064
0 votes
2 answers
564 views

Can using getTransactionCount() + 1 prevent waiting for pending transactions?

I tested sending multiple transactions with a low time gap, and I knew that they will wait for previous transactions to be confirmed. I did not use Nonce in the transaction code as it is optional. But ...
user avatar
1 vote
0 answers
1k views

Metamask always show '0' for gas price and value

I tried to deploy and execute some transactions on multiple contracts but Metamask keeps showing 0 for the gas price and value field. I am on Ropsten test network. It is not specific to any contract, ...
user avatar
0 votes
1 answer
122 views

How can I turn this into a human readable output? [closed]

I have this buy function but the output gives me a transaction Nr. or whatever this is async function buy() { var a = document.getElementById("amount").value; var accounts= await web3.eth....
user avatar
1 vote
1 answer
210 views

Web3: can last block be replaced?

I'm using web3py's getBlock function to get the latest block. I am right now caching the latest 50 blocks so that I reduce the amount of workload in my geth node, and to improve overall speed in my ...
user avatar
  • 350
2 votes
1 answer
1k views

Who confirms Ropsten and Rinkeby transactions?

Basic or more like "fundamental" question I guess: So if I got that right, each time someone runs Geth/Parity or other software they all become part of the EVM (ethereum virtual machine). However ...
user avatar
1 vote
1 answer
706 views

Relationship with smart contract and block confirmation

I have known Bitcoin need 6 blocks for confirmation. However, In ethereum, It is different depend on clients By this post What number of confirmations is considered secure in Ethereum? It takes ...
user avatar
  • 13
5 votes
4 answers
16k views

How to wait until transaction is confirmed web3.js?

I am new to web3. I am trying to connect UI with web3. Metamask version is 6.0.1 and web3 version injected by (don't know who), but it is 0.20.3. Following is my code to send ethers to a function of ...
user avatar
0 votes
0 answers
87 views

Proper number of confirmations in a small testnet

In a private blockchain with just 4 miners, what should be the proper number of confirmations? 24 is by default, but does it make sense? should it be just 4 (one per miner)?
user avatar
0 votes
2 answers
729 views

Modify number of confirmations

By default there are 24 confirmations but I am running a testnet with just 3 miners and I would like to change this number bucause it makes not sense to have 24. I have been checking ...
user avatar
2 votes
1 answer
501 views

Why is it impossible to get return values of state-changing calls? [duplicate]

From reading I have surmised that it is impossible to get the return value of state changing calls. Consider this example.sol: contract F { function createChildContract() public returns (address ...
user avatar
7 votes
3 answers
1k views

Distribution of chain-reorganization events?

I'm curious about, for instance, the frequency of chain reorganizations, and the distribution of their depths. Is this information available anywhere? Mostly this is because I'm interested in rules ...
user avatar
1 vote
1 answer
278 views

Syncing events on Database - Dealing with blockchain reorganization

My Dapp relies on live events synchronization on a centralized database. There is always a server side script polling the blockchain for new events, parsing then and do the corresponding operations on ...
user avatar
  • 139
1 vote
1 answer
574 views

Ethereum propagation delay

I have a very beginner level question. Suppose I have a list containing the IP address of different machines and I want to share them via ethereum blockchain and suppose that the list is very large as ...
user avatar
1 vote
1 answer
129 views

How ERC20 and ERC721 deals with confirmation level

a smart contract store the internal balance per owner. when we transfer tokens from Owner A to Owner B, we update the internal balance sheet. but the internal balance sheet is a most recent snap shot. ...
user avatar
  • 11
2 votes
1 answer
1k views

For sending a transaction to Ethereum, we need to be a "full node"?

If we only intend to send a transaction to Ethereum blockchain, do we need to be "full node" to have the entire blockchain? meaning that do we need to be "sync" with the blockchain to have the latest ...
user avatar
  • 2,498
0 votes
1 answer
45 views

How to safely and quickly identify a privileged transaction within a smart contract?

I'm running a crowdsale for dogs and cats. If you're a dog, you can earn my token (TKN) at 1 ETH per TKN. But, if you prove you're a cat, you can earn TKN at a rate of 0.1 ETH per TKN (meaning you get ...
user avatar
0 votes
1 answer
577 views

Need to know exact public address the user used to make a Metamask payment with?

I need to know how to do do the following tasks, after I triggered a Metamask payment with Web3 and the user paid: how to get the exact public address the user used to make that payment? I need that ...
user avatar
1 vote
2 answers
99 views

Will my transaction get lost if it's in a block which was forked due to double-spending?

I have a contract which I need to update occasionally. This update has nothing to do with "real money transfer". It deals only with the value of a state (global) variable in my contract. Also, I am ...
user avatar
3 votes
2 answers
2k views

Why does a transaction trigger 12 or 24 confirmation events?

Web3.js docs state that a confirmation event will be fired: 12 times when calling web3.eth.sendTransaction (see here) 24 times when calling myContract.methods.myMethod.send (see here) Why is the ...
user avatar
1 vote
1 answer
44 views

monitor the number of confirmations of multiple transactions

I know I can get a number of confirmations one by one, but is there a easy way to monitor the number of confirmations of multiple transactions?
user avatar
  • 201
1 vote
0 answers
101 views

Showing block confirmations on a user transaction, best practices?

I'm working on a site that allows users to deploy smart contracts via MetaMask. Basically they customize it, it gets compiled, and then the user deploys it by via a MetaMask transaction. I would like ...
user avatar
1 vote
2 answers
702 views

How to check if an event is confirmed?

When an event is triggered, you get something like this: { "address": "0x0a7a177321f3b3b6e2299e621eb32e892b141b4b", "topics": [ "0x0d332ed5c7d6f1999116748c0eb99c740f276d879d025a5be6435fcf177785de"...
user avatar
  • 165
0 votes
1 answer
308 views

How to check transaction situation via CLI

I did a transaction and got transaction hash. How can I check this transaction is mined (or confirmed) via CLI (command-line interface) ? What is related command for this? Here is transaction hash ...
user avatar
  • 2,498
1 vote
0 answers
208 views

How to determine whether block is orphaned?

I've been working on a high stakes contract, which is deployed using the web3 v1.0 library. An important condition for robustness is ensuring the contract has been confirmed 12 blocks prior (at the ...
user avatar
  • 313
2 votes
0 answers
106 views

How to make sure the transaction is not included in uncle block

If a transaction is included in the uncle block, neither the sender would be deducted nor the receiver would gain, is that right? Most clients or platforms use 12 confirmations, how would this ...
user avatar
  • 225
4 votes
2 answers
4k views

Can I get an ERC20 balance n blocks back in time?

By calling a running Ethereum node through the getBalance API, you can get the Ethereum balance N blocks back as explained here. This is useful if you would only like to trust a balance which has been ...
user avatar
1 vote
1 answer
2k views

Speed of Ethereum for real time DApp

Currently the block time is around 17s but the confirmation time is even longer around 2-3 minutes. Moreover, as I understand even if the transactions-per-second are 7 we still need to wait the ...
user avatar
  • 375
0 votes
1 answer
345 views

Mist - Rinkeby Test Net - No Longer Sending Confirmations

Im sure this is a very simple problem that one of the brilliant geniuses on this site should be able to answer! I have been testing a sample crowdsale using the Tutorials on https://ethereum.org/...
user avatar
0 votes
1 answer
1k views

Why some transactions with lower gasPrice are proceeded faster?

I've been observing this chart on ethgasstation.info for some time. Those values are average from last 1500 blocks. Every time I look at the chart, confirmation time is shorter for gasPrice 1 gWei, ...
user avatar
3 votes
1 answer
497 views

How can you confirm the state of a contract?

Say I have a contract like so: pragma solidity ^0.4.0; contract SimpleStorage { uint storedData; function set(uint x) { storedData = x; } function get() constant returns (...
user avatar
1 vote
2 answers
74 views

Can a transaction be cancelled before it is picked up by the network?

Say a transaction is time-sensitive and the user that submitted it knows the transaction expires at block number X. User submits the transaction at block number X-4, sees the transaction does not get ...
user avatar
2 votes
2 answers
2k views

Is there any way to see all the incoming transactions to a wallet address?

I want to show block confirmations of the user's ether transaction to my account. How do I put watch on the incoming transactions?? I would need the transaction Id to know calculate block ...
user avatar
1 vote
1 answer
8k views

What is the transaction confirmation time for ERC20 based token? [duplicate]

In case of Bitcoin, it is 10 min. What is the case for ETH or ERC20 based token? And what's the confirmation time change after Casper update?
user avatar
1 vote
1 answer
187 views

How do short confirmation times negatively contribute to blockchain security?

The Ethereum whitepaper states: The motivation behind GHOST is that blockchains with fast confirmation times currently suffer from reduced security due to a high stale rate - because blocks take a ...
user avatar
  • 113
1 vote
0 answers
518 views

Ethereum transaction stuck, out of gas [closed]

I sent some ethereum from my Coinomi wallet to a Poloniex trading account and it has been over 8 days and it has still not been received. over 30k confirmations and steadily rising and it appears all ...
user avatar
  • 11