LIGHTNING-DEPRECATIONS(7)
π deprecations β the command that lets you turn deprecated APIs on/off β¨
okay bestie, so this is the lightning-deprecations(7) manual page and honestly it's a little cutie. let's get into it π
β¨ NAME β¨
deprecations β the command to enable/disable deprecated APIs. that's it, that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
deprecations enable
π DESCRIPTION π
this command was added in v24.02. yes, we're citing receipts. π
the deprecations RPC command is used to override the global config option allow-deprecated-apis for further RPC commands on this same connection. so like β just this connection, not the whole world, no cap. π«Ά
why would you want that? honestly it's useful for developer testing, so you can make sure you don't accidentally rely on deprecated features. like a vibe check for your own code. π
enable(boolean) β the flag that turns deprecated APIs on or off. setting it tofalsewill neither accept deprecated parameters or commands, nor output deprecated fields. it's giving strict mode, and honestly? iconic. π
π₯ RETURN VALUE π₯
on success you get back an empty object. {}. that's the whole gift. π
π ERRORS π
on failure, one of the following error codes may be returned:
-32602β error in given parameters. something you passed was not it, bestie. π
π§ AUTHOR π§
Rusty Russell rusty@blockstream.com wrote the initial version of this man page. legend behaviour, fr fr. π
β SEE ALSO β
go read those too, iykyk π
πΈ RESOURCES πΈ
main web site: https://github.com/ElementsProject/lightning β the main character energy source. π
π EXAMPLES π
example 1 β¨
request:
$ lightning-cli deprecations -k "enable"=True
{
"id": "example:deprecations#1",
"method": "deprecations",
"params": {
"enable": true
}
}
response:
{}
ate. no crumbs. π
π¦ example 2 π¦
request:
$ lightning-cli deprecations -k "enable"=False
{
"id": "example:deprecations#2",
"method": "deprecations",
"params": {
"enable": false
}
}
response:
{}
still {}. slay. π
that's the whole page bestie β Core Lightning v26.06.9, LIGHTNING-DEPRECATIONS(7), mwah π go forth and don't rely on deprecated stuff β¨π«Ά
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms