solana_sdk::system_transaction

Function transfer

Source
pub fn transfer(
    from_keypair: &Keypair,
    to: &Pubkey,
    lamports: u64,
    recent_blockhash: Hash,
) -> Transaction
Expand description

Create and sign new system_instruction::Transfer transaction