MCPcopy Create free account
hub / github.com/ElementsProject/lightning / plugin_notify_start

Function plugin_notify_start

plugins/libplugin.c:1276–1288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1274}
1275
1276struct json_stream *plugin_notify_start(struct command *cmd, const char *method)
1277{
1278 struct json_stream *js = new_json_stream(cmd, NULL, NULL);
1279
1280 json_object_start(js, NULL);
1281 json_add_string(js, "jsonrpc", "2.0");
1282 json_add_string(js, "method", method);
1283
1284 json_object_start(js, "params");
1285 json_add_string(js, "id", cmd->id);
1286
1287 return js;
1288}
1289
1290void plugin_notify_end(struct command *cmd, struct json_stream *js)
1291{

Callers 2

plugin_notify_messageFunction · 0.85
plugin_notify_progressFunction · 0.85

Calls 3

new_json_streamFunction · 0.85
json_object_startFunction · 0.50
json_add_stringFunction · 0.50

Tested by

no test coverage detected