Trait fuel_core::query::SimpleTransactionData
source · pub trait SimpleTransactionData: Send + Sync {
// Required methods
fn receipts(&self, transaction_id: &TxId) -> StorageResult<Vec<Receipt>>;
fn transaction(&self, transaction_id: &TxId) -> StorageResult<Transaction>;
}
Required Methods§
sourcefn receipts(&self, transaction_id: &TxId) -> StorageResult<Vec<Receipt>>
fn receipts(&self, transaction_id: &TxId) -> StorageResult<Vec<Receipt>>
Return all receipts in the given transaction.
sourcefn transaction(&self, transaction_id: &TxId) -> StorageResult<Transaction>
fn transaction(&self, transaction_id: &TxId) -> StorageResult<Transaction>
Get the transaction.