destinationAssets method
Sets the destination assets. For this search, Horizon loads a list of assets that the recipient can recieve (based on destination_account or destination_assets) and displays the possible paths from the different source assets to the destination asset. Only paths that satisfy the source_amount are returned. See: List Strict Send Payment Paths
Implementation
StrictSendPathsRequestBuilder destinationAssets(List<Asset> destinationAssets) {
if (queryParameters.containsKey("destination_account")) {
throw Exception("cannot set both destination_assets and destination_account");
}
queryParameters.addAll({"destination_assets": encodeAssets(destinationAssets)});
return this;
}