pub fn emit_from_ptr(tx_ptr: *const u8, tx_len: u32) -> Result<[u8; 32]>
Expand description
Emit a new transaction from the hook and return the 32-bytes long txn hash. Same as emit but takes a pointer to the transaction buffer instead of a slice. This might be useful for dealing with raw pointers.