GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIGHTNING-DATASTOREUSAGE(7) LIGHTNING-DATASTOREUSAGE(7)

lightning-datastoreusage -- Command for listing datastore usage info

datastoreusage [key]

Command added in v23.11.

The datastoreusage RPC command allows the caller to fetch the total bytes that are stored under a certain key (or from the root), including the size of the key.

All descendants of the key (or root) are taken into account.

key (one of, optional):
  • (array of strings): Key is an array of values (though a single value is treated as a one-element array). Used as the starting point to traverse the datastore.

  • (string, optional)

  • (string)

On success, an object containing datastoreusage is returned. It is an object containing:

  • key (string): The key from which the database was traversed. (added v23.11)

  • total_bytes (u64): The total bytes that are stored under the key, including the all descendants data and the size of the keys themselves. (added v23.11)

Peter Neuroth <pet.v.ne@gmail.com> is mainly responsible.

lightning-datastore(7), lightning-deldatastore(7), lightning-listdatastore(7)

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

Example 1:

Request:

$ lightning-cli datastoreusage

{

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

Response:

{

"datastoreusage": {
"key": "[]",
"total_bytes": 161
} }

Example 2:

Request:

$ lightning-cli datastoreusage -k "key"='["test", "name"]'

{

"id": "example:datastoreusage#2",
"method": "datastoreusage",
"params": {
"key": [
"test",
"name"
]
} }

Response:

{

"datastoreusage": {
"key": "[test,name]",
"total_bytes": 33
} }

Example 3:

Request:

$ lightning-cli datastoreusage -k "key"="otherkey"

{

"id": "example:datastoreusage#3",
"method": "datastoreusage",
"params": {
"key": "otherkey"
} }

Response:

{

"datastoreusage": {
"key": "[otherkey]",
"total_bytes": 54
} }
Core Lightning v25.02.2

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.