|
NAMElightning-notifications - Command to set up notifications.SYNOPSISnotifications enableDESCRIPTIONThe notifications the RPC command enabled notifications for this JSON-RPC connection. By default (and for backwards-compatibility) notifications are disabled.Various commands, especially complex and slow ones, offer notifications which indicate their progress.
EXAMPLE JSON REQUEST{ "id": 82, "method": "notifications", "params": { "enable": true } } NOTIFICATIONSNotifications are JSON-RPC objects without an id field. lightningd sends notifications (once enabled with this notifications command) with a params id field indicating which command the notification refers to.Implementations should ignore notifications without an id parameter, or unknown method. Common methods include:
RETURN VALUEOn success, an empty object is returned.On success, if enable was true, notifications will be forwarded from then on. On failure, one of the following error codes may be returned:
EXAMPLE NOTIFICATIONS{ "method": "message", "params": { "id": 83, "message": "This is a test message", "level": "DEBUG" } } { "method": "progress", "params": { "id": 83, "num": 0, "total": 30 "stage": { "num": 0, "total": 2 } } } AUTHORRusty Russell <rusty@blockstream.com> wrote the initial version of this man page.RESOURCESMain web site: https://github.com/ElementsProject/lightning Visit the GSP FreeBSD Man Page Interface. |