With the introduction of the v2 API, we now have 2 different “Account” Classes in Java SDK:
1) com.algorand.algosdk.account.Account 2) com.algorand.algosdk.v2.client.model.Account
As far as I understand, we should use the second one (v2), but this doen’t seem possible because you can only sign a transaction using the first one.
Am I missing something?
Are they intended to have different use cases?
If so, since they have the same name, it’s a bit annoying and confusing in Java to have to handle both because it forces you to use the extended class name (i.e. com.algorand.algosdk.v2.client.model.Account) to refere to the correct “Account”.
What is your opinion on this? Do you have any suggestions?