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

Get the script bytecode.

Additional Information

Must be cast to a u64 array, with sufficient length to contain the bytecode.
Bytecode will be padded to next whole word.

Returns

  • [Option] - The script bytecode.

Examples

use std::tx::tx_script_bytecode;

fn foo() {
    let script_bytecode: [u64; 64] = tx_script_bytecode().unwrap();
    log(script_bytecode);
}