solana_sdk::bpf_loader_upgradeable

Function create_buffer

source
pub fn create_buffer(
    payer_address: &Pubkey,
    buffer_address: &Pubkey,
    authority_address: &Pubkey,
    lamports: u64,
    program_len: usize,
) -> Result<Vec<Instruction>, InstructionError>
Expand description

Returns the instructions required to initialize a Buffer account.