2021-08-25 04:50:12 +02:00
|
|
|
lightning-listdatastore -- Command for listing (plugin) data
|
|
|
|
============================================================
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
|
|
|
**listdatastore** [*key*]
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The **listdatastore** RPC command allows plugins to fetch data which was
|
|
|
|
stored in the c-lightning database.
|
|
|
|
|
|
|
|
All entries are returned in *key* isn't present; if *key* is present,
|
|
|
|
zero or one entries are returned.
|
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object containing **datastore** is returned. It is an array of objects, where each object contains:
|
|
|
|
- **key** (string): The key which from the datastore
|
2021-08-25 04:51:04 +02:00
|
|
|
- **generation** (u64): The number of times this has been updated
|
2021-08-25 04:50:12 +02:00
|
|
|
- **hex** (hex): The hex data from the datastore
|
2021-08-25 04:50:13 +02:00
|
|
|
- **string** (string, optional): The data as a string, if it's valid utf-8
|
2021-08-25 04:50:12 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
|
|
|
|
|
|
|
The following error codes may occur:
|
|
|
|
- -32602: invalid parameters.
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Rusty Russell <<rusty@rustcorp.com.au>> is mainly responsible.
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
|
|
|
lightning-datastore(7), lightning-deldatastore(7)
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
|
|
|
|
2021-08-25 04:51:04 +02:00
|
|
|
[comment]: # ( SHA256STAMP:a6503e3d2da8f9a35a0d461b5b93248f3fea306371ad62f98df613efea51959d)
|