create_load_instructions

Function create_load_instructions 

Source
pub async fn create_load_instructions<V, I>(
    specs: &[AccountSpec<V>],
    fee_payer: Pubkey,
    compression_config: Pubkey,
    rent_sponsor: Pubkey,
    indexer: &I,
) -> Result<Vec<Instruction>, LoadAccountsError>
where V: Pack + Clone + Debug, I: Indexer,
Expand description

Build load instructions for cold accounts. Returns empty vec if all hot. TODO: reduce ixn count and txn size, reduce roundtrips.