getAccountMetadata method
Implementation
Future<AccountMetadataDoc> getAccountMetadata({
required String id,
required String operator,
}) async {
final request = GetAccountRequest()..id = hex.decode(id);
final envelop = await requestEnvelope(request: request);
final account =
await getServiceClient(operator).query.getAccountMetadata(envelop);
final indexedAccount =
await _getLedgerAccount(accountId: id, operator: operator);
return AccountMetadataDoc.fromModel(account, indexedAccount);
}