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

Function plugin_notification_start_obs

plugins/libplugin.c:1876–1887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1874}
1875
1876struct json_stream *plugin_notification_start_obs(const tal_t *ctx,
1877 const char *method)
1878{
1879 struct json_stream *js = new_json_stream(ctx, NULL, NULL);
1880
1881 json_object_start(js, NULL);
1882 json_add_string(js, "jsonrpc", "2.0");
1883 json_add_string(js, "method", method);
1884
1885 json_object_start(js, "params");
1886 return js;
1887}
1888
1889void plugin_notification_end_obs(struct plugin *plugin,
1890 struct json_stream *stream STEALS)

Callers 4

channel_hint_notifyFunction · 0.70
payment_notify_failureFunction · 0.70
json_add_payment_successFunction · 0.70

Calls 3

new_json_streamFunction · 0.85
json_object_startFunction · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected