| 302 | } |
| 303 | |
| 304 | struct 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 | |
| 312 | void bitcoin_tx_output_get_amount_sat(const struct bitcoin_tx *tx, int outnum, |
| 313 | struct amount_sat *amount) |
no test coverage detected