LIGHTNING-EMERGENCYRECOVER(7)

πŸ“¦
version 26.06.9 Β· 2 versions
, in nixpkgs unstable

🚨 NAME 🚨

okay bestie, welcome to the LIGHTNING-EMERGENCYRECOVER(7) manual page πŸ’… this is all about emergencyrecover β€” the command for recovering channels from the emergency.recovery file in the lightning directory. yes, that's the whole vibe. 🫢

✨ SYNOPSIS ✨

the whole invocation is literally just:

emergencyrecover

no extra flags, no side quests. ✨

πŸ’– DESCRIPTION πŸ’–

so the emergencyrecover RPC command fetches data from the emergency.recover file and tries to reconnect to the peer and force the peer to close the channel. the data in this file has enough information to reconnect and sweep the funds. πŸ’Έ

this recovery method is not spontaneous and it depends on the peer, so it should be used as a last resort to recover the funds stored in a channel in case of severe data loss. like, this is the emergency-emergency plan, not a casual little errand. 😭

🌈 RETURN VALUE 🌈

on success, an object is returned, containing:

  • stubs (array of hashs):
    • hash (optional): Channel IDs of channels successfully inserted.

(yes, β€œhashs” β€” that's what the page says, and we respect the page πŸ’€)

🫢 AUTHOR 🫢

Aditya aditya.sharma20111@gmail.com is mainly responsible. iconic behavior, honestly. πŸ‘‘

πŸ‘€ SEE ALSO πŸ‘€

  • lightning-getsharedsecret(7)

πŸ”— RESOURCES πŸ”—

πŸ§ͺ EXAMPLES πŸ§ͺ

Example 1:

Request:

$ lightning-cli emergencyrecover

{
  "id": "example:emergencyrecover#1",
  "method": "emergencyrecover",
  "params": {}
}

Response:

{
  "stubs": []
}

Example 2:

Request:

$ lightning-cli emergencyrecover

{
  "id": "example:emergencyrecover#2",
  "method": "emergencyrecover",
  "params": {}
}

Response:

{
  "stubs": [
    "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9",
    "e13472d6512413eb1bf03b9a0bb391d0e4152fd337fa6d1014e3de5e131918d9",
    "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f"
  ]
}

that's the whole page, bestie πŸ’– stay safe, back up your stuff, and remember: this is the LIGHTNING-EMERGENCYRECOVER(7) manual from Core Lightning v26.06.9 β€” bye! πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from