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

Function json_add_psbt

common/json_stream.c:547–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547void json_add_psbt(struct json_stream *stream,
548 const char *fieldname,
549 const struct wally_psbt *psbt TAKES)
550{
551 const char *psbt_b64;
552 psbt_b64 = psbt_to_b64(NULL, psbt);
553 json_add_string(stream, fieldname, take(psbt_b64));
554 if (taken(psbt))
555 tal_free(psbt);
556}
557
558void json_add_amount_msat_compat(struct json_stream *result,
559 struct amount_msat msat,

Callers 15

json_signpsbtFunction · 0.85
finish_psbtFunction · 0.85
handle_psbt_changedFunction · 0.85
handle_commit_receivedFunction · 0.85
sendpsbt_doneFunction · 0.85
signpsbt_doneFunction · 0.85
finish_txprepareFunction · 0.85
json_txdiscardFunction · 0.85
json_txsendFunction · 0.85

Calls 4

psbt_to_b64Function · 0.85
takenFunction · 0.85
tal_freeFunction · 0.85
json_add_stringFunction · 0.70

Tested by

no test coverage detected