getAccountByAddress method

Future<AccountInformation> getAccountByAddress(
  1. String address, {
  2. Exclude? exclude,
  3. CancelToken? cancelToken,
  4. ProgressCallback? onSendProgress,
  5. ProgressCallback? onReceiveProgress,
})

Get the account information of the given address, using Algod. Given a specific account public key, this call returns the accounts status, balance and spendable amounts.

exclude - When set to all will exclude asset holdings, application local state, created asset parameters, any created application parameters. Defaults to none. enum (all, none)

Throws an AlgorandException if there is an HTTP error. Returns the account information.

Implementation

Future<AccountInformation> getAccountByAddress(
  String address, {
  Exclude? exclude,
  CancelToken? cancelToken,
  ProgressCallback? onSendProgress,
  ProgressCallback? onReceiveProgress,
}) async {
  return _accountsApi.getAccountByAddress(
    address,
    exclude: exclude,
    cancelToken: cancelToken,
    onSendProgress: onSendProgress,
    onReceiveProgress: onReceiveProgress,
  );
}