pub fn tx_id() -> b256
Expand description
Get the Transaction ID of the current transaction.
Returns
- [b256] - The Transaction ID of the current transaction.
Examples
use std::tx::tx_id;
fn foo() {
let tx_id: b256 = tx_id();
log(tx_id);
}