nonces method

Future<BigInt> nonces(
  1. EthereumAddress owner, {
  2. BlockNum? atBlock,
})

The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.

Implementation

Future<BigInt> nonces(_i1.EthereumAddress owner,
    {_i1.BlockNum? atBlock}) async {
  final function = self.abi.functions[24];
  assert(checkSignature(function, '7ecebe00'));
  final params = [owner];
  final response = await read(function, params, atBlock);
  return (response[0] as BigInt);
}