datastoreusage
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.
On success, an object containing datastoreusage is returned. It is an object containing:
- key (string): The key from which the database was traversed.
- total_bytes (u64): The total bytes that are stored under the key, including the all descendants data and the size of the keys themselves.
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