Function cuprate_blockchain::ops::tx::get_tx_from_id

source ·
pub fn get_tx_from_id(
    tx_id: &TxId,
    table_tx_blobs: &impl DatabaseRo<TxBlobs>,
) -> Result<Transaction, RuntimeError>
Expand description

Retrieve a Transaction from the database with its TxId.

§Errors

This function returns RuntimeError::KeyNotFound if the input (if applicable) doesn’t exist or other RuntimeError’s on database errors.