pub fn tx_id() -> b256
Get the Transaction ID of the current transaction.
use std::tx::tx_id; fn foo() { let tx_id: b256 = tx_id(); log(tx_id); }