Function transfer_lamports

Source
pub fn transfer_lamports<'info>(
    from: &AccountInfo<'info>,
    to: &AccountInfo<'info>,
    lamports: u64,
) -> Result<()>
Expand description

Transfers lamports from one account to another, handling the cases where the account is either a PDA or a system account.