pub trait BlobSidecarProvider {
// Required method
fn beacon_blob_side_cars<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: u64,
hashes: &'life1 [IndexedBlobHash],
) -> Pin<Box<dyn Future<Output = Result<Vec<BlobData>, BlobProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
The minimal interface required to fetch sidecars from a remote blob store.
Required Methods§
Sourcefn beacon_blob_side_cars<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: u64,
hashes: &'life1 [IndexedBlobHash],
) -> Pin<Box<dyn Future<Output = Result<Vec<BlobData>, BlobProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn beacon_blob_side_cars<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: u64,
hashes: &'life1 [IndexedBlobHash],
) -> Pin<Box<dyn Future<Output = Result<Vec<BlobData>, BlobProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetches blob sidecars that were confirmed in the specified L1 block with the given indexed hashes. Order of the returned sidecars is guaranteed to be that of the hashes. Blob data is not checked for validity.
Consensus specs: https://ethereum.github.io/beacon-APIs/#/Beacon/getBlobSidecars
Implementors§
impl<B: BeaconClient + Send + Sync> BlobSidecarProvider for B
Blanket implementation of the BlobSidecarProvider trait for all types that implemend BeaconClient, which has a superset of the required functionality.