user92935: After typing lncli pendingchannels I get a channel_point number, and when I put channel_point txid to check if it was confirmed onchain 
by typing:
bitcoin-cli gettransaction "txid insert"

I get an error:
error code: -5
error message:
Ivalid or non-wallet transaction id

How can I  see if whoever opened (pending state) channel to me has a confirmation on chain?

user81940: lncli pendingchannels gives a pendingChannelRespnse which might have the pending_open_channels parameter. This contains an array of  PendingOpenChannel objects. 
According to the documentation they should have a parameter confirmation_height which is the height of the blockchain at which the funding TX has enough confirmations (the max of your and your channel partners threshold) 
See 

So from bitcoin-cli you figure out the current height and take the difference to see how many confirmations are still needed. 
I guess if you don't get a pendingopenchannel object you don't have confirmations yet. 

92935: <p>After typing <code>lncli pendingchannels</code> I get a channel_point number, and when I put channel_point txid to check if it was confirmed onchain 
by typing:</p>

<pre><code>bitcoin-cli gettransaction "txid insert"
</code></pre>

<p>I get an error:</p>

<pre><code>error code: -5
error message:
Ivalid or non-wallet transaction id
</code></pre>

<p>How can I  see if whoever opened (pending state) channel to me has a confirmation on chain?</p>
 81940: <p><code>lncli pendingchannels</code> gives a <code>pendingChannelRespnse</code> which might have the <code>pending_open_channels</code> parameter. This contains an array of  <code>PendingOpenChannel</code> objects. </p>

<p>According to <a href="https://api.lightning.community/#pendingopenchannel" rel="nofollow noreferrer">the documentation</a> they should have a parameter <code>confirmation_height</code> which is the height of the blockchain at which the funding TX has enough confirmations (the max of your and your channel partners threshold) </p>

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

<p>So from <code>bitcoin-cli</code> you figure out the current height and take the difference to see how many confirmations are still needed. </p>

<p>I guess if you don't get a pendingopenchannel object you don't have confirmations yet. </p>
