pub fn output_count() -> u16 
Expand description

Gets the transaction outputs count.

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);
}