pub fn transfer_coins(
        &mut self,
        space_delim_strings: &[&str],
        is_blocking: bool,
    ) -> Result<IndexAndSequence> {
        ensure!(
            space_delim_strings.len() >= 4 && space_delim_strings.len() <= 6,
            "Invalid number of arguments for transfer"
        );

        let sender_account_address =
            self.get_account_address_from_parameter(space_delim_strings[1])?;
        let receiver_address = self.get_account_address_from_parameter(space_delim_strings[2])?;

        let num_coins = Self::convert_to_micro_libras(space_delim_strings[3])?;

        let gas_unit_price = if space_delim_strings.len() > 4 {
            Some(space_delim_strings[4].parse::<u64>().map_err(|error| {
                format_parse_data_error(
                    "gas_unit_price",
                    InputType::UnsignedInt,
                    space_delim_strings[4],
                    error,
                )
            })?)
        } else {
            None
        };

        let max_gas_amount = if space_delim_strings.len() > 5 {
            Some(space_delim_strings[5].parse::<u64>().map_err(|error| {
                format_parse_data_error(
                    "max_gas_amount",
                    InputType::UnsignedInt,
                    space_delim_strings[5],
                    error,
                )
            })?)
        } else {
            None
        };

        let sender_account_ref_id = self.get_account_ref_id(&sender_account_address)?;

        self.transfer_coins_int(
            sender_account_ref_id,
            &receiver_address,
            num_coins,
            gas_unit_price,
            max_gas_amount,
            is_blocking,
        )
    }
/// Transfers coins from sender to receiver.
Transfers coins from sender to receiver.
Transfers coins from sender to receiver .
pub fn transfer_coins(
        &mut self,
        space_delim_strings: &[&str],
        is_blocking: bool,
    ) -> Result<IndexAndSequence> {
        ensure!(
            space_delim_strings.len() >= 4 && space_delim_strings.len() <= 6,
            "Invalid number of arguments for transfer"
        );
        let sender_account_address =
            self.get_account_address_from_parameter(space_delim_strings[1])?;
        let receiver_address = self.get_account_address_from_parameter(space_delim_strings[2])?;
        let num_coins = Self::convert_to_micro_libras(space_delim_strings[3])?;
        let gas_unit_price = if space_delim_strings.len() > 4 {
            Some(space_delim_strings[4].parse::<u64>().map_err(|error| {
                format_parse_data_error(
                    "gas_unit_price",
                    InputType::UnsignedInt,
                    space_delim_strings[4],
                    error,
                )
            })?)
        } else {
            None
        };
        let max_gas_amount = if space_delim_strings.len() > 5 {
            Some(space_delim_strings[5].parse::<u64>().map_err(|error| {
                format_parse_data_error(
                    "max_gas_amount",
                    InputType::UnsignedInt,
                    space_delim_strings[5],
                    error,
                )
            })?)
        } else {
            None
        };
        let sender_account_ref_id = self.get_account_ref_id(&sender_account_address)?;
        self.transfer_coins_int(
            sender_account_ref_id,
            &receiver_address,
            num_coins,
            gas_unit_price,
            max_gas_amount,
            is_blocking,
        )
    }
pub fn transfer_coins ( & mut self , space_delim_strings : & [ & str ] , is_blocking : bool , ) -> Result < IndexAndSequence > { ensure ! ( space_delim_strings len ( ) 4 space_delim_strings len ( ) 6 " " ) ; let sender_account_address = self . get_account_address_from_parameter ( space_delim_strings [ 1 ] ) ? ; let receiver_address = self . get_account_address_from_parameter ( space_delim_strings [ 2 ] ) ? ; let num_coins = Self :: convert_to_micro_libras ( space_delim_strings [ 3 ] ) ? ; let gas_unit_price = if space_delim_strings . len ( ) > 4 { Some ( space_delim_strings [ 4 ] . parse :: < u64 > ( ) . map_err ( | error | { format_parse_data_error ( " " , InputType :: UnsignedInt , space_delim_strings [ 4 ] , error , ) } ) ? ) } else { None } ; let max_gas_amount = if space_delim_strings . len ( ) > 5 { Some ( space_delim_strings [ 5 ] . parse :: < u64 > ( ) . map_err ( | error | { format_parse_data_error ( " " , InputType :: UnsignedInt , space_delim_strings [ 5 ] , error , ) } ) ? ) } else { None } ; let sender_account_ref_id = self . get_account_ref_id ( & sender_account_address ) ? ; self . transfer_coins_int ( sender_account_ref_id , & receiver_address , num_coins , gas_unit_price , max_gas_amount , is_blocking , ) }
Transfers coins from sender to receiver.
Transfers coins from sender to receiver .
&mut self
space_delim_strings
&[&str]
is_blocking
bool