pub fn tx_witnesses_count() -> u64 
Expand description

Get the transaction witnesses count for the transaction.

Returns

  • [u64] - The witnesses count for the transaction.

Reverts

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

Examples

use std::tx::tx_witnesses_count;

fn foo() {
    let witnesses_count = tx_witnesses_count();
    log(witnesses_count);
}