pub fn output_count() -> u16 
Expand description

Get the transaction outputs count for either tx_type
(transaction-script or transaction-create).

Returns

  • [u16] - The transaction outputs count.

Reverts

  • When the output type is unrecognized. This should never happen.

Examples

use std::outputs::output_count;

fn foo() {
    let output_count = output_count();
    log(output_count);
}