<blockquote>
  <p>Is there a case a transaction's confirmations isn't the same as its containing block's confirmation number?</p>
</blockquote>

<p>No, by definition the number of confirmations on a transaction is the number of confirmations on the block it is contained in.</p>

CC BY-SA 3.0
2018-01-05T08:31:11.467Z
So that is a yes? the two confirmations are the same thing?
fluter
CC BY-SA 3.0
2018-01-05T09:53:28.880Z
Yes, they're the same, by definition.
Pieter Wuille
CC BY-SA 3.0
2018-01-05T08:27:31.930Z
2018-01-05T09:53:14.460Z
2018-01-05T09:53:14.460Z
Pieter Wuille
<p>From the bitcoin RPC, both <code>gettransaction</code> and <code>getblock</code> returns a <code>confirmation</code> number in their response, are they always the same? Is there a case a transaction's confirmations isn't the same as its containing block's confirmation number?</p>

<pre><code>https://bitcoin.org/en/developer-reference#gettransaction

https://bitcoin.org/en/developer-reference#getblock
</code></pre>

<transactions><block><confirmations>
Confirmations in block and trasaction
fluter
# Confirmations in block and trasaction

(Asked by: username_0 on 2018-01-05)

From the bitcoin RPC, both `gettransaction` and `getblock` returns a `confirmation` number in their response, are they always the same? Is there a case a transaction's confirmations isn't the same as its containing block's confirmation number?

```
https://bitcoin.org/en/developer-reference#gettransaction

https://bitcoin.org/en/developer-reference#getblock

```

**Tags:** transactions, block, confirmations


---

## 1 answers

### Answer by username_1 on 2018-01-05. Score: 1

> Is there a case a transaction's confirmations isn't the same as its containing block's confirmation number?

No, by definition the number of confirmations on a transaction is the number of confirmations on the block it is contained in.

> **Comments:**
> **username_0**: So that is a yes? the two confirmations are the same thing?  
> **username_1**: Yes, they're the same, by definition.  

---

