pub fn prepare_transfer_coins(
        &mut self,
        sender_address: AccountAddress,
        sender_sequence_number: u64,
        receiver_address: AccountAddress,
        num_coins: u64,
        gas_unit_price: Option<u64>,
        max_gas_amount: Option<u64>,
    ) -> Result<RawTransaction> {
        let program = vm_genesis::encode_transfer_program(&receiver_address, num_coins);

        Ok(create_unsigned_txn(
            program,
            sender_address,
            sender_sequence_number,
            max_gas_amount.unwrap_or(MAX_GAS_AMOUNT),
            gas_unit_price.unwrap_or(GAS_UNIT_PRICE),
            TX_EXPIRATION,
        ))
    }
/// Prepare a transfer transaction: return the unsigned raw transaction
Prepare a transfer transaction: return the unsigned raw transaction
Prepare a transfer transaction : return the unsigned raw transaction
pub fn prepare_transfer_coins(
        &mut self,
        sender_address: AccountAddress,
        sender_sequence_number: u64,
        receiver_address: AccountAddress,
        num_coins: u64,
        gas_unit_price: Option<u64>,
        max_gas_amount: Option<u64>,
    ) -> Result<RawTransaction> {
        let program = vm_genesis::encode_transfer_program(&receiver_address, num_coins);
        Ok(create_unsigned_txn(
            program,
            sender_address,
            sender_sequence_number,
            max_gas_amount.unwrap_or(MAX_GAS_AMOUNT),
            gas_unit_price.unwrap_or(GAS_UNIT_PRICE),
            TX_EXPIRATION,
        ))
    }
pub fn prepare_transfer_coins ( & mut self , sender_address : AccountAddress , sender_sequence_number : u64 , receiver_address : AccountAddress , num_coins : u64 , gas_unit_price : Option < u64 > , max_gas_amount : Option < u64 > , ) -> Result < RawTransaction > { let program = vm_genesis :: encode_transfer_program ( & receiver_address , num_coins ) ; Ok ( create_unsigned_txn ( program , sender_address , sender_sequence_number , max_gas_amount . unwrap_or ( MAX_GAS_AMOUNT ) , gas_unit_price . unwrap_or ( GAS_UNIT_PRICE ) , TX_EXPIRATION , ) ) }
Prepare a transfer transaction: return the unsigned raw transaction
Prepare a transfer transaction : return the unsigned raw transaction
&mut self
sender_address
AccountAddress
sender_sequence_number
u64
receiver_address
AccountAddress
num_coins
u64
gas_unit_price
Option<u64>
max_gas_amount
Option<u64>