pub trait AccountDatasource: Send + Sync {
// Required method
fn get_multiple_accounts<'life0, 'life1, 'async_trait>(
&'life0 self,
pubkeys: &'life1 [Pubkey],
) -> Pin<Box<dyn Future<Output = IndexerResult<HashMap<Pubkey, Option<AccountInfo>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Optional provider interface for fetching accounts on demand by pubkey.
Required Methods§
Sourcefn get_multiple_accounts<'life0, 'life1, 'async_trait>(
&'life0 self,
pubkeys: &'life1 [Pubkey],
) -> Pin<Box<dyn Future<Output = IndexerResult<HashMap<Pubkey, Option<AccountInfo>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_multiple_accounts<'life0, 'life1, 'async_trait>(
&'life0 self,
pubkeys: &'life1 [Pubkey],
) -> Pin<Box<dyn Future<Output = IndexerResult<HashMap<Pubkey, Option<AccountInfo>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Batch fetch accounts by pubkeys at the latest canonical height.