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

Function psbt_append_output

bitcoin/psbt.c:204–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204struct wally_psbt_output *psbt_append_output(struct wally_psbt *psbt,
205 const u8 *script,
206 struct amount_sat amount)
207{
208 struct wally_psbt_output *out;
209 struct wally_tx_output *tx_out = wally_tx_output(NULL, script, amount);
210
211 out = psbt_add_output(psbt, tx_out, psbt->tx->num_outputs);
212 wally_tx_output_free(tx_out);
213 return out;
214}
215struct wally_psbt_output *psbt_insert_output(struct wally_psbt *psbt,
216 const u8 *script,
217 struct amount_sat amount,

Callers 6

finish_psbtFunction · 0.85
add_in_out_with_serialFunction · 0.85
mw_load_outputsFunction · 0.85
run_tx_interactiveFunction · 0.85
add_funding_outputFunction · 0.85

Calls 2

wally_tx_outputClass · 0.70
psbt_add_outputFunction · 0.70

Tested by 1

add_in_out_with_serialFunction · 0.68