pub async fn accounts_lazy_with_context<T: AccountDeserialize + Discriminator, C: Deref<Target = impl Signer> + Clone>(
program: &Program<C>,
filters: impl IntoIterator<Item = RpcFilterType>,
config: ProgramAccountsConfig,
) -> Result<WithContext<impl Iterator<Item = Result<(Pubkey, T)>>>>
Expand description
Returns all program accounts of the given type matching the specified filters as an iterator, along with context. Deserialization is executed lazily.