pub fn tx_script_bytecode<T>() -> 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

  • [T] - The script bytecode.

Reverts

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

Examples

use std::tx::tx_script_bytecode;

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