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

Function json_add_psbt

common/json_stream.c:610–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608}
609
610void json_add_psbt(struct json_stream *stream,
611 const char *fieldname,
612 const struct wally_psbt *psbt TAKES)
613{
614 const char *psbt_b64;
615 psbt_b64 = fmt_wally_psbt(NULL, psbt);
616 json_add_string(stream, fieldname, take(psbt_b64));
617 tal_free_if_taken(psbt);
618}
619
620void json_add_amount_msat(struct json_stream *result,
621 const char *msatfieldname,

Callers 15

json_signpsbtFunction · 0.85
json_setpsbtversionFunction · 0.85
json_dev_finalizepsbtFunction · 0.85
finish_psbtFunction · 0.85
json_addpsbtoutputFunction · 0.85
json_addpsbtinputFunction · 0.85
build_commit_responseFunction · 0.85
handle_psbt_changedFunction · 0.85
peer_control.cFile · 0.85

Calls 3

fmt_wally_psbtFunction · 0.85
tal_free_if_takenFunction · 0.85
json_add_stringFunction · 0.70

Tested by

no test coverage detected