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

Function json_start

lightningd/jsonrpc.c:717–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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