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

Function jsonrpc_stream_start

plugins/libplugin.c:439–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439static struct json_stream *jsonrpc_stream_start(struct command *cmd)
440{
441 struct json_stream *js = new_json_stream(cmd, cmd, NULL);
442
443 json_object_start(js, NULL);
444 json_add_string(js, "jsonrpc", "2.0");
445 json_add_id(js, cmd->id);
446
447 return js;
448}
449
450struct json_stream *jsonrpc_stream_success(struct command *cmd)
451{

Callers 6

jsonrpc_stream_successFunction · 0.85
jsonrpc_stream_failFunction · 0.85
command_done_rawFunction · 0.85
command_successFunction · 0.85
command_done_errFunction · 0.85
command_check_doneFunction · 0.85

Calls 4

new_json_streamFunction · 0.85
json_object_startFunction · 0.85
json_add_idFunction · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected