Function darkfi_sdk::wasm::util::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)?;