solana_sdk::system_transaction

Function create_account

source
pub fn create_account(
    from_keypair: &Keypair,
    to_keypair: &Keypair,
    recent_blockhash: Hash,
    lamports: u64,
    space: u64,
    program_id: &Pubkey,
) -> Transaction
Expand description

Create and sign new SystemInstruction::CreateAccount transaction