cuprate_blockchain::ops::tx

Function get_tx_from_id

Source
pub fn get_tx_from_id(
    tx_id: &TxId,
    table_tx_blobs: &impl DatabaseRo<TxBlobs>,
) -> DbResult<Transaction>
Expand description

Retrieve a Transaction from the database with its TxId.

§Errors

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