To broadcast on-chain Bitcoin transaction offline we need transaction hex which should be sent to a device which is online. Example: Government has shutdown internet in an area, text messaging still works so Alice can create a signed transaction, copy transaction hex and send it via text message to Bob who can broadcast this transaction (sendrawtransaction
) because Internet works at his place.
How does this work for LN? I have not experimented enough with LN so not sure about everything involved. Tried doing it in Electrum 4.1.2 (testnet) but couldn't find necessary information and commands.
- Bob creates an invoice for 0.001 BTC and sends it to Alice using text message
lntb1m1psdd0c3pp539vpce5yrw2zk0w23h0p4pnst58d9jfuugx2qmmmyw8zgz09q03ssp5a9ahkkj45k3e5a3q3ftnagqy27zrm0m7g9aknlrjpu5fce2k27nsdqqcqzynxqyjw5q9qxpq9qsqrzjqwfn3p9278ttzzpe0e00uhyxhned3j5d9acqak5emwfpflp8z2cng85awqqqq8gqqgqqqqlgqqqqqeqqjqtz9qwfn3p9278ttzzpe0e00uhyxhned3j5d9acqak5emwfpflp8z2cngqqqq05qqqqqvsqfqqxkhjszx8ftlnljk0uk6an5d6ksyhxrfgn4x7sgq7j48agj948n9gr2tn64qrxe84jczxwr56dtr9mw7al52awrl7alxn7pu68ndckgqhd7cz5
- Alice pastes it in Electrum and click on "save"
Invoice details:
How do I use any of this information from the invoice which can be sent to Bob so that LN 0.001 BTC invoice is paid?
LN commands in Electrum: https://github.com/spesmilo/electrum/blob/3bc8ef6651ed9d9aff0531b3597f80eca4886301/electrum/commands.py#L1001