darkfi_sdk::wasm::util

Function get_tx

Source
pub fn get_tx(hash: &TransactionHash) -> GenericResult<Option<Vec<u8>>>
Expand description

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

tx_bytes = get_tx(hash);
tx = deserialize(&tx_bytes)?;