Function std::tx::tx_script_length
pub fn tx_script_length() -> u64
Expand description
Get the length of the script for the transaction.
Returns
- [u64] - The script length for the transaction.
Reverts
- When the transaction type is of type
Transaction::Create
.
Examples
use std::tx::tx_script_length;
fn foo() {
let script_length = tx_script_length();
assert(script_length > 0);
}