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

Function json_add_invstring

common/json_stream.c:412–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412void json_add_invstring(struct json_stream *result, const char *invstring)
413{
414 if (strstarts(invstring, "lni"))
415 json_add_string(result, "bolt12", invstring);
416 else
417 json_add_string(result, "bolt11", invstring);
418}
419
420void json_add_node_id(struct json_stream *response,
421 const char *fieldname,

Callers 7

json_add_invoice_fieldsFunction · 0.85
json_signinvoiceFunction · 0.85
json_paystatusFunction · 0.85
on_payment_failureFunction · 0.85
payment_finishedFunction · 0.85
json_add_paymentFunction · 0.85
add_new_entryFunction · 0.85

Calls 1

json_add_stringFunction · 0.70

Tested by

no test coverage detected