Confirmations in block and trasaction 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
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.