nonce method

Future<int> nonce({
  1. required String validator,
  2. required String withdrawer,
})

Implementation

Future<int> nonce(
    {required String validator, required String withdrawer}) async {
  try {
    var response = await client.get(api('transaction/nonce',
        {'validator': validator, 'withdrawer': withdrawer}));
    if (response.containsKey('status')) {
      throw ExplorerException(code: -3, message: response['status']);
    }
    return response['nonce'];
  } catch (e) {
    rethrow;
  }
}