pub trait TransactionsRetriever: Sync + Send {
// Required methods
fn get_by_hashes<'life0, 'async_trait>(
&'life0 self,
hashes: Vec<TransactionHash>,
up_to: BlockNumber,
) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_by_block_ranges<'life0, 'async_trait>(
&'life0 self,
block_ranges: Vec<BlockRange>,
) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Transactions retriever
Required Methods§
sourcefn get_by_hashes<'life0, 'async_trait>(
&'life0 self,
hashes: Vec<TransactionHash>,
up_to: BlockNumber,
) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_by_hashes<'life0, 'async_trait>(
&'life0 self,
hashes: Vec<TransactionHash>,
up_to: BlockNumber,
) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a list of transactions by hashes using chronological order
sourcefn get_by_block_ranges<'life0, 'async_trait>(
&'life0 self,
block_ranges: Vec<BlockRange>,
) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_by_block_ranges<'life0, 'async_trait>(
&'life0 self,
block_ranges: Vec<BlockRange>,
) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get by block ranges