user7106: I want to find out confirmation number for non-wallet transaction.
When I use 
CoinService.DecodeRawTransaction(CoinService.GetRawTransaction("5bc89f4e7f7fe4bd6bd15b439038e2a50a88c158680814164d3428a73a84daef")) I got transaction details, but without confirmations field. 
I assume I should use GetRawTransaction("..", 1) but got exception "There was a problem deserializing the response from the wallet". 

user-1: RPC decoderawtransaction doesn't return a confirmations field so yes, you should use getrawtransaction in its verbose mode instead.
I called BitcoinLib's GetRawTransaction for the tx in question and I got a proper response, as expected:

Please make sure you have BitcoinLib's latest version and that your wallet is synched and indexed.

7106: <p>I want to find out confirmation number for non-wallet transaction.</p>

<p>When I use 
<code>CoinService.DecodeRawTransaction(CoinService.GetRawTransaction("5bc89f4e7f7fe4bd6bd15b439038e2a50a88c158680814164d3428a73a84daef"))</code> I got transaction details, but without confirmations field. </p>

<p>I assume I should use <code>GetRawTransaction("..", 1)</code> but got exception "There was a problem deserializing the response from the wallet". </p>
 -1: <p>RPC <code>decoderawtransaction</code> doesn't return a <code>confirmations</code> field so yes, you should use <code>getrawtransaction</code> in its <code>verbose</code> mode instead.</p>

<p>I called <a href="https://github.com/GeorgeKimionis/BitcoinLib" rel="nofollow noreferrer">BitcoinLib</a>'s <code>GetRawTransaction</code> for the tx in question and I got a proper response, as expected:</p>

<p><img src="https://i.stack.imgur.com/fWg75.jpg" alt="enter image description here"></p>

<p>Please make sure you have <a href="https://www.nuget.org/packages/BitcoinLib/" rel="nofollow noreferrer">BitcoinLib's latest version</a> and that your wallet is synched and <a href="https://github.com/GeorgeKimionis/BitcoinLib#instructions-for-bitcoin" rel="nofollow noreferrer">indexed</a>.</p>
