darkfi_sdk::wasm::util

Function get_tx_location

Source
pub fn get_tx_location(hash: &TransactionHash) -> GenericResult<(u32, u16)>
Expand description

Only metadata() and exec() can call this. Will return transaction location by provided hash.

(block_height, tx_index) = get_tx_location(hash)?;