LIGHTNING-GETEMERGENCYRECOVERDATA(7)

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

✨ NAME ✨

getemergencyrecoverdata β€” the command to fetch data from the emergency.recover file. This whole page is LIGHTNING-GETEMERGENCYRECOVERDATA(7), and yes bestie, it’s giving β€œencrypted backup file inspection” main character energy. πŸ’–

πŸŽ€ SYNOPSIS πŸŽ€

getemergencyrecoverdata

πŸ’– DESCRIPTION πŸ’–

okay so first thing: Command added in v24.11. Not ancient lore, but also not brand-new baby territory. ✨

The getemergencyrecoverdata RPC command is used to fetch data from the emergency.recover file, which contains encrypted data. That’s the whole vibe: it reaches into that file and hands you the data. no cap. 🫢

🌈 RETURN VALUE 🌈

On success, an object is returned, containing:

  • filedata (hex) β€” The raw, hex-encoded, emergency.recover file. Literally the file data, hex-encoded, raw, iconic. πŸ’…
  • can_create_penalty (boolean) β€” If false, you are using legacy file version, which can not create penalty transactions, kindly delete emergency.recover and restart the node! (added v26.06)
  • backed_up_channel_ids (array of hashs) β€” added v26.06, and it’s the channel IDs situation:
    • (hash, optional) β€” Channel IDs of channels backed up inside emergency.recover
bestie, that can_create_penalty: false warning is not a cute little garnish. It means legacy file version, no penalty transactions from it, and the original says kindly delete emergency.recover and restart the node! Read it and weep. 😭

πŸ¦‹ AUTHOR πŸ¦‹

Aditya aditya.sharma20111@gmail.com is mainly responsible. Give them their flowers, fr fr. πŸ’

πŸ‘€ SEE ALSO πŸ‘€

lightning-getsharedsecret(7) β€” go peek when you’re done, bestie. πŸ‘‘

πŸ”— RESOURCES πŸ”—

Main web site: https://github.com/ElementsProject/lightning

🧚 EXAMPLES 🧚

Example 1:

Request:

$ lightning-cli getemergencyrecoverdata

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

Response:

"emergencyrecoverdata01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"

and that’s the page, bestie! Footer check: Core Lightning v26.06.9 is the source/version chillin’ at the bottom, and LIGHTNING-GETEMERGENCYRECOVERDATA(7) repeats its iconic self there too. No separate date line was in the footer, so I’m not inventing one β€” periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from