forex.pm forex forum binary options trade

 Сryptocurrency exchanges => Binance - Сryptocurrency exchanges => Topic started by: Bitcoin on Feb 24, 2022, 02:27 pm

Title: Lightning close-channel transaction example?
Post by: Bitcoin on Feb 24, 2022, 02:27 pm
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? (https://bitcoin.stackexchange.com/questions/74719/lightning-close-channel-transaction-example)