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

Function json_start

lightningd/jsonrpc.c:721–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719}
720
721static struct json_stream *json_start(struct command *cmd)
722{
723 struct json_stream *js = json_stream_raw_for_cmd(cmd);
724
725 json_object_start(js, NULL);
726 json_add_string(js, "jsonrpc", "2.0");
727 json_add_id(js, cmd->id);
728 return js;
729}
730
731struct json_stream *json_stream_success(struct command *cmd)
732{

Callers 3

json_stream_successFunction · 0.70
json_stream_fail_nodataFunction · 0.70
rpc_command_hook_finalFunction · 0.70

Calls 4

json_stream_raw_for_cmdFunction · 0.85
json_object_startFunction · 0.85
json_add_idFunction · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected