/// <summary> /// Query `rippled` for possible payment "paths" through the Ripple Network to deliver the given amount to the specified `destination_account`. If the `destination_amount` issuer is not specified, paths will be returned for all of the issuers from whom the `destination_account` accepts the given currency. /// </summary> /// <param name="client">A RippleRestClient used for this request.</param> /// <param name="destinationAccount">Destination account</param> /// <param name="destinationAmount">Destination amount</param> /// <param name="sourceCurrencies">an array of source currencies that can be used to constrain the results returned (e.g. `["XRP", "USD+r...", "BTC+r..."]`) Currencies can be denoted by their currency code (e.g. USD) or by their currency code and issuer (e.g. `USD+r...`). If no issuer is specified for a currency other than XRP, the results will be limited to the specified currencies but any issuer for that currency will do.</param> /// <returns>Payment instances</returns> /// <exception cref="RippleRestException">Request failed.</exception> public List<Payment> FindPaymentPaths(RippleRestClient client, Account destinationAccount, string destinationAmount, List<string> sourceCurrencies) { return FindPaymentPaths(client, destinationAccount.ToString(), destinationAmount, sourceCurrencies); }
/// <summary> /// Query `rippled` for possible payment "paths" through the Ripple Network to deliver the given amount to the specified `destination_account`. If the `destination_amount` issuer is not specified, paths will be returned for all of the issuers from whom the `destination_account` accepts the given currency. /// </summary> /// <param name="client">A RippleRestClient used for this request.</param> /// <param name="destinationAccount">Destination account</param> /// <param name="destinationAmount">Destination amount</param> /// <returns>Payment instances</returns> /// <exception cref="RippleRestException">Request failed.</exception> public List<Payment> FindPaymentPaths(RippleRestClient client, Account destinationAccount, string destinationAmount) { return FindPaymentPaths(client, destinationAccount.ToString(), destinationAmount); }