pub trait TransactionsProviderExt:
BlockReader
+ Send
+ Sync {
// Required method
fn transaction_hashes_by_range(
&self,
tx_range: Range<TxNumber>,
) -> ProviderResult<Vec<(TxHash, TxNumber)>>;
// Provided method
fn transaction_range_by_block_range(
&self,
block_range: RangeInclusive<BlockNumber>,
) -> ProviderResult<RangeInclusive<TxNumber>> { ... }
}
Expand description
Client trait for fetching additional [TransactionSigned] related data.
Required Methods§
Sourcefn transaction_hashes_by_range(
&self,
tx_range: Range<TxNumber>,
) -> ProviderResult<Vec<(TxHash, TxNumber)>>
fn transaction_hashes_by_range( &self, tx_range: Range<TxNumber>, ) -> ProviderResult<Vec<(TxHash, TxNumber)>>
Get transaction hashes from a transaction range.
Provided Methods§
Sourcefn transaction_range_by_block_range(
&self,
block_range: RangeInclusive<BlockNumber>,
) -> ProviderResult<RangeInclusive<TxNumber>>
fn transaction_range_by_block_range( &self, block_range: RangeInclusive<BlockNumber>, ) -> ProviderResult<RangeInclusive<TxNumber>>
Get transactions range by block range.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.