pub fn tx_script_data_length() -> u64 
Expand description

Get the script data length for the transaction.

Returns

  • [u64] - The script data length for the transaction.

Reverts

  • When the transaction type is of type Transaction::Create.

Examples

use std::tx::tx_script_data_length;

fn foo() {
    let script_data_length = tx_script_data_length();
    assert(script_data_length > 0);
}