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

Function bitcoin_tx_output_get_amount

bitcoin/tx.c:304–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304struct amount_asset bitcoin_tx_output_get_amount(const struct bitcoin_tx *tx,
305 int outnum)
306{
307 assert(tx->chainparams);
308 assert(outnum < tx->wtx->num_outputs);
309 return wally_tx_output_get_amount(&tx->wtx->outputs[outnum]);
310}
311
312void bitcoin_tx_output_get_amount_sat(const struct bitcoin_tx *tx, int outnum,
313 struct amount_sat *amount)

Callers 10

set_htlc_timeout_feeFunction · 0.85
set_htlc_success_feeFunction · 0.85
json_transaction_detailsFunction · 0.85
topo_add_utxosFunction · 0.85
check_funding_detailsFunction · 0.85
onchaind_funding_spentFunction · 0.85
calc_tx_feeFunction · 0.85

Calls 1

Tested by

no test coverage detected