<p>Number of confirmations refers to how &quot;deep&quot; the block containing the transaction is in the chain, relative to the current tip. For example, if my transaction was included in block #10, then it will be &quot;confirmed&quot; 5 times once my local copy of the chain is at block #15.</p>
<p>In other words, number of confirmations is the difference between the current block height and the height of the block in which the transaction was initially submitted.</p>

CC BY-SA 4.0
2022-07-29T22:41:00.163Z
Thank you! 
I still don't understand how being 100 blocks "old" makes a transaction any more immutable than it already was once it was a transaction on the most recently accepted block. Nonetheless, your answer makes perfect sense and allows me to understand how to include "Number of Confirmations" in my own code, so thank you.
RelevantData
CC BY-SA 4.0
2022-07-29T23:47:58.517Z
For blockchains with probabilistic finality (i.e. Bitcoin or Cardano), the deeper a transaction is in the chain, the less likely that a rollback will result in a null/dropped transaction. (Read more about finality: https://medium.com/mechanism-labs/finality-in-blockchain-consensus-d1f83c120a9a )
zhekson
CC BY-SA 4.0
2022-07-30T13:04:11.590Z
The most recently added block might roll back, however the further away from the chain tip a block is the less likely a rollback. Rollbacks of more that 2160 blocks are strictly prohibited by the protocol.
Erik de Castro Lopo
CC BY-SA 4.0
2022-07-29T18:43:36.880Z
2022-07-29T18:43:36.880Z
zhekson
<p>In the wallet I use a transaction gets a &quot;number of confirmations&quot; and is indicated as &quot;low&quot; (red), &quot;medium&quot;(yellow), or &quot;high&quot;(green) confidence based on that number.</p>
<p>I have access to db-sync and can examine all sorts of information about transactions, but am not seeing how &quot;number of confirmations&quot; is derived..?</p>

<transaction><cardano-db-sync>
How is Number Of Confirmations derived for a transaction?
# How is Number Of Confirmations derived for a transaction?

(Asked by: username_0 on 2022-07-29)

In the wallet I use a transaction gets a "number of confirmations" and is indicated as "low" (red), "medium"(yellow), or "high"(green) confidence based on that number.

I have access to db-sync and can examine all sorts of information about transactions, but am not seeing how "number of confirmations" is derived..?

**Tags:** transaction, cardano-db-sync

---

## 1 answers

### Answer by username_1 on 2022-07-29. Score: 4 | Accepted answer

Number of confirmations refers to how "deep" the block containing the transaction is in the chain, relative to the current tip. For example, if my transaction was included in block #10, then it will be "confirmed" 5 times once my local copy of the chain is at block #15.

In other words, number of confirmations is the difference between the current block height and the height of the block in which the transaction was initially submitted.

> **Comments:**
> **username_0**: Thank you!  I still don't understand how being 100 blocks "old" makes a transaction any more immutable than it already was once it was a transaction on the most recently accepted block. Nonetheless, your answer makes perfect sense and allows me to understand how to include "Number of Confirmations" in my own code, so thank you.  
> **username_1**: For blockchains with probabilistic finality (i.e. Bitcoin or Cardano), the deeper a transaction is in the chain, the less likely that a rollback will result in a null/dropped transaction. (Read more about finality: https://medium.com/mechanism-labs/finality-in-blockchain-consensus-d1f83c120a9a )  
> **username_2**: The most recently added block might roll back, however the further away from the chain tip a block is the less likely a rollback. Rollbacks of more that 2160 blocks are strictly prohibited by the protocol.  

---

