sourceAccount method
Sets the source account. For this search, Horizon loads a list of assets available to the sender (based on source_account or source_assets) and displays the possible paths from the different source assets to the destination asset. See: List Strict Receive Payment Paths
Implementation
StrictReceivePathsRequestBuilder sourceAccount(String accountId) {
if (queryParameters.containsKey("source_assets")) {
throw Exception("cannot set both source_assets and source_account");
}
queryParameters.addAll({"source_account": accountId});
return this;
}