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

Function call_createinvoicerequest

plugins/offers_offer.c:656–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656static struct command_result *call_createinvoicerequest(struct command *cmd,
657 struct tlv_invoice_request *invreq,
658 bool single_use,
659 const char *label)
660{
661 struct out_req *req;
662
663 req = jsonrpc_request_start(cmd, "createinvoicerequest",
664 check_result, forward_error,
665 invreq);
666 json_add_string(req->js, "bolt12", invrequest_encode(tmpctx, invreq));
667 json_add_bool(req->js, "savetodb", true);
668 json_add_bool(req->js, "single_use", single_use);
669 if (label)
670 json_add_string(req->js, "recurrence_label", label);
671 return send_outreq(req);
672}
673
674struct invrequest_data {
675 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