getAccountHashHeight method

Future<HashHeight> getAccountHashHeight(
  1. Address address
)

Implementation

Future<HashHeight> getAccountHashHeight(Address address) async {
  try {
    final accountBlock = await getLatestAccountBlock(address);
    return HashHeight(
      hash: accountBlock.hash,
      height: accountBlock.height.toInt(),
    );
  } catch (e) {
    return HashHeight(hash: Hash.empty, height: 0);
  }
}