getNonce method

Future<BigInt> getNonce({
  1. required String address,
})

Implementation

Future<BigInt> getNonce({required String address}) async {
  final result = await read(
    functionName: 'getNonce',
    args: [EthereumAddress.fromHex(address), BigInt.from(0)],
    // credentials: credentials,
  );
  // print(result);
  return result[0] as BigInt;
}