/// <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, string destinationAccount, Amount destinationAmount, List<string> sourceCurrencies) { return FindPaymentPaths(client, destinationAccount, destinationAmount.ToString(), 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="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(string destinationAccount, Amount destinationAmount, List<string> sourceCurrencies) { return FindPaymentPaths(RippleRestClient.GetDefaultInstanceOrThrow(), destinationAccount, 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, string destinationAccount, Amount destinationAmount) { return FindPaymentPaths(client, destinationAccount, destinationAmount.ToString()); }
/// <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="destinationAccount">Destination account</param> /// <param name="destinationAmount">Destination amount</param> /// <returns>Payment instances</returns> /// <exception cref="RippleRestException">Request failed.</exception> public List<Payment> FindPaymentPaths(Account destinationAccount, Amount destinationAmount) { return FindPaymentPaths(RippleRestClient.GetDefaultInstanceOrThrow(), destinationAccount, destinationAmount); }