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§

source

fn receipts(&self, transaction_id: &TxId) -> StorageResult<Vec<Receipt>>

Return all receipts in the given transaction.

source

fn transaction(&self, transaction_id: &TxId) -> StorageResult<Transaction>

Get the transaction.

Implementors§