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

Function bitcoin_tx_output_get_amount

bitcoin/tx.c:321–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321struct amount_asset bitcoin_tx_output_get_amount(const struct bitcoin_tx *tx,
322 int outnum)
323{
324 assert(tx->chainparams);
325 assert(outnum < tx->wtx->num_outputs);
326 return wally_tx_output_get_amount(&tx->wtx->outputs[outnum]);
327}
328
329struct amount_sat bitcoin_tx_output_get_amount_sat(const struct bitcoin_tx *tx, int outnum)
330{

Callers 7

set_htlc_timeout_feeFunction · 0.85
json_transaction_detailsFunction · 0.85
topo_add_utxosFunction · 0.85
watch_check_tx_outputsFunction · 0.85
calc_tx_feeFunction · 0.85

Calls 1

Tested by

no test coverage detected