solana_stake_program::stake_state

Function move_lamports

Source
pub fn move_lamports(
    invoke_context: &InvokeContext<'_>,
    transaction_context: &TransactionContext,
    instruction_context: &InstructionContext,
    source_account_index: IndexOfAccount,
    lamports: u64,
    destination_account_index: IndexOfAccount,
    stake_authority_index: IndexOfAccount,
) -> Result<(), InstructionError>