Function std::tx::tx_script_data

pub fn tx_script_data<T>() -> Option<T> 
Expand description

Get the script data, typed.

Additional Information

Unsafe.
Assumes the type is correct.

Returns

  • [Option] - The script data, typed.

Examples

use std::tx::tx_script_data;

fn foo() {
    let script_data: u64 = tx_script_data();
    log(script_data);
}