getAccountById method
Gets an account by its unique id.
correlationId
(optional) transaction id to trace execution through call chain.id
an id of account to be retrieved. Return Future that receives account or error.
Implementation
@override
Future<AccountV1?> getAccountById(String? correlationId, String id) async {
var result = await callCommand(
'get_account_by_id', correlationId, {'account_id': id});
if (result == null) return null;
var item = AccountV1();
item.fromJson(json.decode(result));
return item;
}