[][src]Function interledger_stream::send_money

pub fn send_money<S, A>(
    service: S,
    from_account: &A,
    destination_account: Address,
    shared_secret: &[u8],
    source_amount: u64
) -> impl Future<Item = (u64, S), Error = Error> where
    S: IncomingService<A> + Clone,
    A: Account

Send a given amount of money using the STREAM transport protocol.

This returns the amount delivered, as reported by the receiver and in the receiver's asset's units.