fn transfer_to_fastpay()

in fastpay_core/src/client.rs [69:106]


    fn transfer_to_fastpay(
        &mut self,
        amount: Amount,
        recipient: FastPayAddress,
        user_data: UserData,
    ) -> AsyncResult<CertifiedTransferOrder, failure::Error>;

    /// Send money to a Primary account.
    fn transfer_to_primary(
        &mut self,
        amount: Amount,
        recipient: PrimaryAddress,
        user_data: UserData,
    ) -> AsyncResult<CertifiedTransferOrder, failure::Error>;

    /// Receive money from FastPay.
    fn receive_from_fastpay(
        &mut self,
        certificate: CertifiedTransferOrder,
    ) -> AsyncResult<(), failure::Error>;

    /// Send money to a FastPay account.
    /// Do not check balance. (This may block the client)
    /// Do not confirm the transaction.
    fn transfer_to_fastpay_unsafe_unconfirmed(
        &mut self,
        amount: Amount,
        recipient: FastPayAddress,
        user_data: UserData,
    ) -> AsyncResult<CertifiedTransferOrder, failure::Error>;

    /// Find how much money we can spend.
    /// TODO: Currently, this value only reflects received transfers that were
    /// locally processed by `receive_from_fastpay`.
    fn get_spendable_amount(&mut self) -> AsyncResult<Amount, failure::Error>;
}

impl<A> ClientState<A> {