• Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

Lightning close-channel transaction example?

Started by Bitcoin, Feb 24, 2022, 02:27 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

Lightning close-channel transaction example?

From this article, I can understand that a punishment-based bidirectional payment channel (the type used by Lightning) would contain roughly this bitcoin script as one of the outputs:



OP_IF
"+7 days" OP_CHECKSEQUENCEVERIFY OP_DROP
<Bob pubkey> OP_CHECKSIG
OP_ELSE
OP_SHA256 <sha256(Bob secret)> OP_EQUALVERIFY
<Alice pubkey> OP_CHECKSIG
OP_ENDIF


I guess there are some block explorers that let you visualize the real script being used in a transaction, so can anyone point me to a real LN transaction (in mainnet) that follows the template above?



Thanks


Source: Lightning close-channel transaction example?