createAccount static method
Creates a SystemProgram instruction that generates a stake account.
Implementation
static TransactionInstruction createAccount({
required final Pubkey fromPubkey,
required final Pubkey newAccountPubkey,
required final bu64 lamports,
}) {
return SystemProgram.createAccount(
fromPubkey: fromPubkey,
newAccountPubkey: newAccountPubkey,
lamports: lamports,
space: space.toBigInt(),
programId: programId,
);
}