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

Function call_createinvoicerequest

plugins/offers_offer.c:669–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667}
668
669static struct command_result *call_createinvoicerequest(struct command *cmd,
670 struct tlv_invoice_request *invreq,
671 bool single_use,
672 const char *label)
673{
674 struct out_req *req;
675
676 req = jsonrpc_request_start(cmd, "createinvoicerequest",
677 check_result, forward_error,
678 invreq);
679 json_add_string(req->js, "bolt12", invrequest_encode(tmpctx, invreq));
680 json_add_bool(req->js, "savetodb", true);
681 json_add_bool(req->js, "single_use", single_use);
682 if (label)
683 json_add_string(req->js, "recurrence_label", label);
684 return send_outreq(req);
685}
686
687struct invrequest_data {
688 struct tlv_invoice_request *invreq;

Callers 2

json_invoicerequestFunction · 0.85

Calls 4

invrequest_encodeFunction · 0.85
json_add_boolFunction · 0.85
send_outreqFunction · 0.70
json_add_stringFunction · 0.50

Tested by

no test coverage detected