destinationAccount method

StrictSendPathsRequestBuilder destinationAccount(
  1. String accountId
)

Sets the destination account.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 destinationAccount(String accountId) {
  if (queryParameters.containsKey("destination_assets")) {
    throw Exception("cannot set both destination_assets and destination_account");
  }
  queryParameters.addAll({"destination_account": accountId});
  return this;
}