Skip to main content

bpf_loader_program_account

Function bpf_loader_program_account 

Source
pub fn bpf_loader_program_account(
    program_id: &Pubkey,
    elf: &[u8],
    rent: &Rent,
) -> (Pubkey, Account)
Expand description

Returns a tuple (Pubkey, Account) for a BPF program, where the key is the provided program ID and the account is a valid BPF Loader program account containing the ELF.