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
1 vote
0 answers
13 views

Eth2.0 confirmation policy

In bitcoin a transaction is considered confirmed after 6 blocks. I read that a block is finalized after 2 epochs, but I've seen that some people suggest to wait 12/15 blocks. Why is that? Is a ...
psenderos's user avatar
0 votes
0 answers
58 views

MetaMask Mobile wallet "Confirm" option not working while connect with website

MetaMask Mobile wallet "Confirm" option not working while connect with website. In Some website some device working fine and some wallet or device not working. Website redirect to metamask &...
Aiden's user avatar
  • 1
0 votes
1 answer
44 views

How long should a database and front end wait for finalized event data?

I'm trying to determine a safe number of blocks to wait for events emitted from a transaction. With proof of stake, it seems the answer would be when two-thirds of the validators have attested to the ...
imissjerrygarcia's user avatar
0 votes
1 answer
87 views

Can't get the right transaction confirmation time values via Etherscan APIs

We are creating a cryptocurrency analytics website and I am currently trying to calculate the transaction confirmation time just like in the ETH gas tracker (https://etherscan.io/gastracker). The API ...
buckwhitzer's user avatar
0 votes
1 answer
64 views

how likely does a block get reversed after confirmation

I have a contract that needs multiple approvals for a transaction to go through. a user requests a withdraw the site approves the withdraw an escrow also approves So there needs to be 3 interactions ...
zcaudate's user avatar
  • 105
0 votes
1 answer
142 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 ...
Panagiotis Banavos's user avatar
1 vote
1 answer
135 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. ...
Marek's user avatar
  • 167
0 votes
2 answers
53 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, ...
Amit Wagner's user avatar
2 votes
0 answers
175 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 ...
Gajus's user avatar
  • 643
1 vote
1 answer
38 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-...
FraMog's user avatar
  • 11
1 vote
1 answer
100 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....
Bernd Strehl's user avatar
0 votes
1 answer
181 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 ...
krritik's 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?
broks's user avatar
  • 11
1 vote
1 answer
102 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 ...
Nat's user avatar
  • 247
1 vote
0 answers
42 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/...
porton's user avatar
  • 1,714
1 vote
0 answers
919 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'}, ...
porton's user avatar
  • 1,714
2 votes
0 answers
310 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 ...
bbnn's user avatar
  • 206
2 votes
1 answer
1k 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 ...
SCBuergel's user avatar
  • 8,604
0 votes
2 answers
889 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 ...
Mohammad Saberi's 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, ...
Fariha Abbasi's user avatar
0 votes
1 answer
216 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....
redbulll's user avatar
1 vote
1 answer
298 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 ...
José Molina's user avatar
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 ...
Robert Ggg's user avatar
1 vote
1 answer
870 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 ...
HSKim's user avatar
  • 13
7 votes
4 answers
24k 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 ...
Fariha Abbasi's user avatar
0 votes
0 answers
89 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)?
sapiensapiens's user avatar
0 votes
2 answers
804 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 ...
sapiensapiens's user avatar
2 votes
1 answer
741 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 ...
The Burger King's user avatar
8 votes
3 answers
2k 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 ...
Alex Coventry's user avatar
1 vote
1 answer
494 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 ...
pan1994's user avatar
  • 169
1 vote
1 answer
618 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 ...
Zohaib Ahmed's user avatar
1 vote
1 answer
150 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. ...
assaf's user avatar
  • 11
2 votes
1 answer
2k 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 ...
Questioner's user avatar
  • 2,640
0 votes
1 answer
60 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 ...
nick carraway's user avatar
0 votes
1 answer
671 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 ...
Robert Oschler's user avatar
1 vote
2 answers
112 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 ...
goodvibration's user avatar
5 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 ...
goodvibration's user avatar
1 vote
1 answer
55 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?
Tom's user avatar
  • 211
1 vote
0 answers
111 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 ...
user339946's user avatar
1 vote
2 answers
959 views

How to check if an event is confirmed?

When an event is triggered, you get something like this: { "address": "0x0a7a177321f3b3b6e2299e621eb32e892b141b4b", "topics": [ "0x0d332ed5c7d6f1999116748c0eb99c740f276d879d025a5be6435fcf177785de"...
dgaviola's user avatar
  • 165
0 votes
1 answer
353 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 ...
Questioner's user avatar
  • 2,640
1 vote
0 answers
269 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 ...
Garen Vartanian's user avatar
2 votes
0 answers
131 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 ...
xuanzhui's user avatar
  • 235
4 votes
2 answers
5k 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 ...
Thorkil Værge's 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 ...
David's user avatar
  • 395
0 votes
1 answer
354 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/...
user3826864's 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, ...
choosen_onee's user avatar
3 votes
1 answer
553 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 (...
Léo Vital's user avatar
1 vote
2 answers
82 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 ...
OneChillDude's 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 ...
Sankalp Sharma's user avatar