LIGHTNING-BATCHING(7)
β¨ NAME β¨
Okay so this is LIGHTNING-BATCHING(7), bestie β the manual page for batching, and its whole NAME moment is: batching β Command to allow database batching. π
πΈ SYNOPSIS πΈ
Short and sweet, the synopsis is literally:
batching enable
π DESCRIPTION π
The batching RPC command is the one that allows database commitments to be deferred when multiple commands are issued on this RPC connection. But read the fine print, bestie: it allows that deferral, it does not guarantee it. π
This is only useful if many commands are being given at once, in which case it can offer a performance improvement. The cost? If there is a crash, it's unclear how many of the commands will have been persisted. So yes: possible speed-up, possible crash confusion β keep that in mind. π
enable(boolean) β Whether to enable or disable transaction batching. The default isFalse.
π«Ά RETURN VALUE π«Ά
On success, an empty object is returned. That's the whole flex: {}. β¨
π ERRORS π
On failure, one of the following error codes may be returned:
-32602: Error in given parameters.
π AUTHOR π
Rusty Russell rusty@blockstream.com wrote the initial version of this man page. Iconic behavior, honestly. π
π RESOURCES π
Main web site: https://github.com/ElementsProject/lightning
π EXAMPLES π
Example 1:
Request:
$ lightning-cli batching -k "enable"=True
{
"id": "example:batching#1",
"method": "batching",
"params": {
"enable": true
}
}
Response:
{}
Source/version sign-off: Core Lightning v26.06.9 β that's the build this page is repping. Manual name: LIGHTNING-BATCHING(7). The original footer didn't show a separate date, so no invented date here, bestie β just the version/source and manual-name receipts. Mwah π
π¦ 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