pub fn input_count() -> u16 
Expand description

Gets the transaction inputs count.

Returns

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

Reverts

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

Examples

use std::inputs::input_count;

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