pub fn input_count() -> u16 
Expand description

Gets the transaction inputs count.

Returns

  • [u16] - The number of inputs in the transaction.

Examples

use std::inputs::input_count;

fn foo() {
    let input_count = input_count();
    assert(input_count == 1_u16);
}